/* Typography and base mobile polish */
:root {
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  touch-action: manipulation;
  overscroll-behavior-y: none;
}

/* Animations */
@keyframes pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

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

.animate-pop {
  animation: pop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-bounce-soft {
  animation: bounceSoft 2s ease-in-out infinite;
}

/* Custom styled option buttons */
.quiz-option-btn {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  background-color: #FFFFFF;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  transition: all 0.15s ease-out;
  cursor: pointer;
  user-select: none;
}

.quiz-option-btn:active:not(:disabled) {
  transform: scale(0.985);
  background-color: #F8FAFC;
}

.quiz-option-btn:disabled {
  cursor: default;
}

/* Correct state */
.quiz-option-btn.option-correct {
  border-color: #10B981 !important;
  background-color: #ECFDF5 !important;
  color: #065F46 !important;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.25);
}

/* Wrong state */
.quiz-option-btn.option-wrong {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  color: #991B1B !important;
  box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.2);
}

/* Neutral state when another choice was selected */
.quiz-option-btn.option-dimmed {
  opacity: 0.55;
  background-color: #F8FAFC;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

/* Smooth transitions for view switches */
section {
  transition: opacity 0.2s ease-in-out;
}