/* ============================================================
   WORLD CUP — KNOCKOUT COMPONENT
   Depends on: worldcup-common, worldcup-schedule
   (card/team/goal styles come from worldcup-schedule.css)
   ============================================================ */

/* ── Knockout score — slightly larger than group stage ── */

.wc-card__score--ko {
    font-size: 22px;
}

/* ── Date shown above time for unplayed knockout matches ── */

.wc-ko-date {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wc-muted);
    margin-bottom: 2px;
}

/* ── AET / PSO badges ── */

.wc-ko-extra {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.wc-ko-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 9999px;
}

.wc-ko-badge--et {
    color: var(--wc-teal-2);
    background-color: rgba(39, 208, 215, 0.1);
    border: 1px solid rgba(39, 208, 215, 0.2);
}

.wc-ko-badge--pen {
    color: var(--global-color-11, #eae712);
    background-color: rgba(234, 231, 18, 0.08);
    border: 1px solid rgba(234, 231, 18, 0.2);
}

/* ── details/summary toggle (no JS needed) ── */

.wc-ko-details {
    margin-top: 0;
}

.wc-ko-details > summary {
    list-style: none;
}
.wc-ko-details > summary::-webkit-details-marker {
    display: none;
}

.wc-ko-details[open] .wc-card__chevron {
    transform: rotate(180deg);
}

/* ── Profită acum (link afiliat per meci) ── */

.wc-odds-profita-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 16px;
    position: relative;
    z-index: 0;
    background: var(--wc-cta-gradient);
    color: var(--wc-cta-color) !important;
    font-family: var(--wc-font);
    font-weight: 700;
    font-size: 13px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: color 0.25s ease;
}
.wc-odds-profita-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    z-index: -1;
    border-radius: inherit;
    transition: opacity 0.25s ease;
}
.wc-odds-profita-btn:hover::before {
    opacity: 1;
}
.wc-odds-profita-btn:hover {
    color: var(--wc-cta-hover-color) !important;
    text-decoration: none !important;
}

/* ── Subtitlu de grup (finala mică vs finala mare, cand un tab combină 2 rounduri) ── */

.wc-round-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wc-muted);
    text-align: center;
    margin: 0 0 12px;
}

.wc-round-heading:not(:first-child) {
    margin-top: 32px;
}

/* ── Tab-group (afisare_in_slide) ── */

.wc-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.wc-tabs__btn {
    font-family: var(--wc-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--wc-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 8px 18px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.wc-tabs__btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.wc-tabs__btn.is-active {
    color: #06000f;
    background: var(--wc-cta-gradient);
    border-color: transparent;
}

.wc-tabs__panel {
    display: none;
}

.wc-tabs__panel.is-active {
    display: block;
}

/* ── Responsive ── */

@media (max-width: 480px) {
    .wc-card__score--ko {
        font-size: 18px;
    }

    .wc-tabs__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .wc-tabs__btn {
        flex-shrink: 0;
    }
}
