/* ====== HEADER WRAPPER ====== */
.header {
    background-color: #0b334f;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: 60px;
    box-sizing: border-box;
}

/* CONTAINER – pevná šířka stránky */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.brand-section .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}
.brand-section .logo-img {
    height: 36px;
}

/* PRAVÁ ČÁST */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== MENU ===== */
.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

/* HOME – vždy červené */
.nav-menu a.home,
.mobile-menu a.home {
    background-color: #e74c3c !important;
    color: white !important;
    font-weight: bold;
}

/* Aktivní položka (kromě Home) */
.nav-menu a.active,
.mobile-menu a.active {
    color: #EEB500;
    font-weight: bold;
}

/* ===== SOCIAL IKONY ===== */
.social-icons {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1000;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: white;
    color: #0b334f;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: #EEB500;
    text-decoration: none;
}

/* ===== HAMBURGER (MOBIL) ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2100;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: unset !important;
    height: auto !important;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Animace hamburgeru */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    width: 220px;
    background-color: #072536;
    border-radius: 0 0 0 8px;
    padding: 10px 0;
    box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    z-index: 1500;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
}

/* ===== DESKTOP BURGER MENU ===== */
.desktop-burger {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-burger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 10px;
    display: flex;
    align-items: center;
}

.desktop-burger-btn i {
    pointer-events: none;
}

/* DROPDOWN – OTEVÍRÁ SE DOPRAVA */
.desktop-burger-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: #072536;
    border-radius: 6px;
    min-width: 200px;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2000;
}

.desktop-burger-dropdown a {
    display: block;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
}

.desktop-burger-dropdown a:hover {
    background: rgba(255,255,255,0.1);
}

/* SKRÝT NA MOBILU */
@media (max-width: 900px) {
    .desktop-burger {
        display: none !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
}

/* TABLET PORTRAIT */
@media (max-width: 768px) {
    body .header-inner {
        padding: 0 20px;
    }
    
    body .header-right {
        gap: 15px;
    }
    
    body .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* MOBILY */
@media (max-width: 767px) {
    body .header-inner {
        padding: 0 6px !important;
    }

    body .header-right {
        gap: 4px !important;
        align-items: center !important;
        display: flex !important;
    }

    body .social-icons {
        gap: 2px !important;
        align-items: center !important;
        display: flex !important;
    }

    body .social-icons a {
        width: 22px !important;
        height: 22px !important;
        font-size: 9px !important;
        background: white !important;
        color: #0b334f !important;
        text-decoration: none !important;
    }
    
    body .hamburger {
        align-self: center !important;
        z-index: 2100 !important;
        position: relative !important;
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body .hamburger span {
        width: 16px !important;
        height: 2px !important;
    }

    body .mobile-menu {
        width: 160px !important;
        top: 55px !important;
    }
    
    body .mobile-menu a {
        font-size: 13px !important;
        padding: 9px 14px !important;
    }
    
    body .brand-section .logo-img {
        height: 30px !important;
    }
}

/* VELMI MALÉ MOBILY */
@media (max-width: 400px) {
    body .header-inner {
        padding: 0 6px !important;
    }
    
    body .brand-section .logo-img {
        height: 28px !important;
    }
    
    body .header-right {
        gap: 4px !important;
    }
    
    body .social-icons {
        gap: 2px !important;
    }
    
    body .social-icons a {
        width: 22px !important;
        height: 22px !important;
        font-size: 9px !important;
    }
    
    body .hamburger span {
        width: 16px !important;
    }
    
    body .mobile-menu {
        width: 150px !important;
    }
    
    body .mobile-menu a {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}


/* =====================================================================
   VYHLEDÁVÁNÍ — search button + overlay
   ===================================================================== */

/* Ikona lupy v headeru */
.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 17px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.search-btn:hover {
    color: #EEB500;
    background: rgba(255,255,255,0.1);
}

/* Fullscreen overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(7, 23, 38, 0.95);
    z-index: 9000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    box-sizing: border-box;
}
.search-overlay.open {
    display: flex;
}

/* Panel */
.search-panel {
    width: 100%;
    max-width: 720px;
    padding: 0 20px;
}

/* Input řádek */
.search-input-wrap {
    display: flex;
    align-items: center;
    background: #0b334f;
    border: 2px solid #EEB500;
    border-radius: 8px;
    overflow: hidden;
}
.search-input-icon {
    color: #EEB500;
    font-size: 16px;
    padding: 0 0 0 16px;
    flex-shrink: 0;
}
.search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 14px 12px;
    outline: none;
    font-family: inherit;
}
.search-input-wrap input::placeholder {
    color: rgba(255,255,255,0.3);
}
.search-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 18px;
    padding: 14px 16px;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}
.search-close-btn:hover { color: white; }

/* Výsledky container */
.search-results {
    margin-top: 8px;
    background: #0d1b2a;
    border-radius: 8px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1a4f72 transparent;
}
.search-results:empty { display: none; }

/* Jeden výsledek */
.si {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
}
.si:last-child { border-bottom: none; }
.si:hover {
    background: rgba(255,255,255,0.07);
    text-decoration: none;
    color: white;
}

/* Thumbnail */
.si-thumb {
    width: 50px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #1a4f72;
}
.si-no-thumb {
    width: 50px;
    height: 72px;
    background: #1a4f72;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 16px;
    flex-shrink: 0;
}

/* Tělo výsledku */
.si-body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.si-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 5px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.55);
}
.si-badge--film   { background: rgba(238,181,0,0.15); color: #EEB500; }
.si-badge--serial { background: rgba(52,152,219,0.2); color: #5dade2; }
.si-badge--kniha  { background: rgba(46,204,113,0.15); color: #58d68d; }

.si-nazev {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}
.si-popis {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-top: 5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Zprávy */
.search-msg, .search-empty {
    padding: 22px 16px;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 14px;
}
.search-msg i { margin-right: 6px; }

/* Mobilní úpravy */
@media (max-width: 767px) {
    body .search-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
    }
    .search-overlay { padding-top: 65px; }
    .search-panel { padding: 0 10px; }
    .search-input-wrap input {
        font-size: 16px;
        padding: 12px 10px;
    }
    .search-results { max-height: 65vh; }
    .si-thumb, .si-no-thumb { width: 40px; height: 58px; }
}
@media (max-width: 400px) {
    body .search-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 13px !important;
    }
}