/* ═══════════════════════════════════════════
   TrackLab Score Page — component styles
   ═══════════════════════════════════════════ */

/* ── Hero ── */
.profile--score .guide-hero { margin-bottom: 36px; animation: profFadeUp 0.4s ease; }
.profile--score .guide-hero h1 {
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 30px;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 6px;
}
.profile--score .gh-tagline {
  font-size: 16px; color: var(--text-secondary); margin-bottom: 6px;
}
.profile--score .gh-note {
  font-size: 13px; color: var(--text-muted); font-style: italic;
}

/* ── Prose additions ── */
.profile--score .prose em { color: var(--accent-amber); font-style: normal; font-weight: 600; }

/* ── Sections ── */
.profile--score .section { animation: profFadeUp 0.4s ease 0.05s backwards; }

/* ── Score demo example ── */
.score-demo {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin: 16px 0;
}
.sd-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-lime); margin-bottom: 14px;
}
.sd-horse {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 10px;
}
.sd-silk {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 14px; color: #fff;
}
.sd-info { flex: 1; }
.sd-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 16px; }
.sd-meta { font-size: 12px; color: var(--text-muted); }
.sd-score-block { text-align: center; }
.sd-score {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 32px;
  line-height: 1;
}
.sd-score.high { color: var(--accent-lime); }
.sd-score.mid { color: var(--accent-amber); }
.sd-score-label { font-size: 10px; color: var(--text-muted); }
.sd-caption {
  font-size: 13px; color: var(--text-muted); text-align: center;
  font-style: italic;
}

/* ── Callout boxes ── */
.profile--score .callout {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin: 16px 0;
  position: relative; overflow: hidden;
}
.profile--score .callout::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
}
.profile--score .callout.info::before { background: var(--accent-blue); }
.profile--score .callout.green::before { background: var(--accent-green); }
.profile--score .callout.amber::before { background: var(--accent-amber); }
.profile--score .callout.lime::before { background: var(--accent-lime); }

.profile--score .callout .co-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px;
  margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
}
.profile--score .callout.info .co-title { color: var(--accent-blue); }
.profile--score .callout.green .co-title { color: var(--accent-green); }
.profile--score .callout.amber .co-title { color: var(--accent-amber); }
.profile--score .callout.lime .co-title { color: var(--accent-lime); }

.profile--score .callout .co-body {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}
.profile--score .callout .co-body strong { color: var(--text-primary); }

/* ── Value signal cards ── */
.value-cards {
  display: flex; flex-direction: column; gap: 8px; margin: 16px 0;
}
.val-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.val-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  padding: 5px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.val-badge.super { background: rgba(200,255,0,0.12); color: var(--accent-lime); border: 1px solid rgba(200,255,0,0.2); }
.val-badge.value { background: rgba(34,197,94,0.1); color: var(--accent-green); border: 1px solid rgba(34,197,94,0.18); }
.val-badge.neutral { background: rgba(100,116,139,0.08); color: var(--text-muted); border: 1px solid var(--border); }

.val-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.val-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.val-stat { text-align: center; flex-shrink: 0; }
.val-stat .vs-num {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 20px;
}
.val-stat .vs-label { font-size: 9px; color: var(--text-muted); }

/* ── Features grid ── */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin: 16px 0;
}
.feat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.feat-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px;
  margin-bottom: 4px; display: flex; align-items: center; gap: 5px;
}
.feat-body { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── Timeline ── */
.sc-timeline {
  display: flex; flex-direction: column; gap: 0; margin: 16px 0;
}
.sc-tl-item {
  display: grid;
  grid-template-columns: 70px 20px 1fr;
  gap: 0; min-height: 56px;
}
.sc-tl-time {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  color: var(--accent-lime); padding-top: 12px; text-align: right;
  padding-right: 10px;
}
.sc-tl-dot-col {
  display: flex; flex-direction: column; align-items: center;
}
.sc-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 14px; z-index: 1; flex-shrink: 0;
}
.sc-tl-dot.main { background: var(--accent-lime); box-shadow: 0 0 6px rgba(200,255,0,0.3); }
.sc-tl-dot.secondary { background: var(--text-muted); }
.sc-tl-line { width: 2px; flex: 1; background: var(--border); }

.sc-tl-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  margin: 6px 0 6px 8px;
}
.sc-tl-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.sc-tl-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── Technical detail (collapsible) ── */
.tech-detail {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 16px 0;
}
.td-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid transparent; transition: all 0.15s;
}
.td-header:hover { background: rgba(255,255,255,0.02); }
.tech-detail.open .td-header { border-bottom-color: var(--border); }
.td-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.td-toggle {
  font-size: 16px; color: var(--text-muted); transition: transform 0.2s;
}
.tech-detail.open .td-toggle { transform: rotate(180deg); }
.td-body { display: none; padding: 16px; }
.tech-detail.open .td-body { display: block; }
.td-body p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 10px;
}
.td-body p:last-child { margin-bottom: 0; }
.td-body strong { color: var(--text-primary); }
.td-body code {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  background: rgba(255,255,255,0.05); padding: 1px 5px;
  border-radius: 3px; color: var(--accent-lime);
}

.td-stats {
  display: flex; gap: 12px; margin: 10px 0; flex-wrap: wrap;
}
.td-stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 14px; text-align: center;
}
.td-stat .tds-num {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 18px;
  color: var(--accent-lime);
}
.td-stat .tds-label { font-size: 10px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 800px) {
  .profile--score .guide-hero h1 { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .val-card { grid-template-columns: 1fr; gap: 8px; }
  .val-stat { text-align: left; display: flex; gap: 6px; align-items: center; }
  .sc-tl-item { grid-template-columns: 55px 20px 1fr; }
  .sc-tl-time { font-size: 10px; }
}
