/* LearnIt Portal - Custom SaaS Visual Layer & Plyr Overrides */

:root {
  --learnit-primary: #2563eb;
  --learnit-primary-hover: #1d4ed8;
  --learnit-indigo-soft: #eef2ff;
  --learnit-indigo-tint: #e0e7ff;
  --plyr-color-main: #2563eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #0f172a;
}

/* Soft Lavender / Indigo Radial SaaS Hero Glow */
.hero-radial-bg {
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 75% 60% at 15% 10%, rgba(224, 231, 255, 0.85) 0%, rgba(238, 242, 255, 0.45) 45%, transparent 75%),
    radial-gradient(ellipse 65% 55% at 88% 15%, rgba(238, 242, 255, 0.9) 0%, rgba(219, 234, 254, 0.45) 45%, transparent 75%);
}

.section-radial-soft {
  background-image: radial-gradient(circle at 50% 0%, rgba(238, 242, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Accessible FAQ Accordion using native <details> */
details.faq-item summary {
  list-style: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Playlist subtle custom scrollbar */
.playlist-scroll::-webkit-scrollbar {
  width: 6px;
}
.playlist-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
}
.playlist-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.playlist-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth progress bar transitions */
.progress-fill-smooth {
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

/* Plyr 16:9 container polish */
.plyr-wrapper .plyr {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 35px -15px rgba(15, 23, 42, 0.2);
}

/* Modern native form feedback for touched inputs */
.field-input:user-invalid {
  border-color: #ef4444;
}
