/* ══════════════════════════════════════════════════════════
   css/quiz.css — Money Quiz page styles
   ══════════════════════════════════════════════════════════ */

/* ── Shell ── */
.quiz-shell {
  min-height: 80vh;
  padding: 60px 0 120px;
}

/* ── Progress ── */
.quiz-progress {
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted, #8888A0);
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.quiz-progress-bar-track {
  height: 3px;
  background: #1F1F2B;
  border-radius: 99px;
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: #C8A96E;
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Question card ── */
.quiz-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.quiz-question-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  color: #F0EBEB;
  line-height: 1.25;
  margin-bottom: 32px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #111118;
  border: 1px solid #1F1F2B;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  color: #c8c8d8;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  line-height: 1.45;
  width: 100%;
}

.quiz-option:hover {
  border-color: #C8A96E;
  background: #18181f;
}

.quiz-option:active {
  transform: scale(0.98);
}

.quiz-option.selected {
  border-color: #C8A96E;
  background: rgba(200, 169, 110, 0.08);
  color: #F0EBEB;
}

.quiz-option-letter {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1F1F2B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #C8A96E;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  transition: background 0.18s ease;
  margin-top: 1px;
}

.quiz-option.selected .quiz-option-letter {
  background: #C8A96E;
  color: #09090E;
}

/* ── Slide transition ── */
.quiz-slide {
  animation: quizSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.quiz-slide-out {
  animation: quizSlideOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

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

/* ── Result screen ── */
.quiz-result {
  display: none;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  animation: quizSlideIn 0.38s ease both;
}

.quiz-result.visible {
  display: block;
}

.quiz-result-type-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.quiz-result-label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C8A96E;
  margin-bottom: 4px;
}

.quiz-result-type-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  color: #F0EBEB;
  line-height: 1.05;
  margin-bottom: 24px;
}

/* ── Score bar ── */
.quiz-score-block {
  margin-bottom: 32px;
}

.quiz-score-label {
  font-size: 14px;
  color: #C8A96E;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  margin-bottom: 8px;
}

.quiz-score-track {
  height: 6px;
  background: #1F1F2B;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.quiz-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #C8A96E, #E0C98C);
  border-radius: 99px;
  width: 0%;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-score-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: #C8A96E;
}

/* ── Description ── */
.quiz-result-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #c8c8d8;
  margin-bottom: 32px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

/* ── What this means ── */
.quiz-means {
  background: #111118;
  border: 1px solid #1F1F2B;
  border-radius: 14px;
  padding: 28px 28px 24px;
  margin-bottom: 36px;
}

.quiz-means h3 {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8A96E;
  margin-bottom: 16px;
}

.quiz-means ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-means ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #c8c8d8;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.quiz-means ul li::before {
  content: '—';
  color: #C8A96E;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Actions ── */
.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.quiz-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #C8A96E;
  color: #09090E;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease;
}

.quiz-btn-primary:hover {
  background: #D4B97C;
  transform: translateY(-1px);
}

.quiz-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: #C8A96E;
  border: 1px solid #C8A96E;
  border-radius: 8px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease;
}

.quiz-btn-secondary:hover {
  background: rgba(200, 169, 110, 0.08);
  transform: translateY(-1px);
}

.quiz-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: #8888A0;
  border: 1px solid #1F1F2B;
  border-radius: 8px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.quiz-btn-ghost:hover {
  border-color: #C8A96E;
  color: #C8A96E;
}

.quiz-save-note {
  font-size: 13px;
  color: var(--text-muted, #8888A0);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  margin-top: 4px;
}

/* ── Retake ── */
.quiz-retake-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted, #8888A0);
  cursor: pointer;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
}

.quiz-retake-link:hover {
  color: #C8A96E;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-result-actions {
    flex-direction: column;
  }

  .quiz-btn-primary,
  .quiz-btn-secondary,
  .quiz-btn-ghost {
    width: 100%;
    justify-content: center;
  }
}
