/* ==========================================================================
   WORLD CUP 2026 — app-specific styles. Layout shell (sidebar, content,
   theme toggle, bottom nav) comes from the shared members-derived style.css;
   this file only adds the match rows, group tables, and section headers.
   ========================================================================== */

.page-header { margin-bottom: 24px; }
.page-header h2 {
    font-size: 28px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.wc-sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.wc-date-chip {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.08em;
}

/* ---------- Calendar strip (schedule) ---------- */

.wc-cal {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 2px 12px;
    margin: -10px 0 20px;
    background: var(--ink);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.wc-cal::-webkit-scrollbar { display: none; }

.wc-cal-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 56px;
    padding: 7px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.wc-cal-chip:hover { border-color: var(--gold-line); color: var(--cream); }
.wc-cal-chip.active {
    border-color: var(--gold);
    color: var(--cream);
    background: var(--gold-soft);
}
.wc-cal-dow {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.wc-cal-day { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wc-cal-chip.active .wc-cal-day { color: var(--gold); }
.wc-cal-chip.is-today .wc-cal-dow { color: var(--gold); }
.wc-cal-all {
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Sections ---------- */

.wc-section { margin-bottom: 32px; }
.wc-section-title {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.wc-section-title.live { color: var(--gold); border-bottom-color: var(--gold-line); }
.wc-empty { color: var(--text-dim); font-size: 13px; padding: 12px 0; }

/* ---------- Match row ---------- */

.wc-match {
    display: grid;
    grid-template-columns: 72px 1fr minmax(140px, 220px);
    gap: 16px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 8px;
}
.wc-match.in { border-color: var(--gold-line); }

.wc-status { text-align: center; }
.wc-time { font-size: 13px; color: var(--cream); font-weight: 500; white-space: nowrap; }
.wc-ft {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}
.wc-live-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 6px;
    animation: wc-pulse 1.4s ease-in-out infinite;
}
@keyframes wc-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.wc-live-text { font-size: 13px; font-weight: 600; color: var(--gold); white-space: nowrap; }

.wc-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wc-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wc-team img {
    width: 22px; height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}
.wc-team-name {
    font-size: 14px;
    color: var(--cream);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wc-team.winner .wc-team-name { font-weight: 600; }
.wc-score {
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
    color: var(--cream);
    font-variant-numeric: tabular-nums;
}
.wc-team.winner .wc-score { color: var(--gold); }
.wc-score small { font-weight: 400; color: var(--text-muted); font-size: 11px; }

.wc-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
    min-width: 0;
}
.wc-round {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 10px;
}
.wc-venue, .wc-tv { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
    .wc-match { grid-template-columns: 56px 1fr; }
    .wc-meta { grid-column: 1 / -1; flex-direction: row; gap: 10px; text-align: left; }
    .wc-venue { flex-shrink: 1; }
}

/* ---------- Group tables ---------- */

.wc-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
}
.wc-group-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}
.wc-group-title {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--gold);
}
.wc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wc-table th {
    font-family: 'Archivo', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-align: center;
    padding: 4px 4px;
    border-bottom: 1px solid var(--card-border);
}
.wc-table th.team { text-align: left; }
.wc-table td {
    padding: 7px 4px;
    text-align: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft);
    font-variant-numeric: tabular-nums;
}
.wc-table tr:last-child td { border-bottom: none; }
.wc-table td.team {
    text-align: left;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wc-table td.team img { width: 18px; height: 18px; object-fit: contain; border-radius: 2px; }
.wc-table td.pts { font-weight: 600; color: var(--cream); }
.wc-table td.pos { color: var(--text-dim); font-size: 11px; }
.wc-table tr.advancing td.pos { color: var(--gold); font-weight: 600; }

/* Light mode tweaks come free via the shared variable inversion. */
