@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===================== BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    background: #0a0b14;
    color: #e8eaf0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

main > .container {
    padding: 20px 15px 40px;
    max-width: 960px;
}

/* ===================== NAVBAR ===================== */
.wc-navbar {
    background: linear-gradient(90deg, #0d0e1f 0%, #1a0a2e 50%, #0d0e1f 100%);
    border-bottom: 2px solid #c9a227;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(201,162,39,0.15);
}

.wc-navbar .brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #c9a227;
    text-decoration: none;
    letter-spacing: 1px;
}

.wc-navbar .brand span {
    color: #fff;
}

.wc-navbar .nav-links a {
    color: #aab0c4;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.wc-navbar .nav-links a:hover {
    color: #c9a227;
}

/* ===================== WC BANNER ===================== */
.wc-banner {
    background: linear-gradient(135deg, #1a0a2e 0%, #0d1b3e 40%, #1a0a0e 100%);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wc-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(201,162,39,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.wc-banner .trophy {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px rgba(201,162,39,0.6));
}

.wc-banner h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #c9a227;
    margin: 0 0 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.wc-banner .subtitle {
    color: #8891a8;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.wc-banner .hosts {
    display: inline-flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.wc-banner .host-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.82rem;
    color: #c8cdd8;
}

/* Countdown */
.wc-countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-unit {
    background: rgba(201,162,39,0.1);
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: 10px;
    padding: 10px 18px;
    min-width: 72px;
    text-align: center;
}

.countdown-unit .num {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #c9a227;
    line-height: 1;
    display: block;
}

.countdown-unit .lbl {
    font-size: 0.68rem;
    color: #8891a8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================== DATE NAV ===================== */
.date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.date-nav a {
    color: #c9a227;
    text-decoration: none;
    font-size: 1.6rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 50%;
    transition: all 0.2s;
}

.date-nav a:hover {
    background: rgba(201,162,39,0.15);
    border-color: #c9a227;
}

.date-nav .current-date {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* ===================== MATCH CARD ===================== */
.match-card {
    background: linear-gradient(135deg, #111422 0%, #0f1628 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border-color: rgba(201,162,39,0.2);
}

.match-card-header {
    background: linear-gradient(90deg, rgba(201,162,39,0.08) 0%, rgba(255,255,255,0.03) 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 12px;
    flex-wrap: wrap;
}

.match-teams {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.match-teams .vs {
    color: #c9a227;
    font-size: 1rem;
    font-weight: 400;
    margin: 0 8px;
}

.match-league {
    font-size: 0.78rem;
    color: #8891a8;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.winrate-badge {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.winrate-badge.win {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    color: #4ade80;
}

.winrate-badge.lose {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.35);
    color: #f87171;
}

.match-card-body {
    padding: 16px 20px;
}

/* Injuries */
.injuries-block {
    margin-bottom: 14px;
}

.section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8891a8;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: #c9a227;
}

.injuries-text {
    font-size: 0.84rem;
    color: #aab0c4;
    line-height: 1.6;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 10px 14px;
    border-left: 3px solid rgba(239,68,68,0.4);
}

/* Prediction box */
.prediction-box {
    background: rgba(201,162,39,0.05);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.88rem;
    color: #d4d8e8;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 14px;
}

/* Result row */
.result-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.result-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 500;
}

.result-pill .pill-label {
    color: #8891a8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-pill .pill-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.result-pill.score .pill-value  { color: #4ade80; }
.result-pill.yellow .pill-value { color: #fbbf24; }
.result-pill.red .pill-value    { color: #f87171; }

/* Tip result chips */
.tip-results-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tip-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.tip-chip.tip-win {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.tip-chip.tip-lose {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #f87171;
}

.tip-chip-label {
    opacity: 0.75;
}

.tip-chip-pred {
    opacity: 0.95;
    font-weight: 700;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8891a8;
}

.empty-state .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* ===================== STATS SECTION ===================== */
.stats-section {
    margin-top: 32px;
}

.stats-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #c9a227;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-tile {
    background: linear-gradient(135deg, #111422 0%, #0f1628 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-tile .stat-num {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #c9a227;
    line-height: 1;
}

.stat-tile .stat-lbl {
    font-size: 0.72rem;
    color: #8891a8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.stat-tile.highlight {
    border-color: rgba(201,162,39,0.3);
    background: linear-gradient(135deg, rgba(201,162,39,0.08) 0%, #0f1628 100%);
}

.stat-tile.highlight .stat-num {
    color: #fff;
    font-size: 2.4rem;
}

.chart-card {
    background: linear-gradient(135deg, #111422 0%, #0f1628 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 20px;
}

/* ===================== MISC ===================== */
.form-group { margin-bottom: 1rem; }

.not-set { color: #f87171; font-style: italic; }

@media (max-width: 600px) {
    .wc-banner h1 { font-size: 1.5rem; }
    .match-teams { font-size: 1.05rem; }
    .wc-navbar .brand { font-size: 1.2rem; }
}
