/* ═══════════════════════════════════════════
   RADIOLOGY ROADMAP — confidence.css
   Call Confidence Tracker
═══════════════════════════════════════════ */

.confidence-page {
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ── Hero ───────────────────────────────── */
.conf-hero {
  padding: 52px 0 32px;
}

.conf-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.conf-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Legend ─────────────────────────────── */
.conf-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.ld {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.ld1 { background: #7f1a1a; }
.ld2 { background: #7f5010; }
.ld3 { background: #3a5a20; }
.ld4 { background: #1a5080; }

/* ── Phase dots ─────────────────────────── */
.phase-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.phase-dot.done { background: #2a6fa8; }
.phase-dot.active { background: var(--blue-accent); box-shadow: 0 0 8px rgba(59,130,246,0.5); }

/* ── Flow container ─────────────────────── */
.conf-flow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section card ───────────────────────── */
.section-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-icon { font-size: 1.6rem; }

.section-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.section-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* ── Topic row ──────────────────────────── */
.topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 12px;
}

.topic-row:last-child { border-bottom: none; }

.topic-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.4;
}

/* ── Rating buttons ─────────────────────── */
.rating-buttons {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.rb {
  width: 38px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--navy-mid);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit;
}

.rb:hover { border-color: var(--border-blue); color: #7eb8f7; }

.rb.selected-1 { background: #3d0f0f; border-color: #7f1a1a; color: #f87171; }
.rb.selected-2 { background: #3d2a0a; border-color: #7f5010; color: #fbbf24; }
.rb.selected-3 { background: #1a2d10; border-color: #3a5a20; color: #86efac; }
.rb.selected-4 { background: #0a2540; border-color: #1a5080; color: #60a5fa; }

/* ── Nav row ────────────────────────────── */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 32px;
}

.conf-nav-btn {
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--blue-accent);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.15s;
}

.conf-nav-btn:hover:not(:disabled) { border-color: var(--blue-accent); background: rgba(59,130,246,0.08); }
.conf-nav-btn:disabled { opacity: 0.25; cursor: default; }
.conf-nav-btn.primary { background: var(--blue-accent); border-color: var(--blue-accent); color: #fff; }
.conf-nav-btn.primary:hover:not(:disabled) { background: #2563eb; }

.progress-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ── Results ────────────────────────────── */
.results-intro {
  text-align: center;
  font-size: 0.78rem;
  color: var(--blue-accent);
  margin-bottom: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.summary-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.summary-pill {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sp1 { background: #3d0f0f; color: #f87171; border: 1px solid #7f1a1a; }
.sp2 { background: #3d2a0a; color: #fbbf24; border: 1px solid #7f5010; }
.sp3 { background: #1a2d10; color: #86efac; border: 1px solid #3a5a20; }
.sp4 { background: #0a2540; color: #60a5fa; border: 1px solid #1a5080; }

.results-section-header {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 24px auto 12px;
  max-width: 720px;
}

.results-section-header.priority { color: #f87171; }
.results-section-header.strong   { color: #60a5fa; }
.results-section-header.unrated  { color: var(--text-dim); }

.result-section {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.result-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #7eb8f7;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 12px;
  font-size: 0.8rem;
}

.result-item:last-child { border-bottom: none; }

.result-topic {
  color: var(--text-muted);
  flex: 1;
  line-height: 1.4;
}

.result-section-tag {
  color: var(--text-dim);
  font-size: 0.68rem;
  margin-right: 8px;
  letter-spacing: 0.04em;
}

.result-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-1 { background: #3d0f0f; color: #f87171; }
.badge-2 { background: #3d2a0a; color: #fbbf24; }
.badge-3 { background: #1a2d10; color: #86efac; }
.badge-4 { background: #0a2540; color: #60a5fa; }
.badge-unrated { background: var(--navy-mid); color: var(--text-dim); border: 1px solid var(--border); }

.cta-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 24px;
  line-height: 1.7;
}

.cta-note a { color: var(--blue-accent); text-decoration: none; }
.cta-note a:hover { text-decoration: underline; }
.cta-note .red { color: #f87171; }
.cta-note .yellow { color: #fbbf24; }

/* ── Print styles ───────────────────────── */
@media print {
  .site-header, .conf-hero, .phase-bar, #rating-page, .cta-note + div { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .result-section { border: 1px solid #ccc !important; background: #fff !important; break-inside: avoid; }
  .result-section-title, .result-topic, .results-intro, .results-section-header { color: #000 !important; }
  .result-badge { border: 1px solid #999 !important; }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 560px) {
  .section-card { padding: 18px 14px; }
  .rb { width: 32px; height: 28px; }
  .topic-label { font-size: 0.77rem; }
}
