/* =========================
   HLAVIČKA
========================= */

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding-top: 30px;
    position: relative;
    z-index: 10;
}

.main-title {
    color: var(--primary);
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

.title-logo {
    height: 70px;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

/* =========================
   HUD OKNA – DESKTOP
========================= */

.hud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.cyber-window {
    position: absolute;
    pointer-events: auto;
    background-color: var(--bg-dark);
    border: 1px solid var(--primary);
    color: var(--primary);
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    padding: 15px 20px;
    width: 220px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: 0.3s;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-window:hover {
    background-color: rgba(0, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Pozice HUD */
.pos-top-left { top: 25%; left: 8%; }
.pos-middle-left { top: 42.5%; left: 8%; }
.pos-bottom-left { top: 60%; left: 8%; }

.pos-top-right { top: 25%; right: 8%; }
.pos-middle-right { top: 42.5%; right: 8%; }
.pos-bottom-right { top: 60%; right: 8%; }

/* Spodní střed */
.pos-bottom-center {
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
}

.pos-bottom-center:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* =========================
   AUDIO & JAZYKY
========================= */

.audio-widget {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--primary);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    touch-action: manipulation;
    min-height: 44px;
}

.lang-switcher {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 2000;
    display: flex;
    gap: 10px;
    font-weight: bold;
    align-items: center;
}

.lang-btn {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    text-align: center;
    touch-action: manipulation;
}

.lang-btn.active {
    color: var(--primary);
}

/* =========================
   SOCIÁLNÍ BAR
========================= */

.social-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3000;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    touch-action: manipulation;
    transition: transform 0.2s;
}

.social-icon-link:hover {
    transform: scale(1.1);
}

.social-icon-link svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* =========================
   📱 MOBILNÍ ZOBRAZENÍ
========================= */

@media screen and (max-width: 768px) {
    body {
        overflow-y: auto !important; 
        height: auto !important;
        min-height: 100vh;
    }

    /* HLAVIČKA - ZVĚTŠENÁ */
    .header-row {
        flex-direction: column;
        gap: 20px;
        padding-top: 80px;
        padding-bottom: 20px;
    }

    /* Zvětšený nadpis */
    .main-title {
        font-size: 2.8rem;
        letter-spacing: 4px;
        text-align: center;
        text-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary), 0 0 45px var(--primary);
    }

    /* Zvětšené horní logo */
    .title-logo {
        height: 90px;
        filter: drop-shadow(0 0 10px var(--primary-glow));
    }

    /* Druhé logo (pod názvem) - schované na mobilu */
    .header-row .title-logo:nth-of-type(2) {
        display: none;
    }

    /* HUD → seznam */
    .hud-container {
        position: relative;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 20px 0 30px;
        pointer-events: auto;
    }

    .cyber-window {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: min(85%, 300px) !important;
        max-width: 320px;
        clip-path: polygon(5% 0, 100% 0, 100% 85%, 95% 100%, 0 100%, 0 15%);
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .pos-bottom-center {
        transform: none !important;
        width: min(85%, 300px) !important;
    }

    /* Audio a jazyky - menší na mobilu */
    .audio-widget {
        top: 10px;
        left: 10px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .lang-switcher {
        top: 10px;
        right: 10px;
        font-size: 0.75rem;
        gap: 5px;
    }

    .lang-btn {
        padding: 6px;
        min-width: 36px;
    }

    /* Social bar - statická pozice */
    .social-bar {
        position: static;
        transform: none;
        margin: 20px 0 30px;
        justify-content: center;
        gap: 15px;
    }

    .social-icon-link {
        width: 44px;
        height: 44px;
    }
}

/* Ještě menší mobily */
@media screen and (max-width: 380px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .title-logo {
        height: 70px;
    }
    
    .cyber-window {
        width: 90% !important;
        font-size: 0.85rem;
    }
}
