/* Turnaje – fixed hero backdrop + coming-soon panel */

body:has(.turnaje-soon) {
    background-color: #151515;
}

body:has(.turnaje-soon) .navbar.fixed-top {
    background-color: rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

/* Full-bleed mimo .container bez 100vw (100vw + html overflow-x:clip rozbíjí position:fixed) */
body:has(.turnaje-soon) #main-wrapper > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body:has(.turnaje-soon) #main {
    position: relative;
    z-index: 1;
}

.turnaje-soon {
    --turnaje-surface: linear-gradient(
        150deg,
        rgba(24, 24, 25, 0.72),
        rgba(18, 18, 19, 0.78)
    );
    --turnaje-border: var(--np-table-border, rgba(255, 255, 255, 0.08));
    --turnaje-muted: var(--np-table-muted, #8d9295);
    position: relative;
    margin: 0 0 3rem;
    padding: 0;
}

/* Backdrop — pohár vpravo v hero zóně */
body:has(.turnaje-soon)::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: -1;
    background-color: #151515;
    background-image:
        linear-gradient(
            180deg,
            rgba(21, 21, 21, 0.22) 0%,
            rgba(21, 21, 21, 0.34) 50%,
            rgba(21, 21, 21, 0.5) 100%
        ),
        var(--hero-bg, url("/images/turnaje/hero-bg.jpg?v=4"));
    background-repeat: no-repeat;
    background-position: center top, 78% 32%;
    background-size: 100% 100%, cover;
    pointer-events: none;
}

.turnaje-soon__backdrop {
    display: none;
}

.turnaje-hero {
    --turnaje-nav-overlap: 120px;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: calc(-1 * var(--turnaje-nav-overlap)) 0 -1.25rem;
    overflow: hidden;
    background: transparent;
    min-height: calc(var(--turnaje-nav-overlap) + 16.5rem);
    pointer-events: none;
}

.turnaje-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        100deg,
        rgba(21, 21, 21, 0.7) 0%,
        rgba(21, 21, 21, 0.32) 26%,
        rgba(21, 21, 21, 0.06) 46%,
        transparent 60%
    );
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
    pointer-events: none;
}

.turnaje-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: calc(var(--turnaje-nav-overlap) + 1.15rem) var(--bs-gutter-x, 0.75rem) 1.75rem;
    box-sizing: border-box;
    pointer-events: auto;
}

@media (min-width: 576px) {
    .turnaje-hero__inner { max-width: 540px; }
}

@media (min-width: 768px) {
    .turnaje-hero__inner { max-width: 720px; }
}

@media (min-width: 900px) {
    .turnaje-hero__inner {
        padding-top: calc(var(--turnaje-nav-overlap) + 1.45rem);
        padding-bottom: 2.25rem;
    }
}

@media (min-width: 992px) {
    .turnaje-hero__inner { max-width: 960px; }
}

@media (min-width: 1200px) {
    .turnaje-hero__inner {
        max-width: 1140px;
        padding-top: calc(var(--turnaje-nav-overlap) + 1.65rem);
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .turnaje-hero__inner { max-width: 1320px; }
}

.turnaje-hero__main {
    min-width: 0;
    flex: 1 1 18rem;
}

.turnaje-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--np-accent-border, rgba(106, 174, 184, 0.35));
    border-radius: 999px;
    background: rgba(106, 174, 184, 0.1);
    color: var(--np-accent-hover, #79bcc4);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.turnaje-hero__main h1 {
    margin: 0 0 0.45rem;
}

.turnaje-hero__subtitle {
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.55;
}

.turnaje-hero__actions {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    gap: 0.65rem;
    align-items: center;
}

.turnaje-hero__actions .btn-primary {
    --turnaje-cta-bg-1: #f0b35a;
    --turnaje-cta-bg-2: #e0892e;
    --turnaje-cta-bg-3: #c56a18;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    isolation: isolate;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0 1.35rem 0 0.7rem;
    border: 1px solid rgba(255, 220, 160, 0.45);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 45%),
        linear-gradient(135deg, var(--turnaje-cta-bg-1) 0%, var(--turnaje-cta-bg-2) 52%, var(--turnaje-cta-bg-3) 100%);
    color: #1a1208;
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    box-shadow:
        0 0.18rem 0 rgba(120, 60, 10, 0.35),
        0 0.85rem 2rem rgba(0, 0, 0, 0.4),
        0 0.55rem 1.8rem rgba(224, 137, 46, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        border-color 0.18s ease;
}

.turnaje-hero__actions .btn-primary::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.28) 48%,
        transparent 62%
    );
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    content: "";
    pointer-events: none;
}

.turnaje-hero__actions .btn-primary > i {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(26, 18, 8, 0.18);
    color: #1a1208;
    font-size: 0.7rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0.2rem 0.45rem rgba(0, 0, 0, 0.18);
}

.turnaje-hero__actions .btn-primary:hover,
.turnaje-hero__actions .btn-primary:focus-visible {
    color: #140e06;
    border-color: rgba(255, 235, 190, 0.65);
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow:
        0 0.22rem 0 rgba(120, 60, 10, 0.3),
        0 1.1rem 2.4rem rgba(0, 0, 0, 0.42),
        0 0.75rem 2.1rem rgba(224, 137, 46, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.turnaje-hero__actions .btn-primary:hover::before,
.turnaje-hero__actions .btn-primary:focus-visible::before {
    transform: translateX(120%);
}

.turnaje-hero__actions .btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.turnaje-hero__actions .btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-shrink: 0;
    white-space: nowrap;
    box-sizing: border-box;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0 1.35rem;
    border: 1px solid rgba(240, 179, 90, 0.45);
    border-radius: 999px;
    background: rgba(12, 14, 16, 0.45);
    color: rgba(255, 230, 190, 0.95);
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0.45rem 1.2rem rgba(0, 0, 0, 0.28);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.turnaje-hero__actions .btn-outline-light:hover,
.turnaje-hero__actions .btn-outline-light:focus-visible {
    border-color: rgba(240, 179, 90, 0.75);
    background: rgba(240, 179, 90, 0.12);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0.65rem 1.5rem rgba(0, 0, 0, 0.32),
        0 0 0 0.1rem rgba(240, 179, 90, 0.18);
}

.turnaje-hero__actions .btn-outline-light:active {
    transform: translateY(0);
}

.turnaje-soon__shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: -2.5rem auto 0;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .turnaje-soon__shell { max-width: 540px; }
}

@media (min-width: 768px) {
    .turnaje-soon__shell { max-width: 720px; }
}

@media (min-width: 992px) {
    .turnaje-soon__shell { max-width: 960px; }
}

@media (min-width: 1200px) {
    .turnaje-soon__shell { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .turnaje-soon__shell { max-width: 1320px; }
}

.turnaje-soon__preview {
    padding: 1.25rem 1.35rem 1.35rem;
    border: 1px solid var(--turnaje-border);
    border-radius: 0.85rem;
    background: var(--turnaje-surface);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.turnaje-soon__preview-head {
    margin-bottom: 1rem;
}

.turnaje-soon__preview-head h2 {
    margin: 0 0 0.3rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.turnaje-soon__preview-head p {
    margin: 0;
    max-width: 36rem;
    color: var(--turnaje-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.turnaje-soon__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.turnaje-soon__features li {
    padding: 0.85rem 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.turnaje-soon__features strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.turnaje-soon__features p {
    margin: 0;
    color: var(--turnaje-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .turnaje-soon__features {
        grid-template-columns: 1fr;
    }

    .turnaje-soon__features li {
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 0.85rem 0;
    }

    .turnaje-soon__features li:last-child {
        border-bottom: none;
        padding-bottom: 0.15rem;
    }
}

@media (max-width: 767.98px) {
    .turnaje-hero {
        --turnaje-nav-overlap: 72px;
    }

    .turnaje-hero__inner {
        padding: calc(var(--turnaje-nav-overlap) + 1.1rem) var(--bs-gutter-x, 0.75rem) 2rem;
    }
}

@media (max-width: 575.98px) {
    .turnaje-hero__actions {
        width: 100%;
    }

    .turnaje-hero__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ==========================================================================
   Co chystáme – bez boxu, sloupce oddělené linkami a číslované
   ========================================================================== */

body.site-layout .turnaje-soon__preview {
    padding: 2rem 0 0;
    border: 0;
    border-top: 1px solid var(--np-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.turnaje-soon__preview-head h2 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.turnaje-soon__features {
    gap: 0;
    margin-top: 1.5rem;
    counter-reset: turnaje-feature;
}

.turnaje-soon__features li {
    padding: 0.25rem 1.75rem 0.5rem;
    border-top: 0;
    border-left: 1px solid var(--np-line);
    counter-increment: turnaje-feature;
}

.turnaje-soon__features li:first-child {
    padding-left: 0;
    border-left: 0;
}

.turnaje-soon__features li::before {
    content: counter(turnaje-feature, decimal-leading-zero);
    display: block;
    margin-bottom: 0.6rem;
    color: var(--np-blue);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem;
}

.turnaje-soon__features strong {
    font-family: var(--np-display);
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .turnaje-soon__features li,
    .turnaje-soon__features li:first-child {
        padding: 1.1rem 0;
        border-left: 0;
        border-top: 1px solid var(--np-line);
    }
}
