/* ===================================================================
   ZAZY.tv - Premium IPTV Streaming Experience
   Theme Stylesheet: Cyber-Violet & Electric Neon Dark Aesthetic
   =================================================================== */

:root {
  --color-bg-base: #08090E;
  --color-bg-surface: #0E101A;
  --color-bg-card: rgba(18, 20, 34, 0.75);
  --color-bg-card-hover: rgba(26, 29, 48, 0.85);
  
  /* Brand accents sampled directly from ZAZY logo */
  --color-neon-purple: #7C3AED;
  --color-neon-violet: #8B5CF6;
  --color-neon-magenta: #EC4899;
  --color-neon-pink: #F43F5E;
  --color-neon-cyan: #06B6D4;
  --color-neon-electric: #00F0FF;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 58, 237, 0.3);
  --border-magenta-glow: rgba(236, 72, 153, 0.3);
}

/* Global Smoothness */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--color-bg-base);
  color: #F1F5F9;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  selection-background-color: var(--color-neon-purple);
  selection-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Ambient Cyber Mesh Gradient Background */
.ambient-glow-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  height: 750px;
  background: 
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 15% 25%, rgba(236, 72, 153, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 600px;
  background: 
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Tech Grid Pattern Overlay */
.tech-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px -10px rgba(124, 58, 237, 0.2);
}

.glass-card-neon {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 25px -5px rgba(124, 58, 237, 0.25);
}

/* Gradient Text */
.text-gradient-zazy {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 40%, #C084FC 80%, #F43F5E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-neon {
  background: linear-gradient(135deg, #00F0FF 0%, #7C3AED 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary-zazy {
  position: relative;
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  color: #FFFFFF;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 20px -2px rgba(124, 58, 237, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-zazy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px 0 rgba(236, 72, 153, 0.5);
  background: linear-gradient(135deg, #8B5CF6 0%, #F43F5E 100%);
}

.btn-primary-zazy:active {
  transform: translateY(0);
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-neon-violet);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

/* Glowing Badges */
.badge-neon {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #C4B5FD;
}

.badge-live {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67E8F9;
}

/* Pulsing Dot */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.5);
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.pulse-dot-red {
  background-color: #EF4444;
}

.pulse-dot-red::after {
  background-color: rgba(239, 68, 68, 0.5);
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Floating animation */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #08090E;
}
::-webkit-scrollbar-thumb {
  background: #1E2238;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7C3AED;
}

/* Copy to clipboard toast */
#toast-notification {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Guide tabs active indicator */
.guide-tab-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(236, 72, 153, 0.2) 100%);
  border-color: var(--color-neon-purple);
  color: #FFFFFF;
  box-shadow: 0 0 20px -3px rgba(124, 58, 237, 0.4);
}

/* Custom Accordion Chevron */
.faq-header[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: #EC4899;
}

/* Code Snippet Box */
.code-snippet-box {
  background: #0B0D16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
  max-width: 100%;
}

/* Mobile-friendly Utilities */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Safe touch target on touch screens */
@media (max-width: 768px) {
  .btn-primary-zazy, .btn-secondary-glass {
    touch-action: manipulation;
  }
}
