/* ==========================================================================
   HEADER - FINÁLNA VERZIA s opravenou responzivitou
   ========================================================================== */

.main-header {
    background-color: #101010;
    padding: 10px 0;
    border-bottom: 3px solid #e10600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky; top: 0; z-index: 1000;
    transition: transform 0.3s ease-in-out;
	 overflow: visible;
}
.main-header.header-hidden { transform: translateY(-100%); }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Časti hlavičky --- */
.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
}
.header-right { gap: 20px; }
.header-left, .header-right {
    flex-shrink: 0; /* Zabrání zmenšovaniu a vytláčaniu týchto prvkov */
}

/* --- Logo --- */
.logo-link { display: flex; align-items: center; text-decoration: none; }
.header-logo { height: 40px; }
.header-year { color: #888; font-size: 1.1em; font-weight: bold; margin-left: 15px; }

/* --- Navigácia --- */
.main-nav { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a { color: #ddd; text-decoration: none; font-weight: bold; font-size: 1.1em; padding: 10px 20px; transition: color 0.2s ease; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #e10600; }

/* --- Pravá strana: Akcie --- */
.season-selector-form select {
    background-color: #252525;
    color: #eee;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.login-button {
    background-color: #e10600;
    color: #fff;
    padding: 9px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.login-button:hover { background-color: #c00500; }

/* --- Dropdown Menu --- */
.dropdown { position: relative; }
.dropdown-button {
    background-color: #252525;
    color: #eee;
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    font-size: 1em;
}
.dropdown-button .fa-caret-down { transition: transform 0.2s ease; }

.dropdown-content {
    display: block;
    position: absolute;
    top: calc(100% + 8px); right: 0; z-index: 1001;
    background-color: #252525;
    border: 1px solid #555;
    border-radius: 5px;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    padding: 5px 0;
    opacity: 0; transform: translateY(-10px);
    visibility: hidden; pointer-events: none;
    transition: all 0.2s ease;
}
.dropdown.active .dropdown-content {
    opacity: 1; transform: translateY(0);
    visibility: visible; pointer-events: auto;
}
.dropdown.active .dropdown-button .fa-caret-down { transform: rotate(180deg); }

.dropdown-content a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 15px; color: #ddd;
    text-decoration: none; font-size: 0.95em;
}
.dropdown-content a:hover { background-color: #e10600; color: #fff; }
.dropdown-content a .fas { width: 18px; text-align: center; }


/* ==========================================================================
   FIX: Kompletne prepracovaná responzivita pre lepšie správanie
   ========================================================================== */

/* Pre tablety a mobily na šírku (do 900px) */
@media (max-width: 900px) {
    .main-nav a {
        padding: 10px 12px; /* Zmenšíme padding v menu, aby sa zmestilo */
        font-size: 1em;
    }
    .header-right {
        gap: 15px; /* Zmenšíme medzeru medzi prvkami vpravo */
    }
    .header-container {
        padding: 0 15px;
    }
}

/* Pre mobily na výšku (do 768px) */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap; /* AŽ TU povolíme zalamovanie */
        justify-content: space-between;
    }
    .header-center {
        order: 3; /* Navigáciu presunieme na koniec */
        width: 100%;
        margin-top: 10px;
    }
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    .main-nav a {
        font-size: 1.1em; /* Vrátime väčšie písmo, lebo je dosť miesta */
    }
}

/* Pre veľmi úzke mobily */
@media (max-width: 400px) {
    .main-nav {
       flex-direction: column; /* Menu dáme pod seba */
       gap: 5px;
    }
    .header-logo {
        height: 35px; /* Mierne zmenšíme logo */
    }
}

/* ==========================================================================
   Štýly pre neaktívny odkaz "Podpora" (FINÁLNA VERZIA)
   ========================================================================== */

.nav-link-disabled {
    /* Zdedí všetky vlastnosti z .main-nav a, prepíšeme len to, čo potrebujeme */
    text-align: center;
    line-height: 1.2;
    color: #6c757d !important;
    cursor: not-allowed;
}

/* Podtitulok "(pripravuje sa)" */
.nav-link-disabled .subtitle {
    font-size: 0.65em;
    font-weight: normal;
    color: #5a6268;
}

/* Zabráníme hover efektom */
.nav-link-disabled:hover {
    color: #6c757d !important;
}