/* CrossTest Landing Page Custom Styles */

:root {
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #06b6d4 100%);
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --glow-color: rgba(59, 130, 246, 0.18);
  --card-bg-dark: rgba(17, 24, 39, 0.75);
  --card-border-dark: rgba(255, 255, 255, 0.08);
  --card-bg-light: rgba(255, 255, 255, 0.92);
  --card-border-light: rgba(226, 232, 240, 0.9);
}

/* Smooth Scrolling & Typography */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--card-bg-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border-dark);
}

/* Subtle Gradient Glow Background */
.radial-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Animated Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Streak Grid Badge styles */
.streak-box {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.streak-box:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Pulse Keyframes for Badges */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
  }
}

.pulse-glow {
  animation: pulseGlow 3s infinite;
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float-effect {
  animation: floatAnimation 4s ease-in-out infinite;
}

/* Ticker Animation for Live Proof Activity */
@keyframes tickerSlide {
  0% { transform: translateY(0%); }
  100% { transform: translateY(-50%); }
}

.ticker-content {
  display: flex;
  flex-direction: column;
  animation: tickerSlide 14s linear infinite;
}
.ticker-content:hover {
  animation-play-state: paused;
}

/* Radar Scan for Matching */
@keyframes scanline {
  0% {
    top: 0%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.scan-radar {
  position: relative;
  overflow: hidden;
}

.scan-radar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 12px #38bdf8;
  animation: scanline 2.5s ease-in-out infinite;
}

/* Interactive Calculator Sliders */
input[type=range] {
  -webkit-appearance: none;
  background: #334155;
  height: 6px;
  border-radius: 4px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
  transition: transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Modal Transitions */
.modal-backdrop {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-container {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.modal-hidden .modal-container {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
}

/* =========================================================
   LIGHT THEME OVERRIDES (Full comprehensive high-contrast)
   ========================================================= */

html.light body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html.light .radial-glow {
  opacity: 0.22;
}

/* Glass Panels & Containers */
html.light .glass-panel {
  background: var(--card-bg-light) !important;
  border: 1px solid var(--card-border-light) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Header & Mobile Menu */
html.light header {
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-color: #e2e8f0 !important;
}

html.light #mobile-menu {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

/* Backgrounds (Dark to Light mapping) */
html.light .bg-slate-950 {
  background-color: #f8fafc !important;
}

html.light .bg-slate-900 {
  background-color: #ffffff !important;
}

html.light .bg-slate-950\/80,
html.light .bg-slate-950\/60,
html.light .bg-slate-950\/90,
html.light .bg-slate-900\/95,
html.light .bg-slate-900\/90,
html.light .bg-slate-900\/80,
html.light .bg-slate-900\/70,
html.light .bg-slate-900\/60,
html.light .bg-slate-900\/50,
html.light .bg-slate-900\/40,
html.light .bg-slate-900\/30 {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

html.light .bg-slate-800,
html.light .bg-slate-800\/50,
html.light .bg-slate-800\/60,
html.light .bg-slate-800\/80 {
  background-color: #f1f5f9 !important;
}

html.light .bg-blue-950\/20,
html.light .bg-blue-950\/40 {
  background-color: #f0f7ff !important;
  border-color: #93c5fd !important;
}

/* Watermark Step Numbers in Light Mode */
html.light .text-slate-700 {
  color: #cbd5e1 !important;
}

/* Secondary CTA Buttons in Light Mode */
html.light button.bg-slate-800,
html.light a.bg-slate-800 {
  background-color: #0f172a !important;
  color: #ffffff !important;
}
html.light button.bg-slate-800:hover,
html.light a.bg-slate-800:hover {
  background-color: #1e293b !important;
}

/* Borders */
html.light .border-slate-800,
html.light .border-slate-700,
html.light .border-slate-800\/80,
html.light .border-slate-800\/60,
html.light .border-slate-800\/50,
html.light .border-slate-700\/80,
html.light .border-slate-700\/50 {
  border-color: #e2e8f0 !important;
}

/* Typography Colors */
html.light .text-white {
  color: #0f172a !important;
}

html.light .text-slate-100,
html.light .text-slate-200 {
  color: #1e293b !important;
}

html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-400 {
  color: #64748b !important;
}

html.light .text-slate-500 {
  color: #64748b !important;
}

html.light .text-slate-600 {
  color: #475569 !important;
}

/* Primary Branded Buttons & Gradient Badges (Keep white text intact) */
html.light .bg-blue-600,
html.light .bg-blue-500,
html.light .bg-blue-700,
html.light .bg-emerald-600,
html.light .bg-emerald-500,
html.light button.bg-blue-600,
html.light a.bg-blue-600,
html.light button[class*="from-blue-600"],
html.light a[class*="from-blue-600"],
html.light .bg-gradient-to-r:not(.gradient-text),
html.light .bg-gradient-to-br:not(.gradient-text) {
  color: #ffffff !important;
}

html.light .bg-blue-600 .text-white,
html.light .bg-blue-500 .text-white,
html.light .bg-emerald-600 .text-white,
html.light .bg-emerald-500 .text-white,
html.light button.bg-blue-600 *,
html.light a.bg-blue-600 *,
html.light button[class*="from-blue-600"] *,
html.light a[class*="from-blue-600"] *,
html.light .bg-gradient-to-r:not(.gradient-text) *,
html.light .bg-gradient-to-br:not(.gradient-text) * {
  color: #ffffff !important;
}

/* Accent Badges with soft light backgrounds */
html.light .bg-blue-500\/10,
html.light .bg-blue-600\/10,
html.light .bg-blue-500\/20 {
  background-color: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

html.light .bg-emerald-500\/10,
html.light .bg-emerald-600\/10,
html.light .bg-emerald-500\/20 {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

html.light .bg-amber-500\/10,
html.light .bg-amber-600\/10,
html.light .bg-amber-500\/20 {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

html.light .bg-purple-500\/10,
html.light .bg-purple-600\/10,
html.light .bg-purple-500\/20 {
  background-color: #faf5ff !important;
  border-color: #e9d5ff !important;
  color: #7e22ce !important;
}

html.light .bg-rose-500\/10,
html.light .bg-rose-600\/10,
html.light .bg-rose-500\/20 {
  background-color: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

/* Hover States on Light Mode */
html.light .hover\:bg-slate-800:hover {
  background-color: #e2e8f0 !important;
}
html.light .hover\:bg-slate-900:hover {
  background-color: #f1f5f9 !important;
}
html.light .hover\:text-white:hover {
  color: #0f172a !important;
}

/* Form inputs & dropdowns */
html.light input:not([type=range]),
html.light select,
html.light textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html.light input[type=range] {
  background: #cbd5e1 !important;
}

/* Modals & Dialogs */
html.light .modal-backdrop {
  background-color: rgba(15, 23, 42, 0.55) !important;
}

html.light .modal-container {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

/* Footer in Light Mode */
html.light footer {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

/* Streak Simulator Grid in Light Mode */
html.light .streak-box:not(.bg-emerald-500\/20):not(.bg-blue-600\/20) {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

html.light .streak-box.bg-emerald-500\/20 {
  background-color: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  color: #059669 !important;
}

html.light .streak-box.bg-blue-600\/20 {
  background-color: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #2563eb !important;
}
