/* =====================================================
   GuruTyping - Minimal custom CSS (Tailwind handles 95%)
   ===================================================== */

/* CSS variables kept for legacy templates/test interface */
:root {
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  --fg: #0f172a;
  --fg-soft: #475569;
  --fg-muted: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --font-display: 'Inter', system-ui, sans-serif;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Typing test characters (used in exam test page) */
.char { color: #94a3b8; }
.char.correct { color: #10b981; }
.char.incorrect { color: #ef4444; background: rgba(239,68,68,0.08); border-radius: 2px; }
.char.current { background: #4f46e5; color: white; border-radius: 2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: .35; } }

/* Animated gradient blobs for hero */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

/* Marquee for "trusted by" rows */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: scroll-x 30s linear infinite;
  min-width: 100%;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Custom focus rings */
*:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible { outline-offset: 3px; }

/* Form helpers used across auth pages */
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Prose styling for blog posts / legal pages */
.prose-custom h1,
.prose-custom h2,
.prose-custom h3 { color: #0f172a; font-weight: 700; line-height: 1.25; margin-top: 1.5em; margin-bottom: 0.5em; }
.prose-custom h1 { font-size: 2rem; }
.prose-custom h2 { font-size: 1.5rem; }
.prose-custom h3 { font-size: 1.25rem; }
.prose-custom p { color: #475569; line-height: 1.7; margin: 1em 0; }
.prose-custom ul, .prose-custom ol { color: #475569; line-height: 1.7; margin: 1em 0; padding-left: 1.5em; }
.prose-custom ul { list-style: disc; }
.prose-custom ol { list-style: decimal; }
.prose-custom li { margin: 0.5em 0; }
.prose-custom a { color: #4f46e5; text-decoration: underline; }
.prose-custom a:hover { color: #4338ca; }
.prose-custom strong { color: #0f172a; font-weight: 600; }
.prose-custom code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.875em; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
