/* ============================================================
   HERNÍ REŽIMY
   Gladiators Laser Game
============================================================ */


/* ============================================================
   SKUPINY REŽIMŮ
============================================================ */

.mode-group{

    margin-top:3rem;

}

.mode-group:first-of-type{

    margin-top:0;

}

.mode-group-description{

    max-width:900px;

    margin:0 0 2rem;

    color:var(--grey);

    line-height:1.8;

}


/* ============================================================
   MŘÍŽKA KARET
============================================================ */

.mode-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:2rem;

}


/* ============================================================
   KARTA
============================================================ */

.mode-card{

    display:flex;

    flex-direction:column;

    overflow:hidden;

    height:100%;

    background:var(--dark2);

    border:1px solid rgba(255,212,0,.12);

    border-radius:14px;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;

}

.mode-card:hover{

    transform:translateY(-5px);

    border-color:rgba(255,212,0,.30);

    box-shadow:
        0 10px 24px rgba(0,0,0,.35),
        0 0 18px rgba(255,212,0,.08);

}


/* ============================================================
   OBRÁZEK
============================================================ */

.mode-image{

    position:relative;

    width:100%;

    aspect-ratio:3/2;

    overflow:hidden;

    background:#111;

}

.mode-image img{

    display:block;

    width:100%;

    height:100%;

    object-fit:cover;

    transition:
        transform .30s ease;

}

.mode-card:hover .mode-image img{

    transform:scale(1.03);

}

/* ============================================================
   DOPORUČENÝ REŽIM
============================================================ */

.mode-recommended{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:.45rem;

    padding:.55rem .8rem;

    background:var(--yellow);

    color:var(--black);

    font-size:.78rem;

    font-weight:700;

    letter-spacing:.08em;

    text-transform:uppercase;

}

.mode-recommended i{

    font-size:.90rem;

}


/* ============================================================
   HLAVIČKA KARTY
============================================================ */

.mode-card-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:1rem;

    padding:1.35rem 1.35rem .75rem;

}

.mode-title{

    flex:1;

    margin:0;

    min-height:3.4rem;

    color:var(--yellow);

    font-family:'Cinzel', serif;

    font-size:1.35rem;

    font-weight:700;

    line-height:1.3;

}


/* ============================================================
   ŠTÍTKY
============================================================ */

.mode-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:.38rem .80rem;

    border-radius:999px;

    white-space:nowrap;

    font-size:.74rem;

    font-weight:700;

    line-height:1;

    color:#fff;

}

.mode-badge--green{

    background:#2E8B57;

}

.mode-badge--blue{

    background:#2563EB;

}

.mode-badge--orange{

    background:#D97706;

}

.mode-badge--yellow{

    background:#CA8A04;

}

.mode-badge--red{

    background:#C1121F;

}

.mode-badge--purple{

    background:#6D28D9;

}


/* ============================================================
   NÁROČNOST
============================================================ */

.mode-difficulty{

    display:flex;

    align-items:center;

    gap:0;

    padding:0 1.35rem;

    margin-bottom:1rem;

}

.difficulty-label{

    margin-right:.5rem;

    color:var(--grey);

    font-size:.90rem;

    font-weight:600;

}

.difficulty-icon{

    display:block;

    width:22px;

    height:22px;

    margin:0;

    padding:0;

    flex:0 0 auto;

}

.difficulty-icon:last-child{

    margin-right:0;

}

/* ============================================================
   POPIS REŽIMU
============================================================ */

.mode-text{

    flex:1;

    padding:0 1.35rem;

    color:var(--grey-light);

    font-size:.95rem;

    line-height:1.75;

}

.mode-text p{

    margin:0 0 1rem;

}

.mode-text p:last-child{

    margin-bottom:0;

}


/* ============================================================
   PATIČKA KARTY
============================================================ */

.mode-footer{

    display:flex;

    align-items:center;

    justify-content:flex-start;

    flex-wrap:wrap;

    gap:1.5rem;

    margin-top:1.75rem;

    padding:1rem 1.35rem 1.35rem;

    border-top:1px solid rgba(255,255,255,.08);

}


/* ============================================================
   POLOŽKY PATIČKY
============================================================ */

.mode-info{

    display:flex;

    align-items:center;

    gap:.55rem;

    color:var(--white);

    font-size:.92rem;

    font-weight:600;

    line-height:1;

}

.mode-info i{

    color:var(--yellow);

    font-size:1rem;

    width:18px;

    text-align:center;

    flex-shrink:0;

}

.mode-info span{

    white-space:nowrap;

}


/* ============================================================
   HOVER DETAILY
============================================================ */

.mode-card:hover .mode-title{

    color:#FFE35A;

}

.mode-card:hover .mode-recommended{

    filter:brightness(1.03);

}

.mode-card:hover .star.active{

    text-shadow:0 0 6px rgba(255,212,0,.35);

}

/* ============================================================
   TABLET
============================================================ */

@media (max-width:1100px){

    .mode-grid{

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:1.75rem;

    }

    .mode-card-header{

        padding:1.25rem 1.25rem .75rem;

    }

    .mode-text{

        padding:0 1.25rem;

    }

    .mode-difficulty{

        padding:0 1.25rem;

    }

    .mode-footer{

        padding:1rem 1.25rem 1.25rem;

    }

}


/* ============================================================
   MOBIL
============================================================ */

@media (max-width:720px){

    .mode-grid{

        grid-template-columns:1fr;

        gap:1.5rem;

    }

    .mode-card-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .mode-title{

        min-height:auto;

        font-size:1.25rem;

    }

    .mode-badge{

        margin-top:.35rem;

    }

    .mode-text{

        font-size:.92rem;

    }

    .mode-footer{

        flex-direction:column;

        align-items:flex-start;

        gap:.85rem;

    }

}


/* ============================================================
   MALÉ MOBILY
============================================================ */

@media (max-width:420px){

    .mode-grid{

        gap:1.25rem;

    }

    .mode-card{

        border-radius:12px;

    }

    .mode-card-header{

        padding:1rem;

    }

    .mode-difficulty{

        padding:0 1rem;

    }

    .mode-text{

        padding:0 1rem;

    }

    .mode-footer{

        padding:1rem;

    }

    .mode-title{

        font-size:1.15rem;

    }

    .mode-info{

        font-size:.88rem;

    }

}

/* ============================================================
   PŘÍSTUPNOST
============================================================ */

.mode-card:focus-within{

    outline:2px solid var(--yellow);

    outline-offset:3px;

}


/* ============================================================
   VÝBĚR TEXTU
============================================================ */

.mode-title::selection,
.mode-text::selection,
.mode-group-description::selection{

    background:var(--yellow);

    color:var(--black);

}


/* ============================================================
   TISK
============================================================ */

@media print{

    .mode-card{

        break-inside:avoid;

        box-shadow:none;

        border:1px solid #999;

    }

    .mode-card:hover{

        transform:none;

    }

    .mode-recommended{

        border:1px solid #000;

    }

}


/* ============================================================
   PŘÍPRAVA NA BUDOUCÍ FILTRY
============================================================ */

.mode-card.hidden{

    display:none;

}

/* =============================================================
   FIX: Odsazení pod fixní hlavičkou & fix uskakování
   ============================================================= */

/* 1. Uzamkne šířku okna na všech podstránkách (zamezí skákání do stran) */
html {
  overflow-y: scroll !important;
}

/* 2. Odtlačí první prvek na podstránce pod 70px hlavičku */
.container:first-of-type,
.page-header,
.intro-text,
.mode-group:first-of-type,
main {
  padding-top: 100px !important;
}

/* 3. Zazdění přetahování aktivního odkazového tlačítka v navigaci */
.nav-link.active {
  display: inline-block !important;
  margin: 0 !important;
}