/* ZythoQuiz Academy — Custom Styles */

/* Beer gradient background */
.beer-gradient {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Hero section */
.hero-gradient {
  background: linear-gradient(180deg,
    rgba(212, 160, 23, 0.08) 0%,
    rgba(0, 0, 0, 0) 60%
  );
}

/* Amber glow effects */
.amber-glow {
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.15);
}

.amber-glow-lg {
  box-shadow: 0 0 80px rgba(212, 160, 23, 0.2);
}

/* Card hover effects */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.1);
}

/* Subtle grain texture overlay */
.grain-overlay {
  position: relative;
}

.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Timer pulse animation */
@keyframes timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.timer-critical {
  animation: timer-pulse 1s ease-in-out infinite;
  color: #ef4444;
}

/* Progress bar animation */
.progress-bar-animated {
  transition: width 0.5s ease-out;
}

/* Quiz choice hover */
.choice-btn {
  transition: all 0.2s ease;
}

.choice-btn:hover {
  transform: translateX(4px);
}

/* Smooth page transitions */
.page-enter {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 160, 23, 0.5);
}

/* Logo placeholder */
.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  background: linear-gradient(135deg, #D4A017, #F5D060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stripe-like payment button */
.stripe-btn {
  background: linear-gradient(135deg, #635BFF, #7C3AED);
  transition: all 0.2s;
}

.stripe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.4);
}

/* Pass/fail badge animation */
@keyframes badgePop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.badge-animate {
  animation: badgePop 0.6s ease-out;
}

/* Score bar animation */
@keyframes barGrow {
  from { width: 0; }
}

.score-bar-animate {
  animation: barGrow 1.5s ease-out;
}

/* Responsive navigation dots */
#nav-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

/* ============================================================
   WCAG AA CONTRAST FIXES
   text-gray-500 (#6b7280) on dark backgrounds fails 4.5:1.
   Override to #9ca3af (gray-400 equivalent) for readability.
   ============================================================ */
.text-gray-500 {
  color: #9ca3af !important;
}
