/* Home performance snapshot — Expert proof-card.

   The card itself is a vanilla <div class="proof-card"> so it inherits all
   styling from home-index.css. Only the two chips rows below the mode
   selector are styled here:
     - meta row  : Mode · Réglés · Taux exact · (Voids)
     - seuils row: 1X2 65 % · BTTS 64 % · …
*/

#home-perf-snapshot .hps-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  padding: 0;
}

#home-perf-snapshot .hps-chips-row + .hps-chips-row {
  margin-top: 6px;
}

#home-perf-snapshot .hps-chips-label {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-right: 2px;
}

#home-perf-snapshot .hps-chips-label::after {
  content: " :";
}

html[lang="en"] #home-perf-snapshot .hps-chips-label::after {
  content: ":";
}

#home-perf-snapshot .hps-chips {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

#home-perf-snapshot .hps-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: nowrap;
}

#home-perf-snapshot .hps-chip-key {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  text-transform: uppercase;
}

#home-perf-snapshot .hps-chip-val {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] #home-perf-snapshot .hps-chip {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(148, 163, 184, 0.28);
}

/* ===========================
   Unified proof section header & disclaimer
   =========================== */
.proof-section-head {
  grid-column: 1 / -1;
  text-align: center;
  margin: 6px 0 4px;
}

.proof-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--text);
}

.proof-section-head p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.proof-disclaimer {
  grid-column: 1 / -1;
  margin: 4px auto 0;
  max-width: 860px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-top: 1px dashed var(--border);
}

/* Equal-width cards on desktop so the two scores read as siblings */
@media (min-width: 981px) {
  .home-proof .proof-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Card layout: clearer hierarchy with kicker label */
.proof-card .proof-card-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.proof-card--stable .proof-card-kicker {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

.proof-card--multi .proof-card-kicker {
  color: #0e7490;
  background: rgba(14, 116, 144, 0.08);
  border-color: rgba(14, 116, 144, 0.22);
}

.proof-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--text);
}

/* Score block: "80 réussis" / "sur 100 picks" */
.proof-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 6px 0 12px;
}

.proof-score-headline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  line-height: 1.1;
}

.proof-score-value {
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--success);
  font-variant-numeric: tabular-nums;
}

.proof-score-suffix {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: var(--text);
}

.proof-score-sub {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.proof-score-sub .total {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Detail line under the description */
.stats-description-detail {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
}

.stats-threshold-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.stats-threshold-meta strong {
  color: var(--text);
}

.proof-card-helplink {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.3;
}

.proof-card-helplink a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.proof-card-helplink a:hover {
  color: var(--text);
}

[data-theme="dark"] .proof-card-helplink a {
  color: #94a3b8;
}

[data-theme="dark"] .proof-card-helplink a:hover {
  color: #e5eefb;
}

/* Symmetric proof actions: primary + secondary, identical layout both cards */
.proof-card .proof-actions {
  margin-top: auto;
  padding-top: 14px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.proof-card .proof-actions .btn {
  width: min(320px, 100%);
  text-align: center;
}

.proof-card {
  display: flex;
  flex-direction: column;
}

@media (max-width: 560px) {
  .proof-card .proof-actions .btn {
    width: 100%;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .proof-card .proof-card-kicker {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

[data-theme="dark"] .proof-card--stable .proof-card-kicker {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.32);
  color: #bfdbfe;
}

[data-theme="dark"] .proof-card--multi .proof-card-kicker {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.30);
  color: #a5f3fc;
}

[data-theme="dark"] .proof-disclaimer {
  color: #94a3b8;
  border-top-color: rgba(148, 163, 184, 0.25);
}

[data-theme="dark"] .proof-score-suffix {
  color: #e5eefb;
}

[data-theme="dark"] .proof-score-sub {
  color: #cbd5e1;
}

[data-theme="dark"] .proof-score-sub .total,
[data-theme="dark"] .stats-threshold-meta strong {
  color: #f8fafc;
}
