/* ==========================================================================
   pages/_report.css
   Styles für den openmodelbench Benchmark-Report
   ========================================================================== */

/* ── Layout ──────────────────────────────────────────────────────────────── */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

main h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 16px;
}

.sub {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 15px;
}

/* ── Info-Box ─────────────────────────────────────────────────────────────── */
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 12px 0;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
main h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 56px 0 20px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

/* ── Meta-Text ────────────────────────────────────────────────────────────── */
.meta {
  color: var(--muted);
  font-size: .84rem;
  margin: 8px 0 0;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.fits        { color: var(--ok); }
.tight       { color: var(--warn); }
.too-slow,
.quality,
.failed      { color: var(--bad); }

/* ── Throughput bars ──────────────────────────────────────────────────────── */
.barrow {
  display: grid;
  grid-template-columns: minmax(140px, 300px) 1fr 70px;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
  font-size: .9rem;
}

.barrow span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  min-width: 2px;
}

/* ── Antworten / Samples ──────────────────────────────────────────────────── */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.out {
  white-space: pre-wrap;
  font: 13px/1.55 var(--mono);
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
}

/* ── Judge-Auswertung ─────────────────────────────────────────────────────── */
.judge-row {
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .82em;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
}

.judge-pass {
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
}

.judge-fail {
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
}

.judge-label  { font-weight: 600; color: var(--muted); }
.judge-score  { font-variant-numeric: tabular-nums; font-weight: 700; }
.judge-pass .judge-score { color: var(--ok); }
.judge-fail .judge-score { color: var(--bad); }
.judge-reason { color: var(--muted); font-style: italic; }

/* ── Fehlgeschlagene Checks ───────────────────────────────────────────────── */
.fail {
  color: var(--bad);
  font-size: .85rem;
  margin: 6px 0;
}

/* ── Good/Bad-Buttons ────────────────────────────────────────────────────── */
.rate button {
  font: inherit;
  font-size: .85rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 6px;
  padding: 3px 12px;
  cursor: pointer;
}

.rate button:hover { border-color: var(--ink); }

.rate button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.rate button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Details / Summary ────────────────────────────────────────────────────── */
details { margin: 14px 0; }
summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  main { padding: 40px 16px 64px; }
  .barrow { grid-template-columns: 1fr 60px; }
  .barrow .bar { grid-column: 1 / -1; grid-row: 2; }
}
