/* --- GLOBÁLNÍ NASTAVENÍ --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial Black', Arial, sans-serif; 
    background-color: #f4f4f4;
    overflow-x: hidden; 
}

/* --- 1. HLAVIČKA (MENU) --- */
header {
    width: 100%;
    height: 100px;
    background-color: #1b1e31;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 0 40px; 
}

.logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px; /* Menší mezera, protože tlačítka jsou širší */
}

/* TADY JE ZMĚNA: Styl tlačítek jako v patičce */
.nav-item {
    text-decoration: none;
    color: #cccccc;
    font-size: 0.95rem; /* Trochu menší písmo pro tlačítka */
    font-family: Arial, sans-serif;
    font-weight: bold;
    
    /* Vzhled tlačítka */
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent; /* Průhledné pozadí */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Jemný rámeček */
    padding: 10px 20px; /* Vnitřní odsazení */
    border-radius: 30px; /* Kulaté rohy */
    transition: all 0.3s ease; /* Plynulá animace */
}

/* Efekt při najetí myší + Aktivní stránka */
.nav-item:hover, .nav-item.active {
    background-color: #293a66; /* Pozadí se vyplní */
    border-color: #293a66;
    color: white;
    transform: translateY(-3px); /* Tlačítko nadskočí */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nav-item i {
    font-size: 1.1rem;
}

/* Discord tlačítko (Necháme plné pro odlišení - CTA) */
.discord-header-btn {
    text-decoration: none;
    background-color: #5865F2; 
    color: white;
    padding: 10px 25px; /* O něco větší padding */
    border-radius: 30px; /* Stejně kulaté */
    font-size: 0.95rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #5865F2; /* Rámeček stejné barvy */
    transition: all 0.3s ease;
    margin-left: 10px; /* Odstup od ostatních tlačítek */
}

.discord-header-btn:hover {
    background-color: #4752c4;
    border-color: #4752c4;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* --- 2. LIŠTA --- */
.lista {
    width: 100%;
    height: 10px;
    background-color: #293a66;
}

/* --- 3. SEKCE S VIDEEM --- */
.sekce-s-videem {
    width: 100%;
    display: flex;
    line-height: 0;
    align-items: stretch; 
    background-color: black; 
    flex-wrap: wrap; 
}

.video-polovina {
    width: 50%;
    position: relative;
    overflow: hidden; 
    min-height: 400px;
}

video {
    width: 100%;
    height: 100%;      
    object-fit: cover; 
    display: block;
}

.video-prechod {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(to left, #000000 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.video-nadpis {
    position: absolute;
    top: 130px;
    left: 30px;
    margin: 0;
    color: #252e55;
    font-size: 7rem;
    text-transform: uppercase;
    z-index: 10;
    -webkit-text-stroke: 2px white;
}

.cerny-box-prava {
    width: 50%;
    background-color: #000000;
    display: flex;
    align-items: center;    
    justify-content: center; 
    padding: 40px;          
    line-height: normal;    
}

.text-obsah {
    max-width: 650px;       
    color: white;
}

.text-obsah h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-obsah p {
    font-family: Arial, sans-serif; 
    font-weight: normal;            
    font-size: 1.1rem;              
    line-height: 1.6;               
    color: #cccccc;                 
    text-align: justify;            
}

/* --- 4. SEKCE VIZE (Karty) --- */
.spodni-sekce {
    width: 100%;
    background-color: #0a0a0a;
    padding: 60px 20px 80px;
    color: white;
    text-align: center;
    border-top: 2px solid #293a66; 
}

.kontejner {
    max-width: 1000px;
    margin: 0 auto;
}

.spodni-sekce h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.grid-vlastnosti {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

.karta {
    background-color: rgba(30, 29, 47, 0.6);
    backdrop-filter: blur(5px);
    flex: 1 1 280px;
    max-width: 350px;
    padding: 30px;
    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid #293a66;
    display: flex;
    flex-direction: column; 
    text-align: left;
    transition: transform 0.3s ease;
}

.karta:hover {
    transform: translateY(-5px);
}

.hlavicka-karty {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ikona-box {
    width: 50px;  
    height: 50px; 
    background-color: #283965; 
    border-radius: 12px; 
    box-shadow: 0 0 15px rgba(40, 57, 101, 0.5);
    flex-shrink: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.ikona-box i {
    color: white;
    font-size: 24px;
}

.karta h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.karta p {
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* --- 5. SEKCE SLIDER (FOTKY) --- */
.galerie-sekce {
    width: 100%;
    background-color: #000000;
    padding: 60px 0 100px;
    text-align: center;
    border-top: 1px solid #1b1e31;
    overflow: hidden; 
}

.galerie-sekce h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px; 
    display: flex;
    align-items: center;
}

.slider-track {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-out; 
    gap: 0; 
}

.slide {
    width: 50vw; 
    max-width: 800px; 
    min-width: 320px; 
    height: 350px; 
    flex-shrink: 0; 
    padding: 0 20px; 
    transition: all 0.5s ease; 
    opacity: 0.4;
    transform: scale(0.85);
}

.slide.active {
    opacity: 1;
    transform: scale(1.05); 
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(27, 30, 49, 0.8);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: #00bcd4;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }


/* --- 6. ZÁPATÍ (FOOTER) --- */
footer {
    width: 100%;
    background-color: #1a1a1a; 
    padding: 30px 40px;
    color: white;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.footer-left-brand {
    display: flex;
    align-items: center;
    gap: 20px; 
    text-align: left;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-text p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: #ccc;
}

.footer-text .author {
    color: #666;
    font-size: 0.75rem;
    margin-top: 3px;
}

.footer-right-actions {
    display: flex;
    align-items: center;
    gap: 30px; 
}

.social-icons {
    display: flex;
    gap: 15px; 
}

.social-link img {
    height: 35px; 
    width: auto;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.15);
}

.scroll-top-btn {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #293a66;
    color: white;
    border-color: #293a66;
    transform: translateY(-3px);
}

/* RESPONZIVITA (Mobily) */
@media (max-width: 900px) {
    header {
        flex-direction: column; 
        height: auto;
        padding: 20px;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Na mobilu možná chceme text schovat a nechat jen ikony, 
       aby se to vešlo. Pokud ne, tento blok smaž. */
    .nav-item span {
        display: none; 
    }
    .discord-header-btn span {
        display: inline; /* Ale u Discordu text necháme */
    }

    .sekce-s-videem { flex-direction: column; }
    .video-polovina, .cerny-box-prava { width: 100%; }
    .video-nadpis { font-size: 4rem; text-align: center; }
    
    .slide { width: 80vw; height: 250px; }
    .slider-container { height: 300px; }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-left-brand, .footer-right-actions {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}