/* quiz.css */

/* ── Intro ── */
.intro-card {}
.intro-rules {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.rule span { font-size: 1.4rem; }

/* ── Progress bar ── */
.quiz-progress-bar {
  height: 6px;
  background: var(--soft-gray);
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blush), var(--rose));
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
  padding: 0 2px;
}

/* ── Question card ── */
.question-card { margin-bottom: 14px; }
.question-number {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose);
  margin-bottom: 8px;
}
.question-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.35;
}

/* ── Options ── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid rgba(212,104,138,0.22);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--deep);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  width: 100%;
}
.option-btn:hover:not(:disabled) {
  border-color: var(--rose);
  background: rgba(242,184,198,0.25);
  transform: translateX(3px);
}
.option-btn:disabled { cursor: default; }

.option-btn.correct {
  border-color: #4CAF50;
  background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(76,175,80,0.08));
  color: #2D6B3A;
}
.option-btn.wrong {
  border-color: var(--rose);
  background: linear-gradient(135deg, rgba(212,104,138,0.15), rgba(212,104,138,0.08));
  color: var(--rose);
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft-gray);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}
.option-btn.correct .option-letter {
  background: #4CAF50;
  color: white;
}
.option-btn.wrong .option-letter {
  background: var(--rose);
  color: white;
}

.explanation {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}
.exp-correct {
  background: rgba(76,175,80,0.12);
  border: 1.5px solid rgba(76,175,80,0.3);
  color: #2D6B3A;
}
.exp-wrong {
  background: rgba(212,104,138,0.12);
  border: 1.5px solid rgba(212,104,138,0.3);
  color: #8B2040;
}

/* ── Results ── */
.score-card {
  text-align: center;
  background: linear-gradient(145deg, rgba(45,27,46,0.92), rgba(100,40,70,0.88));
  border: none;
  padding: 36px 24px;
}
.score-circle {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.score-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--champagne);
  line-height: 1;
}
.score-total {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(247,231,206,0.5);
  font-weight: 400;
}
.score-label {
  font-size: 0.9rem;
  color: var(--blush);
  font-weight: 500;
}

/* ── Review ── */
.answers-review { margin-top: 0; }
.answers-review h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 14px;
}
.review-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 0.84rem;
}
.review-correct {
  background: rgba(76,175,80,0.09);
  border: 1px solid rgba(76,175,80,0.25);
}
.review-wrong {
  background: rgba(212,104,138,0.09);
  border: 1px solid rgba(212,104,138,0.25);
}
.review-q {
  color: var(--deep);
  margin-bottom: 4px;
  line-height: 1.4;
}
.review-chosen { color: var(--text-muted); margin-bottom: 3px; }
.review-answer { color: #2D6B3A; font-weight: 600; }
