/* FIFA World Cup 2026 — promotional header strip (dark + light) */

.wc2026-banner {
    --wc-accent: #ffb800;
    --wc-accent-soft: rgba(255, 184, 0, 0.22);
    --wc-green: #39dbbf;
    --wc-text: #f4f6ff;
    --wc-muted: #bfc3d4;
    --wc-surface: rgba(21, 24, 37, 0.72);
    --wc-border: rgba(255, 184, 0, 0.28);
    --wc-box-bg: rgba(255, 255, 255, 0.06);
    --wc-box-border: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0;
    background: linear-gradient(135deg, #10131c 0%, #151c2e 50%, #10131c 100%);
    border-bottom: none;
    box-shadow: none;
    flex-shrink: 0;
}

.wc2026-banner.is-hidden {
    display: none !important;
}

/* شريط مستقل بعرض الشاشة — منفصل عن header / big_container */
.wc2026-banner {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    border-bottom: 1px solid rgba(255, 184, 0, 0.22);
}

.wc2026-banner__aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 120% at 8% 50%, rgba(57, 219, 191, 0.14), transparent 60%),
        radial-gradient(ellipse 45% 100% at 92% 40%, rgba(255, 184, 0, 0.16), transparent 55%),
        radial-gradient(ellipse 30% 80% at 50% 120%, rgba(90, 131, 255, 0.1), transparent 50%);
    animation: wc2026Aurora 8s ease-in-out infinite alternate;
}

@keyframes wc2026Aurora {
    0% { opacity: 0.75; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.04); }
}

.wc2026-banner__sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.wc2026-banner__sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--wc-accent);
    opacity: 0;
    animation: wc2026Sparkle 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.55s);
    top: calc(12% + (var(--i) * 9%));
    left: calc(6% + (var(--i) * 11%));
    box-shadow: 0 0 8px var(--wc-accent);
}

@keyframes wc2026Sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.85; transform: scale(1.2); }
}

.wc2026-banner__container {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.wc2026-banner__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 8px 12px;
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.25s ease, transform 0.25s ease;
}

.wc2026-banner__main:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.wc2026-banner__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
}

.wc2026-banner__trophy-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.wc2026-banner__champ-img {
    position: absolute;
    inset: 4px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(255, 184, 0, 0.35));
    animation: wc2026Float 3s ease-in-out infinite;
}

.wc2026-banner__trophy {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    transform: scale(1.15);
    animation: wc2026Float 3s ease-in-out infinite reverse;
}

@keyframes wc2026Float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.wc2026-banner__copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.wc2026-banner__kicker {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wc-accent);
    line-height: 1.2;
}

.wc2026-banner__title {
    font-size: 16px;
    font-weight: 900;
    color: var(--wc-text);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc2026-banner__hosts {
    font-size: 11px;
    font-weight: normal;
    color: var(--wc-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc2026-banner__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.wc2026-banner__status {
    font-size: 10px;
    font-weight: normal;
    color: var(--wc-muted);
    letter-spacing: 0.04em;
}

.wc2026-banner__countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wc2026-banner__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
    padding: 4px 6px 3px;
    border-radius: 10px;
    background: var(--wc-box-bg);
    border: 1px solid var(--wc-box-border);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wc2026-banner__num {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    color: var(--wc-text);
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
}

.wc2026-banner__lbl {
    font-size: 9px;
    font-weight: normal;
    color: var(--wc-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wc2026-banner__sep {
    font-size: 16px;
    font-weight: 900;
    color: var(--wc-accent);
    opacity: 0.65;
    margin-bottom: 10px;
    animation: wc2026Pulse 1s ease-in-out infinite;
}

@keyframes wc2026Pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.wc2026-banner__live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(57, 219, 191, 0.12);
    border: 1px solid rgba(57, 219, 191, 0.35);
    color: var(--wc-green);
    font-size: 13px;
    font-weight: 900;
}

.wc2026-banner__live-pill.is-hidden {
    display: none !important;
}

.wc2026-banner__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wc-green);
    box-shadow: 0 0 0 0 rgba(57, 219, 191, 0.6);
    animation: wc2026LiveDot 1.6s ease infinite;
}

@keyframes wc2026LiveDot {
    0% { box-shadow: 0 0 0 0 rgba(57, 219, 191, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(57, 219, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 219, 191, 0); }
}

.wc2026-banner__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: #0e1019;
    background: linear-gradient(135deg, #ffe566 0%, #ffb800 52%, #e68a00 100%);
    box-shadow: 0 4px 18px rgba(255, 184, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.wc2026-banner__main:hover .wc2026-banner__cta {
    transform: scale(1.03);
    box-shadow: 0 6px 22px rgba(255, 184, 0, 0.45);
}

.wc2026-banner__close {
    flex-shrink: 0;
    align-self: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--wc-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.wc2026-banner__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--wc-text);
}

.wc2026-banner.is-live .wc2026-banner__countdown {
    display: none;
}

.wc2026-banner.is-live .wc2026-banner__status {
    display: none;
}

.wc2026-banner.is-live .wc2026-banner__live-pill {
    display: inline-flex !important;
}

.wc2026-banner.is-live .wc2026-banner__cta span:first-child {
    /* text updated via JS */
}

[dir="rtl"] .wc2026-banner__cta svg {
    transform: scaleX(-1);
}

/* ── Light mode ── */
html.light:not(.dark) .wc2026-banner {
    --wc-text: #0e1019;
    --wc-muted: #5c6470;
    --wc-surface: rgba(255, 255, 255, 0.85);
    --wc-border: rgba(255, 184, 0, 0.35);
    --wc-box-bg: rgba(14, 16, 25, 0.05);
    --wc-box-border: rgba(14, 16, 25, 0.08);
    background: linear-gradient(135deg, #fff9eb 0%, #fff 42%, #f4fbf8 100%);
    border-bottom-color: rgba(255, 184, 0, 0.25);
}

html.light:not(.dark) .wc2026-banner__main:hover {
    background: rgba(14, 16, 25, 0.03);
}

html.light:not(.dark) .wc2026-banner__close {
    background: rgba(14, 16, 25, 0.06);
}

html.light:not(.dark) .wc2026-banner__close:hover {
    background: rgba(14, 16, 25, 0.1);
}

html.light:not(.dark) .wc2026-banner__live-pill {
    background: rgba(42, 157, 130, 0.1);
    border-color: rgba(42, 157, 130, 0.28);
    color: #1a7a68;
}

html.light:not(.dark) .wc2026-banner__live-dot {
    background: #2a9d82;
}

@media (max-width: 991px) {
    .wc2026-banner__container {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .wc2026-banner__main {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 6px 8px;
    }

    .wc2026-banner__brand {
        flex: 1 1 100%;
        justify-content: center;
    }

    .wc2026-banner__copy {
        align-items: center;
        text-align: center;
    }

    .wc2026-banner__center {
        flex: 1 1 100%;
    }

    .wc2026-banner__cta {
        flex: 1 1 100%;
        justify-content: center;
    }

    .wc2026-banner__unit {
        min-width: 36px;
        padding: 3px 4px 2px;
    }

    .wc2026-banner__num {
        font-size: 15px;
    }

    .wc2026-banner__title {
        font-size: 14px;
    }

    .wc2026-banner__close {
        position: absolute;
        top: 6px;
        inset-inline-end: 8px;
    }
}

@media (max-width: 480px) {
    .wc2026-banner__hosts {
        font-size: 10px;
    }

    .wc2026-banner__unit {
        min-width: 32px;
    }

    .wc2026-banner__num {
        font-size: 14px;
    }

    .wc2026-banner__lbl {
        font-size: 8px;
    }

    .wc2026-banner__sep {
        margin-bottom: 8px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc2026-banner__aurora,
    .wc2026-banner__sparkle,
    .wc2026-banner__champ-img,
    .wc2026-banner__trophy,
    .wc2026-banner__sep,
    .wc2026-banner__live-dot {
        animation: none !important;
    }
}
