/* =========================================================
   STADIUM DAYLIGHT — Match card (shared)
   Used by Today (/) and Fixtures (/fixtures).
   Tokens: tokens.css. Conventions: BEM, mobile-first.
   ========================================================= */

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.match-card__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
/* Symmetric 3-column grid so home and away sit at mirrored positions
   regardless of code length — flags bookend the "vs" midline. */
.match-card__teams {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-sm);
}
.match-card__team {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.match-card__team--home { justify-self: end; }
.match-card__team--away { justify-self: start; }
.match-card__team-code {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.match-card__vs {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.match-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--slate);
  margin: 0;
}
.match-card__kickoff {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.match-card__pot {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--pitch-soft);
  color: var(--pitch-deep);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
}

.match-card__score {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.match-card__predictions {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.match-card__predictions-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}
.match-card__predictions-count {
  margin: 0;
  font-size: 13px;
  color: var(--slate);
}
.match-card__predict-cta {
  display: inline-block;
  margin-top: var(--space-xs);
  padding: 8px 12px;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.match-card__predict-cta:hover { filter: brightness(0.97); }

/* Card-as-link wrapper used by Fixtures (#16) — strips link defaults so
   the underlying article styles stay clean while making the entire card
   clickable. */
.match-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.match-card-link:hover .match-card {
  border-color: var(--ink-soft);
}

/* ----- Prediction row --------------------------------------- */

.prediction-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-xs) 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.prediction-row--user {
  font-weight: 600;
  color: var(--ink);
}
.prediction-row__name {
  font-family: var(--font-body);
}
.prediction-row__score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.prediction-row__points {
  font-size: 12px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.prediction-row__payout {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--pitch-deep);
  font-weight: 600;
}
.prediction-row__crown {
  font-size: 16px;
}

.prediction-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prediction-list__hidden-hint {
  font-style: italic;
  color: var(--slate-soft);
}

/* ----- Wider screens ---------------------------------------- */

@media (min-width: 481px) {
  .match-card { padding: var(--space-lg); }
  .match-card__teams { font-size: 22px; }
}
