/* ==========================================================================
   IPTV Vikings - Modern Black & Yellow Streaming UI Stylesheet
   Clean design, high-contrast typography & simple refined hover transitions
   ========================================================================== */

/* --- Root & Custom Properties --- */
:root {
  --bg-primary: #070709;
  --bg-secondary: #0D0D11;
  --bg-surface: #121216;
  --bg-card: #141419;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: #FACC15;
  --yellow-400: #FACC15;
  --yellow-500: #EAB308;
  --yellow-300: #FDE047;
  --yellow-glow: rgba(250, 204, 21, 0.18);
  --wa-green: #25D366;
  --wa-hover: #20BD5A;
}

/* --- Global Resets & Base --- */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: #f3f4f6;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 50% -10%, rgba(250, 204, 21, 0.07) 0px, transparent 55%),
    radial-gradient(at 100% 25%, rgba(234, 179, 8, 0.03) 0px, transparent 45%),
    radial-gradient(at 0% 75%, rgba(250, 204, 21, 0.025) 0px, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #070709;
}
::-webkit-scrollbar-thumb {
  background: #222228;
  border-radius: 5px;
  border: 2px solid #070709;
}
::-webkit-scrollbar-thumb:hover {
  background: #FACC15;
}

/* --- Panels & Surfaces --- */
.glass-panel {
  background: rgba(13, 13, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

/* --- Clean Modern Cards with Simple Hover (No heavy 3D card effects) --- */
.glass-card,
.modern-card {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  will-change: transform;
}

.glass-card:hover,
.modern-card:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: var(--yellow-400);
  box-shadow: 0 10px 25px -8px var(--yellow-glow);
}

.glass-card-featured {
  background: linear-gradient(180deg, #16161D 0%, #111115 100%);
  border: 1.5px solid var(--yellow-400);
  border-radius: 1rem;
  box-shadow: 0 0 25px -5px rgba(250, 204, 21, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  will-change: transform;
}

.glass-card-featured:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: var(--yellow-300);
  box-shadow: 0 12px 30px -6px rgba(250, 204, 21, 0.25);
}

/* Channel & Device Cards Hover */
.channel-item,
.device-card {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  will-change: transform;
}

.channel-item:hover,
.device-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--yellow-400);
  box-shadow: 0 8px 20px -6px rgba(250, 204, 21, 0.15);
}

/* --- Text Gradients & Accents --- */
.gradient-text-yellow {
  background: linear-gradient(135deg, #FFFFFF 0%, #FACC15 45%, #EAB308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FEF08A 0%, #FACC15 50%, #CA8A04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-yellow {
  text-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.glow-box-yellow {
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.25);
}

/* --- Animations --- */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.03);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Live stream blinking dot */
@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(250, 204, 21, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
  }
}

.live-indicator {
  animation: livePulse 2s infinite;
}

/* WhatsApp Floating Pulse Button */
@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.btn-floating-wa {
  animation: waPulse 2.5s infinite;
  background-color: var(--wa-green);
  transition: all 0.25s ease;
}

.btn-floating-wa:hover {
  background-color: var(--wa-hover);
  transform: scale(1.08);
}

/* Marquee / Sports Ticker */
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Interactive Elements & Tabs --- */
.tab-btn {
  transition: all 0.2s ease-in-out;
}

.tab-btn.active {
  background: #FACC15;
  color: #000000;
  font-weight: 700;
  border-color: #FACC15;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.25);
}

/* --- Payment Modal Styles --- */
.modal-overlay {
  transition: opacity 0.25s ease-out;
}

.modal-content {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.modal-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-hidden .modal-content {
  transform: scale(0.96) translateY(8px);
}

.modal-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-visible .modal-content {
  transform: scale(1) translateY(0);
}

/* Payment Tab Selectors */
.payment-method-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121216;
  transition: all 0.2s ease;
}

.payment-method-pill:hover {
  border-color: rgba(250, 204, 21, 0.5);
  background: #17171E;
}

.payment-method-pill.active {
  border-color: #FACC15;
  background: rgba(250, 204, 21, 0.1);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.15);
}

/* --- FAQ Accordion Animations --- */
.faq-item {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(250, 204, 21, 0.4);
  transform: translateY(-1px);
}

.faq-item.open {
  border-color: #FACC15;
  box-shadow: 0 8px 24px -6px rgba(250, 204, 21, 0.12);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #FACC15;
}

/* --- Toast Feedback --- */
#toast-notification {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.toast-hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.toast-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* QR Code Display Frame */
.qr-frame {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #FACC15;
}

/* Channel Category Badge */
.category-pill {
  transition: all 0.2s ease;
  background: #141418;
  color: #9CA3AF;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-pill:hover {
  color: #FFFFFF;
  border-color: rgba(250, 204, 21, 0.5);
}

.category-pill.active {
  background-color: #FACC15;
  color: #000000;
  border-color: #FACC15;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.25);
}

/* Disable animations for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive fixes */
@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
