/* CourseNexus - Custom Design System & EdTech Components */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --primary-glow: rgba(99, 102, 241, 0.25);
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --amber-glow: rgba(245, 158, 11, 0.25);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1e293b;
  background-color: #0b0f19;
  overflow-x: hidden;
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphic Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(99, 102, 241, 0.15);
}

/* Gradients */
.text-gradient-primary {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-glow {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
}

.bg-gradient-hero {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.25), rgba(255, 255, 255, 0));
}

/* Live Badge Pulse */
@keyframes live-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.pulse-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  animation: live-pulse 1.8s infinite;
}

/* Shimmer Loading & Ribbon */
.ribbon-bestseller {
  position: absolute;
  top: 16px;
  right: -32px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 4px 36px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

/* Ticker Animation */
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 25s linear infinite;
}

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

/* Video Player Styling */
.video-aspect-box {
  aspect-ratio: 16 / 9;
  background: #020617;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.video-overlay-gradient {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
}

/* Quiz Option States */
.quiz-option-card {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.quiz-option-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(99, 102, 241, 0.5);
}

.quiz-option-card.selected {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

.quiz-option-card.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px #10b981 !important;
}

.quiz-option-card.wrong {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Floating Counseling Badge */
.floating-counseling-btn {
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4), 0 8px 10px -6px rgba(37, 211, 102, 0.2);
}

/* QR Code Pulse */
.qr-frame {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  background: white;
  padding: 12px;
  border-radius: 16px;
}

/* Custom Checkbox */
input[type="checkbox"] {
  accent-color: #6366f1;
}

/* Smooth Tabs */
.tab-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pill.active {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Discount Badge Tag */
.discount-chip {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
