/* ── WK Loting – custom styles ─────────────────────────────── */

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .5rem 1.25rem;
    background: #FF6600;
    color: #fff;
    font-weight: 700;
    border-radius: .5rem;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, #0F1A2E 0%, #1B2A4A 55%, #23366b 100%);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 80% 50%, rgba(255,102,0,.13) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255,102,0,.07) 0%, transparent 60%);
    pointer-events: none;
}
.hero-ball {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, rgba(255,102,0,.18), rgba(255,102,0,.04) 60%, transparent 80%);
    border: 1px solid rgba(255,102,0,.12);
    pointer-events: none;
}
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* ── Stats strip ───────────────────────────────────────────── */
.stat-strip {
    background: #FF6600;
    background: linear-gradient(90deg, #E85D00 0%, #FF6600 50%, #FF8533 100%);
}

/* ── Featured Poule ────────────────────────────────────────── */
.featured-card {
    background: linear-gradient(145deg, #1B2A4A 0%, #0F1A2E 100%);
    border: 1px solid rgba(255,102,0,.25);
    position: relative;
    overflow: hidden;
}
.featured-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6600, #FF8533, #FF6600);
}
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    background: rgba(255,102,0,.18);
    border: 1px solid rgba(255,102,0,.35);
    color: #FF8533;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .75rem;
    border-radius: 9999px;
}
.country-pill {
    transition: background .15s, transform .15s;
}
.country-pill:hover {
    background: rgba(255,255,255,.18) !important;
    transform: translateY(-2px);
}
.match-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .875rem;
    transition: background .15s, border-color .15s;
}
.match-card:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,102,0,.4);
}
.match-date-badge {
    background: rgba(255,102,0,.15);
    border: 1px solid rgba(255,102,0,.25);
    color: #FF8533;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .15rem .6rem;
    border-radius: 9999px;
    white-space: nowrap;
}

/* ── Poule cards ───────────────────────────────────────────── */
.poule-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.poule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -8px rgba(27,42,74,.18);
    border-color: #FF6600;
}
.poule-card-header {
    background: #1B2A4A;
    color: #fff;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.poule-card--featured .poule-card-header {
    background: linear-gradient(90deg, #E85D00, #FF6600);
}
.poule-card--featured {
    border-color: #FF6600;
    box-shadow: 0 4px 20px rgba(255,102,0,.18);
}
.country-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 0;
    font-size: .875rem;
    color: #1B2A4A;
    border-bottom: 1px solid #f1f5f9;
}
.country-row:last-child {
    border-bottom: none;
}
.country-flag {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Match rows (schedule) ─────────────────────────────────── */
.match-row { transition: background .1s; }
.match-row:hover { background: #f8fafc; }

/* ── SEO prose ─────────────────────────────────────────────── */
.prose-wk h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B2A4A;
    margin-top: 2.5rem;
    margin-bottom: .875rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #FF6600;
    display: inline-block;
}
.prose-wk h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B2A4A;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}
.prose-wk p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #475569;
}
.prose-wk ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #475569;
}
.prose-wk li { margin-bottom: .35rem; }
.prose-wk a { color: #FF6600; text-decoration: underline; }

/* ── Bracket ───────────────────────────────────────────────── */
.bracket-line { border-left: 3px solid #FF6600; }

@media (max-width: 640px) {
    .bracket-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hero-ball { display: none; }
}

/* ── Countdown ─────────────────────────────────────────────── */
.countdown-unit {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .875rem;
    padding: .6rem 1rem;
    min-width: 4rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.countdown-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}
.countdown-lbl {
    display: block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .25rem;
}

/* ── Knockout match card ───────────────────────────────────── */
.ko-match-card {
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ko-match-card:hover {
    transform: translateY(-2px);
}
.ko-tab {
    white-space: nowrap;
    cursor: pointer;
}
.ko-tab[disabled] { cursor: not-allowed; }

/* ── Mobile nav ────────────────────────────────────────────── */
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }
