/* ══════════════════════════════════════════════
   FIFA World Cup 2026 Stats — Stylesheet v2.1
   ══════════════════════════════════════════════ */

.wc2026-groups *,
.wc2026-fixtures *,
.wc2026-live-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ══════════════════════════════════════════════
   GROUPS — 2-column grid
   ══════════════════════════════════════════════ */

.wc2026-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    font-family: inherit;
    padding: 8px 0;
}

.wc2026-group-block {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    overflow: hidden;
}

.wc2026-group-title {
    background: linear-gradient(135deg, #1a3a1a, #0d2a0d);
    color: #4caf50;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 14px;
    border-bottom: 1px solid #21262d;
}

.wc2026-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #c9d1d9;
}

.wc2026-table thead tr {
    background: #161b22;
}

.wc2026-table th {
    padding: 7px 5px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #21262d;
}

.wc2026-table th.wc2026-th-team {
    text-align: left;
    padding-left: 10px;
}

.wc2026-table tbody tr {
    border-bottom: 1px solid #161b22;
    transition: background 0.15s;
}

.wc2026-table tbody tr:last-child {
    border-bottom: none;
}

.wc2026-table tbody tr:hover {
    background: #1c2128;
}

.wc2026-table tbody tr.wc2026-qualify {
    background: rgba(76, 175, 80, 0.06);
}

.wc2026-table tbody tr.wc2026-qualify:hover {
    background: rgba(76, 175, 80, 0.12);
}

.wc2026-table td {
    padding: 8px 5px;
    text-align: center;
}

.wc2026-table td.wc2026-td-team {
    text-align: left;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 110px;
}

.wc2026-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.wc2026-qualify-note {
    font-size: 10px;
    color: #8b949e;
    padding: 5px 10px 8px;
    border-top: 1px solid #21262d;
}

/* ══════════════════════════════════════════════
   FIXTURES — 2-column grid per date group
   ══════════════════════════════════════════════ */

.wc2026-fixtures {
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wc2026-date-group {
    margin-bottom: 28px;
}

.wc2026-date-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b949e;
    padding: 6px 0 10px;
    border-bottom: 2px solid #21262d;
    margin-bottom: 10px;
    /* span full width above both columns */
    grid-column: 1 / -1;
}

/* The inner match list within each date group = 2 columns */
.wc2026-date-matches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.wc2026-match {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wc2026-match:hover {
    border-color: #30363d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.wc2026-match-live {
    border-color: #d73a49 !important;
    box-shadow: 0 0 0 1px rgba(215,58,73,0.3), 0 2px 12px rgba(215,58,73,0.15) !important;
}

.wc2026-match-round {
    font-size: 10px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.wc2026-match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wc2026-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.wc2026-team.wc2026-away {
    flex-direction: row-reverse;
    text-align: right;
}

.wc2026-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.wc2026-team-name {
    font-size: 13px;
    font-weight: 600;
    color: #e6edf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc2026-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 68px;
}

.wc2026-score {
    font-size: 20px;
    font-weight: 800;
    color: #e6edf3;
    letter-spacing: 1px;
}

.wc2026-status {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.wc2026-status-live {
    background: #d73a49;
    color: #fff;
    animation: wc2026-pulse 1.5s infinite;
}

.wc2026-status-finished {
    background: #21262d;
    color: #8b949e;
}

.wc2026-status-upcoming {
    background: #1f3a1f;
    color: #4caf50;
}

@keyframes wc2026-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

.wc2026-venue {
    font-size: 10px;
    color: #8b949e;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #161b22;
}

/* ══════════════════════════════════════════════
   LIVE WIDGET
   ══════════════════════════════════════════════ */

.wc2026-live-wrapper {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 14px;
    padding: 20px;
    overflow: hidden;
    /*width: 60%;*/
    /*margin: 0 auto;*/
}

.wc2026-live-heading {
    font-size: 16px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #21262d;
}

/* Live widget matches also 2-col */
.wc2026-live-wrapper .wc2026-fixtures .wc2026-date-matches {
    grid-template-columns: repeat(2, 1fr);
}

.wc2026-no-live {
    text-align: center;
    padding: 32px;
    color: #8b949e;
    font-size: 14px;
    background: #0d1117;
    border: 1px dashed #21262d;
    border-radius: 12px;
}

/* ══════════════════════════════════════════════
   ERROR STATE
   ══════════════════════════════════════════════ */

.wc2026-error {
    padding: 16px 20px;
    background: #1a1a2e;
    border: 1px solid #d73a49;
    border-radius: 8px;
    color: #d73a49;
    font-size: 14px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — single column on mobile
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .wc2026-groups {
        grid-template-columns: 1fr;
    }
    .wc2026-date-matches {
        grid-template-columns: 1fr;
    }
    .wc2026-live-wrapper .wc2026-fixtures .wc2026-date-matches {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wc2026-team-name { font-size: 11px; }
    .wc2026-team-logo { width: 22px; height: 22px; }
    .wc2026-score     { font-size: 16px; }
    .wc2026-score-center { min-width: 54px; }
    .wc2026-table td.wc2026-td-team { min-width: 90px; }
}
