/* ==========================================================================
   BUILD WITH AI - NETFLIX & ALISON E-LEARNING DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-dark: #09090e;
  --bg-surface: #12121a;
  --bg-card: #181824;
  --bg-glass: rgba(24, 24, 36, 0.75);
  
  --accent-netflix: #e50914;
  --accent-netflix-hover: #f40612;
  --accent-violet: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.12);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Netflix Style Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #09090e;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-netflix);
}

/* Typography Fonts */
.font-heading {
  font-family: 'Orbitron', sans-serif;
}

/* Netflix Hero Gradient Vignette Overlay */
.netflix-hero-vignette {
  background: linear-gradient(180deg, 
    rgba(9, 9, 14, 0.4) 0%, 
    rgba(9, 9, 14, 0.8) 60%, 
    #09090e 100%),
    linear-gradient(90deg, 
    #09090e 0%, 
    rgba(9, 9, 14, 0.7) 40%, 
    transparent 100%);
}

/* Netflix Style Horizontal Module Carousel */
.netflix-carousel-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scroll-behavior: smooth;
}
.netflix-carousel-container::-webkit-scrollbar {
  height: 6px;
}
.netflix-carousel-container::-webkit-scrollbar-thumb {
  background: var(--accent-netflix);
}

/* Netflix Module Episode Card */
.netflix-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}
@media (min-width: 640px) {
  .netflix-card {
    flex: 0 0 320px;
  }
}
.netflix-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.3);
  z-index: 10;
}

/* Alison Style Course Badges */
.alison-badge {
  display: inline-flex;
  items-center: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.alison-badge-red {
  background: rgba(229, 9, 20, 0.15);
  color: #f87171;
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.alison-badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Glassmorphic Panels */
.netflix-glass {
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

/* Modal Backdrops */
.modal-backdrop {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s ease;
}
.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-backdrop.hidden .modal-content {
  transform: scale(0.95) translateY(12px);
  opacity: 0;
}

/* Accordion Styling */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}
.accordion-item.active .accordion-content {
  max-height: 500px;
  transition: max-height 0.5s ease-in-out;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Pulse animation for Live badges */
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.animate-live-dot {
  animation: livePulse 1.5s ease-in-out infinite;
}
