/* =========================================================
   FIFA World Cup 2026 — WordPress Plugin Stylesheet
   ========================================================= */

/* ── Reset / Base ──────────────────────────────────────── */
.wc2026-hub *,
.wc2026-hub *::before,
.wc2026-hub *::after {
    box-sizing: border-box;
}

.wc2026-hub {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

/* ── Header ────────────────────────────────────────────── */
.wc2026-header {
    background: linear-gradient(135deg, #003087 0%, #0050a0 50%, #c8102e 100%);
    color: #fff;
    padding: 20px 24px;
}

.wc2026-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wc2026-trophy {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.wc2026-title {
    margin: 0 0 2px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.3px;
}

.wc2026-subtitle {
    margin: 0;
    font-size: .85rem;
    opacity: .85;
}

.wc2026-refresh-btn {
    margin-left: auto;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s, transform .4s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc2026-refresh-btn:hover {
    background: rgba(255,255,255,.3);
}

.wc2026-refresh-btn.spinning {
    animation: wc2026-spin .7s linear infinite;
}

@keyframes wc2026-spin {
    to { transform: rotate(360deg); }
}

/* ── Tabs ──────────────────────────────────────────────── */
.wc2026-tabs {
    display: flex;
    background: #f7f8fc;
    border-bottom: 2px solid #e0e4f0;
    overflow-x: auto;
    scrollbar-width: none;
}

.wc2026-tabs::-webkit-scrollbar { display: none; }

.wc2026-tab {
    padding: 12px 18px;
    font-size: .875rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.wc2026-tab:hover {
    color: #003087;
}

.wc2026-tab.active {
    color: #003087;
    border-bottom-color: #003087;
}

/* ── Panels ────────────────────────────────────────────── */
.wc2026-panels {
    background: #fff;
    padding: 20px;
    min-height: 220px;
}

.wc2026-panel {
    display: none;
}

.wc2026-panel.active {
    display: block;
}

/* ── Footer ────────────────────────────────────────────── */
.wc2026-footer {
    background: #f7f8fc;
    border-top: 1px solid #e0e4f0;
    text-align: center;
    font-size: .78rem;
    color: #777;
    padding: 10px 16px;
    margin: 0;
}

.wc2026-footer a {
    color: #003087;
    text-decoration: none;
}

/* ── Notices ───────────────────────────────────────────── */
.wc2026-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    color: #856404;
    font-size: .9rem;
}

.wc2026-notice a {
    color: #003087;
    font-weight: 600;
}

.wc2026-error {
    color: #c8102e;
    font-style: italic;
}

.wc2026-loading {
    text-align: center;
    padding: 32px;
    color: #888;
    font-size: .9rem;
}

/* ── Live badge ────────────────────────────────────────── */
.wc2026-live-badge {
    background: #c8102e;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 0 0 14px;
    animation: wc2026-pulse 1.6s ease-in-out infinite;
}

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

.wc2026-no-live {
    color: #777;
    font-style: italic;
    margin: 0 0 12px;
}

/* ── Match card grid ───────────────────────────────────── */
.wc2026-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.wc2026-match-card {
    border: 1px solid #e0e4f0;
    border-radius: 10px;
    padding: 14px;
    position: relative;
    transition: box-shadow .2s;
}

.wc2026-match-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,80,.1);
}

.wc2026-match-card.wc2026-status-live {
    border-color: #c8102e;
    background: #fff8f8;
}

.wc2026-match-card.wc2026-status-finished {
    opacity: .8;
}

.wc2026-live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #c8102e;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    animation: wc2026-pulse 1.2s ease-in-out infinite;
}

.wc2026-match-meta {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: #888;
    margin-bottom: 10px;
}

.wc2026-match-teams {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc2026-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

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

.wc2026-flag {
    font-size: 1.4rem;
    line-height: 1;
}

.wc2026-team-name {
    font-size: .82rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.2;
}

.wc2026-score-box {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background: #f0f4ff;
    border-radius: 8px;
    padding: 6px 12px;
}

.wc2026-status-live .wc2026-score-box {
    background: #ffe0e0;
}

.wc2026-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    min-width: 20px;
    text-align: center;
}

.wc2026-score-sep {
    color: #999;
    font-size: .9rem;
}

.wc2026-elapsed {
    text-align: center;
    font-size: .75rem;
    color: #c8102e;
    font-weight: 700;
    margin-top: 8px;
}

/* ── Fixtures ──────────────────────────────────────────── */
.wc2026-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: center;
}

.wc2026-search {
    padding: 8px 12px;
    border: 1px solid #d0d5e8;
    border-radius: 6px;
    font-size: .875rem;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    outline: none;
    transition: border-color .2s;
}

.wc2026-search:focus {
    border-color: #003087;
}

.wc2026-filter-select {
    padding: 8px 10px;
    border: 1px solid #d0d5e8;
    border-radius: 6px;
    font-size: .875rem;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.wc2026-fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wc2026-fixture-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eef0f8;
    border-radius: 8px;
    font-size: .85rem;
    transition: background .15s;
}

.wc2026-fixture-row:hover {
    background: #f7f8fc;
}

.wc2026-fixture-row.wc2026-status-live {
    border-color: #c8102e;
    background: #fff8f8;
}

.wc2026-fixture-row.wc2026-status-finished {
    opacity: .75;
}

.wc2026-fixture-date {
    min-width: 130px;
    font-size: .78rem;
    color: #777;
    flex-shrink: 0;
}

.wc2026-fixture-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    justify-content: center;
}

.wc2026-fixture-score {
    font-weight: 700;
    font-size: .95rem;
    min-width: 55px;
    text-align: center;
    background: #f0f4ff;
    border-radius: 6px;
    padding: 3px 8px;
    flex-shrink: 0;
}

.wc2026-status-live .wc2026-fixture-score {
    background: #ffe0e0;
    color: #c8102e;
}

.wc2026-fixture-group {
    font-size: .73rem;
    color: #999;
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Standings ─────────────────────────────────────────── */
.wc2026-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wc2026-group-table {
    border: 1px solid #e0e4f0;
    border-radius: 8px;
    overflow: hidden;
}

.wc2026-group-title {
    background: #003087;
    color: #fff;
    margin: 0;
    padding: 8px 14px;
    font-size: .9rem;
    letter-spacing: .3px;
}

.wc2026-group-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
}

.wc2026-group-table thead {
    background: #f0f4ff;
}

.wc2026-group-table th {
    padding: 6px 8px;
    text-align: center;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #e0e4f0;
}

.wc2026-th-team {
    text-align: left !important;
}

.wc2026-group-table td {
    padding: 7px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f8;
}

.wc2026-td-team {
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

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

.wc2026-group-table tbody tr:hover {
    background: #f7f8fc;
}

.wc2026-qualified {
    background: rgba(0, 160, 80, .06);
}

.wc2026-qualified-note {
    font-size: .72rem;
    color: #2a7a40;
    padding: 5px 10px;
    margin: 0;
    background: rgba(0,160,80,.05);
    border-top: 1px solid #d8eee1;
}

.wc2026-flag-sm {
    font-size: 1rem;
}

/* ── Teams grid ────────────────────────────────────────── */
.wc2026-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.wc2026-team-card {
    border: 1px solid #e0e4f0;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    transition: box-shadow .2s, transform .15s;
    cursor: default;
}

.wc2026-team-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,80,.1);
    transform: translateY(-2px);
}

.wc2026-team-flag-lg {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 8px;
}

.wc2026-team-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .8rem;
}

.wc2026-team-info strong {
    font-size: .85rem;
    color: #1a1a2e;
}

.wc2026-team-code {
    color: #888;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.wc2026-team-group {
    color: #003087;
    font-size: .73rem;
    font-weight: 600;
}

/* ── Stadiums ──────────────────────────────────────────── */
.wc2026-country-section {
    margin-bottom: 24px;
}

.wc2026-country-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0e4f0;
}

.wc2026-country-title span {
    font-weight: 400;
    color: #888;
    font-size: .85rem;
}

.wc2026-stadium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.wc2026-stadium-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e0e4f0;
    border-radius: 8px;
    padding: 12px;
    transition: box-shadow .2s;
}

.wc2026-stadium-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,80,.08);
}

.wc2026-stadium-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.wc2026-stadium-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .8rem;
    color: #555;
}

.wc2026-stadium-info strong {
    font-size: .875rem;
    color: #1a1a2e;
}

.wc2026-stadium-fifa {
    font-size: .75rem;
    color: #999;
    font-style: italic;
}

.wc2026-stadium-city,
.wc2026-stadium-cap {
    font-size: .78rem;
}

/* ── Scores wrap ───────────────────────────────────────── */
.wc2026-scores-wrap { /* intentionally minimal */ }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
    .wc2026-panels {
        padding: 14px;
    }

    .wc2026-tab {
        padding: 10px 12px;
        font-size: .8rem;
    }

    .wc2026-score-grid {
        grid-template-columns: 1fr;
    }

    .wc2026-fixture-date {
        display: none;
    }

    .wc2026-groups-grid {
        grid-template-columns: 1fr;
    }

    .wc2026-teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .wc2026-header-inner {
        gap: 10px;
    }

    .wc2026-title {
        font-size: 1.1rem;
    }
}
