/* Custom styles and animations for Nez Quizz */

@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-pop-in {
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-shake {
  animation: shake 0.4s ease-in-out forwards;
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Option button states */
.option-btn {
  transition: all 0.18s ease-in-out;
  position: relative;
  overflow: hidden;
}

.option-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.6);
}

.option-btn:active:not(:disabled) {
  transform: translateY(0);
}

.option-btn.selected-correct {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4) !important;
}

.option-btn.selected-wrong {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4) !important;
  animation: shake 0.4s ease-in-out;
}

.option-btn.revealed-correct {
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.7);
}

/* Progress bar urgent state */
.progress-urgent {
  background: linear-gradient(to right, #ef4444, #f97316) !important;
  animation: pulse-subtle 0.5s infinite alternate !important;
}
