/* EconQuest Master Stylesheet */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
  }
  50% {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
  }
}

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

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

.animate-bounce-short {
  animation: bounceShort 0.6s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* KaTeX custom formatting */
.katex-display {
  margin: 1em 0;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Quiz Option Card Animations */
.quiz-option-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-option-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Modal Transitions */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

/* Level Badges */
.badge-level-1 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}
.badge-level-2 {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}
.badge-level-3 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}
.badge-level-4 {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: white;
}
