/* ══════════════════════════════════════════════════
   WC2026 Streams PRO — Frontend CSS (Light/White Mode)
   ══════════════════════════════════════════════════ */

/* ─ Fonts ─ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

/* ─ Reset ─ */
#wc2026-app * { box-sizing: border-box; margin: 0; padding: 0; }

/* ─ Root ─ */
#wc2026-app {
    --white:      #ffffff;
    --bg:         #f4f6fa;
    --surface:    #ffffff;
    --border:     #e2e8f0;
    --border-2:   #cbd5e1;
    --text:       #0f172a;
    --text-2:     #475569;
    --text-3:     #94a3b8;
    --red:        #ef4444;
    --red-light:  #fef2f2;
    --red-dark:   #dc2626;
    --green:      #16a34a;
    --green-light:#f0fdf4;
    --blue:       #2563eb;
    --blue-light: #eff6ff;
    --gold:       #d97706;
    --gold-light: #fffbeb;
    --purple:     #7c3aed;
    --gray-50:    #f8fafc;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.1);
    --radius:     12px;
    --radius-sm:  8px;
    --radius-xs:  5px;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: hidden;
    font-size: 14px;
}

/* ══════ HEADER ══════ */
.wc-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    gap: 16px;
    flex-wrap: wrap;
}

.wc-logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wc-trophy-icon {
    font-size: 38px;
    filter: drop-shadow(0 2px 6px rgba(217,119,6,0.4));
    animation: trophy-pulse 2s ease-in-out infinite alternate;
}
@keyframes trophy-pulse {
    from { filter: drop-shadow(0 2px 4px rgba(217,119,6,0.3)); }
    to   { filter: drop-shadow(0 2px 14px rgba(217,119,6,0.7)); }
}

.wc-title {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--text);
    line-height: 1;
}

.wc-subtitle {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* ─ Countdown ─ */
.wc-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wc-cd-box {
    text-align: center;
    background: var(--gold-light);
    border: 1px solid #fde68a;
    border-radius: var(--radius-xs);
    padding: 6px 10px;
    min-width: 46px;
}

.wc-cd-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--gold);
    line-height: 1;
}

.wc-cd-lbl {
    font-size: 9px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.wc-cd-sep {
    font-size: 18px;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}

.wc-tournament-live {
    background: var(--red);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    animation: live-pulse 1s ease-in-out infinite alternate;
}

/* ─ Ticker ─ */
.wc-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.wc-ticker-label {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.wc-ticker-inner { overflow: hidden; flex: 1; }

.wc-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker 35s linear infinite;
}

.wc-ticker-item {
    font-size: 11.5px;
    color: var(--text-2);
    padding-right: 0;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─ Nav ─ */
.wc-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 20px;
    border-top: 1px solid var(--border);
}
.wc-nav::-webkit-scrollbar { display: none; }

.wc-nav-btn {
    padding: 11px 18px;
    border: none;
    background: transparent;
    color: var(--text-3);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    letter-spacing: 0.3px;
}

.wc-nav-btn:hover { color: var(--text); }

.wc-nav-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* ══════ BODY ══════ */
.wc-body { padding: 16px 16px 32px; }

.wc-tab { display: none; }
.wc-tab.active { display: block; }

/* ─ Filter chips ─ */
.wc-filter-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.wc-chip {
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--border-2);
    background: var(--white);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.wc-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.wc-chip.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* ─ Date separator ─ */
.wc-date-sep {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-3);
    padding: 18px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wc-date-sep:first-child { border-top: none; padding-top: 0; }

.wc-today-pill {
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 1px;
}

/* ══════ MATCH CARD ══════ */
.wc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    border-left: 4px solid var(--gc, #2563eb);
}

.wc-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Live card */
.wc-card-live {
    border-left-color: var(--red) !important;
    background: linear-gradient(to right, var(--red-light) 0%, var(--white) 60%);
    animation: live-card-glow 2s ease-in-out infinite alternate;
}

@keyframes live-card-glow {
    from { box-shadow: 0 0 0 rgba(239,68,68,0); }
    to   { box-shadow: 0 0 12px rgba(239,68,68,0.15); }
}

/* Final card */
.wc-card-final {
    border-left-color: var(--gold) !important;
    background: linear-gradient(to right, var(--gold-light) 0%, var(--white) 60%);
}

/* Finished card */
.wc-card-finished { opacity: 0.82; }

/* ─ LIVE BANNER (hero stream button at top of card) ─ */
.wc-live-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--red);
    color: #fff !important;
    text-decoration: none !important;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    animation: live-banner-pulse 1.4s ease-in-out infinite alternate;
    transition: background 0.2s;
}
.wc-live-banner:hover { background: var(--red-dark); text-decoration: none; }
.wc-live-banner-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
    display: inline-block; margin-right: 8px;
    animation: dot-blink 0.8s ease-in-out infinite alternate;
}
.wc-live-banner-arrow {
    font-size: 16px;
    margin-left: auto;
    padding-left: 12px;
}
@keyframes live-banner-pulse {
    from { background: #ef4444; }
    to   { background: #dc2626; }
}
@keyframes dot-blink {
    from { opacity: 1; }
    to   { opacity: 0.3; }
}

/* ─ Card layout ─ */
.wc-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
}

.wc-card-left { flex: 1; min-width: 220px; }

.wc-stage-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ─ Teams ─ */
.wc-teams { }

.wc-team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.wc-team-away { flex-direction: row; }

.wc-flag { font-size: 22px; line-height: 1; }

.wc-team-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* ─ Score box ─ */
.wc-score-box {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 5px 12px;
    min-width: 70px;
    justify-content: center;
}

.wc-score-box.wc-score-live {
    background: var(--red);
    border-color: var(--red);
    animation: score-live 1.2s ease-in-out infinite alternate;
}
@keyframes score-live {
    from { box-shadow: 0 0 0 rgba(239,68,68,0); }
    to   { box-shadow: 0 0 8px rgba(239,68,68,0.4); }
}

.wc-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--text);
    line-height: 1;
}
.wc-score-box.wc-score-live .wc-score { color: #fff; }

.wc-score-sep {
    font-size: 18px;
    color: var(--text-3);
    font-weight: 300;
}
.wc-score-box.wc-score-live .wc-score-sep { color: rgba(255,255,255,0.6); }

/* ─ VS box ─ */
.wc-vs-box {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 5px 14px;
}
.wc-vs {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    letter-spacing: 1px;
}

/* ─ Venue ─ */
.wc-venue {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

/* ─ Card right ─ */
.wc-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* ─ Time ─ */
.wc-time-block { text-align: right; }
.wc-time { font-size: 18px; font-weight: 700; color: var(--text); font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.wc-time-label { font-size: 10px; color: var(--text-3); }

/* ══════ BADGES ══════ */
.wc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wc-badge-live     { background: var(--red); color: #fff; animation: live-pulse 1s ease-in-out infinite alternate; }
.wc-badge-ht       { background: #f59e0b; color: #fff; }
.wc-badge-ft       { background: var(--border); color: var(--text-2); }
.wc-badge-cancelled{ background: var(--border); color: var(--text-3); }
.wc-badge-upcoming { background: var(--blue-light); color: var(--blue); border: 1px solid #bfdbfe; }

@keyframes live-pulse {
    from { opacity: 1; box-shadow: 0 0 0 rgba(239,68,68,0); }
    to   { opacity: 0.9; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
}

.wc-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #fff;
    display: inline-block;
    animation: dot-blink 0.8s ease-in-out infinite alternate;
}

/* ══════ STREAM BUTTONS ══════ */
.wc-stream-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

/* Primary Watch Button */
.wc-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--blue);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.wc-watch-btn:hover {
    background: #1d4ed8;
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
    text-decoration: none;
    color: #fff !important;
}

/* LIVE watch button — red + pulsing */
.wc-watch-btn.wc-watch-btn-live {
    background: var(--red);
    box-shadow: 0 2px 10px rgba(239,68,68,0.35);
    animation: watch-btn-live 1.4s ease-in-out infinite alternate;
}
.wc-watch-btn.wc-watch-btn-live:hover {
    background: var(--red-dark);
    box-shadow: 0 4px 18px rgba(239,68,68,0.5);
}

@keyframes watch-btn-live {
    from { box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
    to   { box-shadow: 0 4px 18px rgba(239,68,68,0.55); }
}

.wc-watch-icon {
    font-size: 14px;
    line-height: 1;
}

/* Backup server buttons */
.wc-server-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--gray-50);
    border: 1px solid var(--border-2);
    color: var(--text-2) !important;
    text-decoration: none !important;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.15s;
    white-space: nowrap;
}
.wc-server-btn:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue) !important;
}

/* No stream */
.wc-no-stream {
    font-size: 11px;
    color: var(--text-3);
    padding: 4px 8px;
    background: var(--gray-50);
    border-radius: var(--radius-xs);
    border: 1px dashed var(--border-2);
}

/* ══════ GROUPS ══════ */
.wc-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.wc-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.wc-group-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.wc-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #fff;
}

.wc-group-letter { font-weight: 800; font-size: 15px; letter-spacing: 0.5px; }
.wc-group-flags  { font-size: 18px; }

.wc-group-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wc-group-table th {
    padding: 6px 8px;
    color: var(--text-3);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--gray-50);
}
.wc-group-table th:first-child, .wc-group-table th:nth-child(2) { text-align: left; }

.wc-group-table td {
    padding: 8px 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--text-2);
}
.wc-group-table td:nth-child(2) { text-align: left; font-weight: 600; color: var(--text); }
.wc-group-table tr:last-child td { border-bottom: none; }

.wc-pos-cell { color: var(--text-3); font-size: 11px; width: 20px; }
.wc-team-cell { }
.wc-pts-col { font-weight: 800; color: var(--text); }
.wc-qualify-row td { background: rgba(22,163,74,0.04); }
.wc-qualify-row .wc-pts-col { color: var(--green); }

/* ══════ KNOCKOUT ══════ */
.wc-knockout-section { margin-bottom: 24px; }

.wc-knockout-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-2);
    margin-bottom: 10px;
}

/* ══════ NEWS ══════ */
.wc-live-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.wc-live-header h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.wc-live-header p { font-size: 12px; color: var(--text-3); }

.wc-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.wc-news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}
.wc-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }

.wc-news-img {
    height: 150px;
    background: var(--border) center/cover no-repeat;
}
.wc-news-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: var(--gray-50);
}

.wc-news-body { padding: 12px 14px; }
.wc-news-source { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.wc-news-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.wc-news-excerpt { font-size: 12px; color: var(--text-2); line-height: 1.5; margin-bottom: 6px; }
.wc-news-time { font-size: 10px; color: var(--text-3); }

/* ══════ EMPTY STATE ══════ */
.wc-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}
.wc-empty-icon  { font-size: 52px; margin-bottom: 12px; }
.wc-empty-title { font-size: 18px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.wc-empty-sub   { font-size: 13px; }

/* ══════ RESPONSIVE ══════ */
@media (max-width: 640px) {
    .wc-header-inner { padding: 12px 14px 10px; }
    .wc-title { font-size: 20px; }
    .wc-countdown { gap: 4px; }
    .wc-cd-box { min-width: 38px; padding: 5px 7px; }
    .wc-cd-num { font-size: 18px; }
    .wc-nav-btn { padding: 9px 12px; font-size: 12px; }
    .wc-card-body { gap: 8px; padding: 12px; }
    .wc-team-name { font-size: 13px; }
    .wc-score { font-size: 22px; }
    .wc-watch-btn { padding: 8px 14px; font-size: 12px; }
    .wc-groups-grid { grid-template-columns: 1fr; }
    .wc-news-grid { grid-template-columns: 1fr; }
    .wc-filter-row { gap: 4px; }
    .wc-chip { font-size: 11px; padding: 4px 10px; }
    .wc-ticker { padding: 6px 14px; }
}
