/* ─────────────────────────────────────────────────────────────
   DECA — Bilan Carbone Quiz Styles
   ───────────────────────────────────────────────────────────── */

/* ── LAYOUT ── */

.quiz-body {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */

.quiz-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  overflow: hidden;
}

.quiz-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-signature);
  border-radius: 0 2px 2px 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-progress-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ── MAIN ── */

.quiz-main {
  flex: 1;
  max-width: 660px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── INTRO SCREEN ── */

.quiz-intro {
  text-align: center;
  padding: 48px 0;
}

.quiz-intro-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.quiz-intro-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 36px;
}

.quiz-intro-cats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.quiz-intro-cat {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-start:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ── SCREEN ANIMATION ── */

#screen-question,
#screen-results {
  animation: fadeInUp 0.3s ease;
}

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

/* ── QUESTION SCREEN ── */

.question-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.question-text {
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--color-text);
}

.question-hint {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── OPTIONS (radio) ── */

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}

.option-label:hover {
  border-color: #b0b0b8;
  background: var(--color-surface);
}

.option-label:active {
  transform: scale(0.99);
}

.option-label.selected {
  border-color: var(--color-text);
  background: var(--color-surface);
}

.option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s;
}

.option-label.selected .option-dot {
  border-color: var(--color-text);
  background: var(--color-text);
}

.option-label.selected .option-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* ── NUMBER INPUT ── */

.number-input-wrap {
  position: relative;
  margin-bottom: 36px;
}

.number-input {
  width: 100%;
  padding: 18px 90px 18px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 26px;
  font-family: inherit;
  font-weight: 700;
  color: var(--color-text);
  background: transparent;
  outline: none;
  transition: border-color 0.18s ease;
  -webkit-user-select: text;
  user-select: text;
  pointer-events: auto;
}

.number-input:focus {
  border-color: var(--color-text);
}

.number-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.number-unit {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  pointer-events: none;
  white-space: nowrap;
}

/* ── NAVIGATION ── */

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-prev {
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

.btn-prev:hover { background: var(--color-border); }

.btn-next {
  margin-left: auto;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  background: var(--color-text);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
}

.btn-next:hover:not(:disabled) {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── RESULTS ── */

.results-hero {
  text-align: center;
  padding: 32px 0 40px;
}

.results-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.results-score {
  font-size: clamp(60px, 14vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.results-score-unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.results-tagline {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 36px;
}

/* ── GAUGE ── */

.gauge-wrap {
  max-width: 420px;
  margin: 0 auto 52px;
}

.gauge-track {
  height: 10px;
  background: var(--color-surface);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.gauge-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-tertiary);
  gap: 4px;
  flex-wrap: wrap;
}

/* ── BREAKDOWN ── */

.breakdown-section {
  margin-bottom: 52px;
}

.breakdown-title,
.equiv-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breakdown-label {
  width: 140px;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

.breakdown-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-surface);
  border-radius: 100px;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-value {
  width: 52px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

/* ── EQUIVALENCES ── */

.equiv-section {
  margin-bottom: 52px;
}

.equiv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.equiv-card {
  padding: 24px 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  text-align: center;
}

.equiv-emoji {
  font-size: 28px;
  margin-bottom: 10px;
}

.equiv-number {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.equiv-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ── DECA RECOMMENDATIONS ── */

.deca-reco {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.deca-reco-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.deca-reco-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.deca-reco-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deca-reco-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
  pointer-events: auto;
}

.deca-reco-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── RESTART ── */

.btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-restart:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}

/* ── RESPONSIVE ── */

@media (max-width: 560px) {
  .quiz-main { padding: 32px 16px 64px; }
  .option-label { padding: 14px 14px; font-size: 14px; }
  .equiv-cards { grid-template-columns: 1fr; }
  .breakdown-label { width: 110px; font-size: 13px; }
  .deca-reco { padding: 24px 20px; }
  .gauge-labels { font-size: 10px; }
}
