/* ════════════════════════════════════════════════════════════════════
   worldcup-edition.css — /{lang}/world-cup/{year}/
   Edition hub page (every edition, 1930→current): match list + team flag grid.
   Retro CRT green for match list; gold accents for headers.
   Reuses tokens.css vars + global.css chrome (.top-marquee, .nav-bar,
   .site-wrapper, .section-panel, .gold-border). New classes only,
   prefixed .wc26-. No literal px font-sizes.
   ════════════════════════════════════════════════════════════════════ */

/* ── LOCAL CRT PALETTE (scoped to this page) ── */
.wc26-section,
.wc26-header {
  --wc26-crt:     #00cc44;
  --wc26-crt-dim: #0a7a2e;
  --wc26-screen:  #03150a;
}

/* ── HEADER ── */
.wc26-header { text-align: center; margin-bottom: 1.25rem; }

.wc26-led {
  display: inline-block;
  font-family: var(--font-chrome);
  font-size: var(--fs-xs);
  color: var(--c-navy);
  background: var(--c-yellow);
  padding: 5px 12px;
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
}

.wc26-title {
  font-family: var(--font-chrome);
  font-size: var(--fs-title);
  color: var(--c-yellow);
  text-shadow: 2px 2px 0 var(--c-orange);
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

.wc26-sub {
  font-family: var(--font-vt);
  font-size: var(--fs-lg);
  color: var(--c-gray1);
  line-height: 1.3;
  max-width: 60ch;
  margin: 0 auto 0.75rem;
}

.wc26-statline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.wc26-stat {
  font-family: var(--font-chrome);
  font-size: var(--fs-xs);
  color: var(--c-navy);
  background: var(--c-yellow);
  padding: 3px 8px;
  letter-spacing: 1px;
}

.wc26-stat-sep { color: var(--c-sky); font-size: var(--fs-sm); }

/* ── SECTION PANELS ── */
.wc26-section { margin-bottom: 1.25rem; }

.wc26-section-title {
  font-family: var(--font-chrome);
  font-size: var(--fs-sm);
  color: var(--c-yellow);
  letter-spacing: 1.5px;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--c-sky);
  padding-bottom: 0.5rem;
}

/* ════════════════ MATCH LIST ════════════════ */
.wc26-match-list {
  list-style: none;
  background: var(--wc26-screen, #03150a);
  border: 2px solid var(--wc26-crt-dim, #0a7a2e);
  box-shadow: 3px 3px 0 var(--c-navy);
}

.wc26-match-row { display: block; }
.wc26-match-row + .wc26-match-row {
  border-top: 1px dashed rgba(0, 204, 68, 0.2);
}

.wc26-match-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 9px 10px;
  min-height: 48px;
  text-decoration: none;
  color: var(--c-white);
  transition: background 0.1s;
}

.wc26-match-link:hover,
.wc26-match-link:focus-visible {
  background: rgba(0, 204, 68, 0.1);
  outline: none;
}
.wc26-match-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--wc26-crt, #00cc44);
}

.wc26-match-stage {
  font-family: var(--font-chrome);
  font-size: var(--fs-xs);
  color: var(--wc26-crt, #00cc44);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
}

.wc26-match-teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.wc26-flag { display: inline-flex; align-items: center; flex-shrink: 0; }
.wc26-flag .flag-pixel {
  width: 28px;
  height: 19px;
  border: 1px solid var(--c-gray3);
  image-rendering: pixelated;
}

.wc26-team-name {
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc26-match-link:hover .wc26-team-name { color: var(--c-yellow); }

.wc26-vs {
  font-family: var(--font-chrome);
  font-size: var(--fs-xs);
  color: var(--c-sky);
  flex-shrink: 0;
  letter-spacing: 1px;
}

.wc26-match-date {
  font-family: var(--font-vt);
  font-size: var(--fs-lg);
  color: var(--c-gray2);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

/* ════════════════ TEAM FLAG GRID ════════════════ */
.wc26-flag-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.wc26-flag-item { display: block; }

.wc26-flag-link,
.wc26-flag-inert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  text-decoration: none;
  color: var(--c-white);
  background: rgba(255,255,255,0.03);
  border: 2px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}

.wc26-flag-link:hover,
.wc26-flag-link:focus-visible {
  background: rgba(68,153,221,0.12);
  border-color: var(--c-sky);
  outline: none;
}

.wc26-flag-svg .flag-pixel {
  width: 48px;
  height: 32px;
  border: 2px solid var(--c-gray3);
  box-shadow: 2px 2px 0 var(--c-navy);
  image-rendering: pixelated;
}

.wc26-flag-name {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  color: var(--c-gray1);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.wc26-flag-link:hover .wc26-flag-name { color: var(--c-yellow); }

/* ── RESPONSIVE: tighter on small phones ── */
@media (max-width: 420px) {
  .wc26-match-link {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 10px 8px;
  }
  .wc26-match-date { text-align: left; }
  .wc26-flag-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .wc26-match-link,
  .wc26-flag-link { transition: none; }
}
