/* OFURE RADIO - Custom Styles */

/* ── Brand lockup: OFURE RADIO + slogan — header & footer ──────────────────
   The slogan (26 chars) defines the container width at a small, readable size.
   The brand name (11 chars) fills that same width via text-align:justify +
   the ::after empty-line trick so the last (only) line also justifies.
   Result: both lines share identical pixel widths on every screen size.
──────────────────────────────────────────────────────────────────────────── */
.ofure-brand-block {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

/* Brand name — justify trick makes "OFURE RADIO" spread edge-to-edge */
.ofure-brand-name {
  display: block;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;          /* comfortable nav-bar size, not oversized */
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;    /* spreads "OFURE RADIO" to fill full width */
  /* Purple → Indigo → Blue gradient */
  background: linear-gradient(90deg, #c026d3 0%, #818cf8 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.35));
}

/* Slogan — sets the container width; brand name fills it via justify above */
.ofure-brand-slogan {
  display: block;
  font-size: 0.52rem;          /* small uppercase tagline */
  font-weight: 700;
  letter-spacing: 0.19em;      /* spreads 26 chars to match brand name width */
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 3px;
  /* Orange → pink gradient */
  background: linear-gradient(90deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover shimmer */
.ofure-brand-block:hover .ofure-brand-name {
  background: linear-gradient(90deg, #e879f9 0%, #a5b4fc 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
  transition: filter 0.3s ease;
}

:root {
  --orange: #f97316;
  --purple: #7c3aed;
  --dark: #0a0a0a;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #171717; }
::-webkit-scrollbar-thumb { background: #404040; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Hero orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  33% { transform: translateY(-20px) scale(1.05); }
  66% { transform: translateY(10px) scale(0.98); }
}

/* Sound wave */
.sound-wave-bg {
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 4px,
    rgba(249,115,22,0.3) 4px,
    rgba(249,115,22,0.3) 6px
  );
}

/* Navbar scroll effect */
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Visualizer animation */
@keyframes visualizer {
  0%, 100% { height: 4px; }
  50% { height: 32px; }
}
.visualizer-bar.playing {
  animation: visualizer 0.8s ease-in-out infinite;
}
.visualizer-bar:nth-child(odd).playing { animation-delay: 0.1s; }
.visualizer-bar:nth-child(3n).playing { animation-delay: 0.2s; }
.visualizer-bar:nth-child(5n).playing { animation-delay: 0.3s; }
.visualizer-bar:nth-child(7n).playing { animation-delay: 0.15s; }

/* Blog ticker */
.ticker-content {
  animation: ticker 30s linear infinite;
  display: inline-block;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Article prose styles */
.article-body p {
  line-height: 1.8;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin: 2rem 0 1rem;
  font-family: 'Montserrat', sans-serif;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 1.5rem 0 0.75rem;
}

/* Magazine card hover */
.article-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(249,115,22,0.1);
}

/* Admin panel transitions */
.admin-panel {
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pin input focus navigation */
.pin-input {
  transition: all 0.2s ease;
}
.pin-input:focus {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.5);
}

/* Category filter active state */
.filter-btn.active {
  background: rgba(249,115,22,1) !important;
  color: white !important;
  border-color: transparent !important;
}

/* Toast animation */
#toast.show {
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Featured badge pulse */
.featured-badge {
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(249,115,22,0); }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Image lazy load blur */
img[loading="lazy"] {
  transition: filter 0.3s ease;
}
img[loading="lazy"].loaded {
  filter: none;
}

/* Responsive table */
@media (max-width: 640px) {
  .overflow-x-auto table { min-width: 500px; }
}

/* Audio player custom */
audio { width: 100%; }

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(8px);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #f97316, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Admin sidebar mobile */
@media (max-width: 1024px) {
  #adminSidebar.open {
    transform: translateX(0) !important;
  }
}

/* Category pill hover */
.category-pill {
  transition: all 0.2s ease;
}
.category-pill:hover {
  transform: scale(1.05);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Inline background for tailwind dynamic classes */
.bg-orange-500\/10 { background-color: rgba(249,115,22,0.1); }
.bg-yellow-500\/10 { background-color: rgba(234,179,8,0.1); }
.bg-green-500\/10 { background-color: rgba(34,197,94,0.1); }
.bg-purple-500\/10 { background-color: rgba(168,85,247,0.1); }
.border-orange-500\/20 { border-color: rgba(249,115,22,0.2); }
.border-yellow-500\/30 { border-color: rgba(234,179,8,0.3); }
.border-green-500\/30 { border-color: rgba(34,197,94,0.3); }
.text-orange-400 { color: #fb923c; }
.text-yellow-400 { color: #facc15; }
.text-green-400 { color: #4ade80; }
.text-purple-400 { color: #c084fc; }

/* Hover state for bg-white */
.hover\:bg-white\/3:hover { background-color: rgba(255,255,255,0.03); }
.bg-white\/2 { background-color: rgba(255,255,255,0.02); }
.bg-white\/3 { background-color: rgba(255,255,255,0.03); }
