/* ==========================================================================
   Learnli Platform Custom Theme Stylesheet - Ultra-Sleek Black Mode & Logo Theme
   Background: Pure Black (#070b14 & #0b0f19) - UNCHANGED
   Theme Palette Derived Exactly from Official Logo:
     - Magenta/Fuchsia (#d946ef, #e879f9) [from "le"]
     - Purple/Violet (#8b5cf6, #c084fc)   [from "ar"]
     - Indigo/Cobalt (#6366f1, #3b82f6)   [from "n"]
     - Electric Cyan (#00a3ff, #38bdf8)   [from "li"]
   Font: Quicksand
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --learnli-magenta: #d946ef;
  --learnli-fuchsia: #e879f9;
  --learnli-purple: #8b5cf6;
  --learnli-violet: #c084fc;
  --learnli-indigo: #6366f1;
  --learnli-blue: #3b82f6;
  --learnli-cyan: #00a3ff;
  --learnli-cyan-light: #38bdf8;
  
  --learnli-dark-bg: #070b14;
  --learnli-dark-bg-alt: #0b1120;
  --learnli-card-dark: #0f172a;
  --learnli-card-border: rgba(139, 92, 246, 0.25);
  --learnli-text-main: #f8fafc;
  --learnli-text-muted: #94a3b8;
  --learnli-font-family: 'Quicksand', sans-serif;

  --learnli-logo-gradient: linear-gradient(135deg, #d946ef 0%, #8b5cf6 35%, #3b82f6 70%, #00a3ff 100%);
  --learnli-logo-gradient-hover: linear-gradient(135deg, #e879f9 0%, #a78bfa 35%, #60a5fa 70%, #38bdf8 100%);
  
  /* Overrides for Aleric CSS Variables */
  --tp-common-black: #ffffff !important;
  --tp-common-white: #0f172a !important;
  --tp-common-blue: #00a3ff !important;
  --tp-common-blue-2: #38bdf8 !important;
  --tp-common-pink: #d946ef !important;
  --tp-ff-body: 'Quicksand', sans-serif !important;
  --tp-ff-heading: 'Quicksand', sans-serif !important;
}

body {
  font-family: 'Quicksand', sans-serif !important;
  background-color: var(--learnli-dark-bg) !important;
  color: var(--learnli-text-main) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

h1, h2, h3, h4, h5, h6, .tp-ff-heading, .display-4, .display-5 {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

p, span, li {
  color: var(--learnli-text-muted);
}

.text-dark {
  color: #ffffff !important;
}

.text-muted {
  color: #94a3b8 !important;
}

/* Force All White Containers to Dark Black */
.bg-white, section.bg-white {
  background-color: var(--learnli-dark-bg) !important;
}

/* ==========================================================================
   Full Screen Preloader Splash Screen (3-Second Auto Transition)
   ========================================================================== */
.loader-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #040711 !important;
  background-image: 
    radial-gradient(circle at 50% 42%, rgba(139, 92, 246, 0.3) 0%, rgba(217, 70, 239, 0.18) 35%, transparent 68%),
    radial-gradient(circle at 50% 88%, rgba(0, 163, 255, 0.22) 0%, transparent 55%) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  opacity: 1 !important;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out !important;
  visibility: visible !important;
}

.loader-wrap.fade-out-splash {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.loader-wrap svg,
.loader-wrap-heading {
  display: none !important;
}

.learnli-preloader-content {
  text-align: center;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 40px 20px;
}

/* Center Logo Display */
.splash-logo-centered {
  height: 140px !important;
  width: auto !important;
  max-width: 520px !important;
  margin: 0 auto 25px auto !important;
  animation: splashLogoGlow 2.5s infinite ease-in-out !important;
}

@keyframes splashLogoGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 15px rgba(0, 163, 255, 0.45)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 8px 25px rgba(217, 70, 239, 0.7)); }
}

.preloader-slogan {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 5px !important;
  color: #f1f5f9 !important;
  text-transform: uppercase !important;
  margin-bottom: 60px !important;
  opacity: 0.95;
}

/* Bottom Loading Bar Container */
.preloader-progress-wrap {
  width: 320px;
  max-width: 85%;
  margin-top: auto;
  margin-bottom: 40px;
  text-align: center;
}

.preloader-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d946ef 0%, #8b5cf6 40%, #3b82f6 75%, #00a3ff 100%);
  border-radius: 10px;
  animation: splashFill 0.8s linear forwards;
}

@keyframes splashFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.preloader-loading-text {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 2.5px !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
}

.preloader-footer-text {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 13px !important;
  color: #cbd5e1 !important;
  opacity: 0.85;
}

/* ==========================================================================
   Header Styling (Modern Dark Glassmorphic Bar)
   ========================================================================== */
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tp-header-area {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  background: rgba(7, 11, 20, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3) !important;
  transition: all 0.3s ease !important;
}

.tp-header-area.header-sticky {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  background: rgba(7, 11, 20, 0.98) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}

/* Official Logo Display */
.learnli-logo-img {
  height: 48px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  filter: drop-shadow(0 2px 10px rgba(0, 163, 255, 0.3));
}

.learnli-logo-img:hover {
  transform: scale(1.04);
}

.learnli-logo-footer {
  height: 44px !important;
  width: auto !important;
  max-width: 185px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  padding: 6px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(217, 70, 239, 0.3) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
  display: inline-block !important;
  transition: transform 0.3s ease !important;
}

.learnli-logo-footer:hover {
  transform: scale(1.05) !important;
}

/* Centered Navigation Menu */
.tp-main-menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.tp-main-menu nav > ul {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tp-main-menu nav > ul > li > a {
  display: inline-block !important;
  padding: 6px 12px !important;
  font-size: 13.5px !important;
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
  position: relative !important;
  transition: all 0.25s ease !important;
}

.tp-main-menu nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0%;
  height: 2.5px;
  background: var(--learnli-logo-gradient);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(-50%);
  opacity: 0;
}

.tp-main-menu nav > ul > li > a:hover {
  color: #38bdf8 !important;
  background: rgba(217, 70, 239, 0.12) !important;
}

.tp-main-menu nav > ul > li > a:hover::after {
  width: 65%;
  opacity: 1;
}

/* ==========================================================================
   Logo Spectrum Buttons & Multi-Tone Accents
   ========================================================================== */
.learnli-btn-wow,
.learnli-btn-primary {
  font-family: 'Quicksand', sans-serif !important;
  background: var(--learnli-logo-gradient) !important;
  background-size: 200% auto !important;
  color: #ffffff !important;
  border: none !important;
  padding: 11px 26px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 25px rgba(217, 70, 239, 0.35), 0 0 15px rgba(0, 163, 255, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.learnli-btn-wow::before,
.learnli-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.learnli-btn-wow:hover::before,
.learnli-btn-primary:hover::before {
  left: 100%;
}

.learnli-btn-wow:hover,
.learnli-btn-primary:hover {
  background: var(--learnli-logo-gradient-hover) !important;
  transform: translateY(-2.5px) scale(1.02) !important;
  box-shadow: 0 12px 35px rgba(0, 163, 255, 0.55), 0 0 20px rgba(217, 70, 239, 0.4) !important;
  color: #ffffff !important;
}

.learnli-btn-secondary {
  font-family: 'Quicksand', sans-serif !important;
  background: rgba(15, 23, 42, 0.85) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(217, 70, 239, 0.4) !important;
  padding: 11px 26px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.learnli-btn-secondary:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: var(--learnli-cyan) !important;
  color: #38bdf8 !important;
  box-shadow: 0 6px 20px rgba(0, 163, 255, 0.3) !important;
}

/* Shimmer Logo Text */
.learnli-text-gradient-wow,
.learnli-text-gradient {
  background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 30%, #3b82f6 65%, #00a3ff 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoTextShimmer 5s ease infinite;
}

@keyframes logoTextShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ==========================================================================
   Hero Section - Multi-Color Aura Blobs from Logo
   ========================================================================== */
.learnli-hero-section {
  position: relative !important;
  padding-top: 155px !important;
  padding-bottom: 95px !important;
  background: var(--learnli-dark-bg) !important;
  overflow: hidden !important;
}

.learnli-hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.28) 0%, rgba(139, 92, 246, 0.18) 45%, transparent 70%);
  filter: blur(100px);
  animation: logoAura1 12s infinite alternate ease-in-out;
  pointer-events: none;
}

.learnli-hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 65%;
  height: 85%;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.3) 0%, rgba(59, 130, 246, 0.18) 45%, transparent 70%);
  filter: blur(110px);
  animation: logoAura2 14s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes logoAura1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 50px) scale(1.18); }
}

@keyframes logoAura2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -40px) scale(1.15); }
}

/* 3D Floating Dark Hero Card */
.hero-floating-card {
  background: #0f172a !important;
  border: 1.5px solid rgba(217, 70, 239, 0.35) !important;
  border-radius: 24px !important;
  padding: 36px 30px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(139, 92, 246, 0.25) !important;
  animation: floatHeroCard 5s infinite ease-in-out;
  position: relative;
  overflow: visible !important;
  margin-top: 15px !important;
}

.hero-floating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--learnli-logo-gradient);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

@keyframes floatHeroCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.6deg); }
}

/* Floating Badge */
.hero-badge-floating {
  position: absolute;
  top: -14px;
  right: 25px;
  background: var(--learnli-logo-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.45);
  animation: pulseBadge 2.5s infinite ease-in-out;
  z-index: 10;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Logo Badges */
.learnli-badge {
  font-family: 'Quicksand', sans-serif !important;
  background: rgba(217, 70, 239, 0.15) !important;
  color: #e879f9 !important;
  border: 1px solid rgba(217, 70, 239, 0.35) !important;
  padding: 6px 16px !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

.learnli-badge-pink {
  background: rgba(0, 163, 255, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(0, 163, 255, 0.35) !important;
}

/* Feature Cards - Dark Mode */
.learnli-card {
  background: #0f172a !important;
  border: 1.5px solid rgba(139, 92, 246, 0.22) !important;
  border-radius: 22px;
  padding: 34px 28px;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.learnli-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--learnli-logo-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.learnli-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 163, 255, 0.5) !important;
  box-shadow: 0 20px 45px rgba(0, 163, 255, 0.25), 0 0 20px rgba(217, 70, 239, 0.2) !important;
}

.learnli-card:hover::before {
  opacity: 1;
}

/* Card Icon Multi-Colors matching Logo Spectrum */
.learnli-card-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
}

/* Multi-colored Icon Variants */
.icon-magenta {
  background: rgba(217, 70, 239, 0.18) !important;
  color: #e879f9 !important;
}
.icon-purple {
  background: rgba(139, 92, 246, 0.18) !important;
  color: #c084fc !important;
}
.icon-indigo {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #818cf8 !important;
}
.icon-blue {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #60a5fa !important;
}
.icon-cyan {
  background: rgba(0, 163, 255, 0.18) !important;
  color: #38bdf8 !important;
}

.learnli-card:hover .learnli-card-icon {
  transform: scale(1.12) rotate(6deg);
  background: var(--learnli-logo-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 163, 255, 0.4) !important;
}

/* ==========================================================================
   Category & Format Showcase Cards
   ========================================================================== */
.category-card {
  background: #0f172a !important;
  border: 1.5px solid rgba(139, 92, 246, 0.22) !important;
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(217, 70, 239, 0.5) !important;
  box-shadow: 0 18px 40px rgba(217, 70, 239, 0.25), 0 0 20px rgba(0, 163, 255, 0.2) !important;
}

.category-pill {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
}

.format-card {
  background: linear-gradient(145deg, #0f172a 0%, #161f36 100%) !important;
  border: 1.5px solid rgba(0, 163, 255, 0.25) !important;
  border-radius: 22px;
  padding: 30px 24px;
  transition: all 0.35s ease;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  position: relative;
}

.format-card:hover {
  transform: translateY(-8px);
  border-color: #00a3ff !important;
  box-shadow: 0 20px 45px rgba(0, 163, 255, 0.35) !important;
}

.format-badge {
  background: var(--learnli-logo-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
}

/* Pricing Section - Dark */
.pricing-card-animated {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: visible !important;
}

.pricing-card-animated:hover {
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 0 22px 50px rgba(217, 70, 239, 0.35) !important;
  border-color: #d946ef !important;
}

.pricing-popular-card {
  border: 2px solid #8b5cf6 !important;
  background: linear-gradient(180deg, #0f172a 0%, #171d33 100%) !important;
  animation: logoGlowPulse 4s infinite alternate;
  overflow: visible !important;
  margin-top: 20px !important;
}

@keyframes logoGlowPulse {
  0% { box-shadow: 0 12px 35px rgba(217, 70, 239, 0.35); }
  100% { box-shadow: 0 18px 50px rgba(0, 163, 255, 0.45); }
}

.pricing-badge-animated {
  top: -14px !important;
  z-index: 100 !important;
  animation: floatBadge 3s infinite ease-in-out;
  background: var(--learnli-logo-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.5);
  white-space: nowrap !important;
}

/* Legal Page Content Styling */
.legal-content-card {
  background: #0f172a !important;
  border: 1.5px solid rgba(217, 70, 239, 0.25) !important;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.legal-content-card h3 {
  color: #38bdf8 !important;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 20px;
}

.legal-content-card p, .legal-content-card li {
  color: #94a3b8 !important;
  font-size: 15px;
  line-height: 1.7;
}

/* Compact Sleek Footer */
footer {
  background-color: #030712 !important;
  color: #ffffff !important;
  padding-top: 36px !important;
  padding-bottom: 20px !important;
  border-top: 2px solid rgba(217, 70, 239, 0.3);
}

footer a {
  color: rgba(255, 255, 255, 0.75) !important;
  transition: color 0.25s ease !important;
}

footer a:hover {
  color: var(--learnli-cyan-light) !important;
}

.footer-compact-divider {
  border-color: rgba(255, 255, 255, 0.12) !important;
  margin-top: 20px !important;
  margin-bottom: 16px !important;
}
