/* assets/css/header.css */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 20px; /* Zmenšeno z 40px kvůli dvěma tlačítkům */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    transition: transform var(--transition-base);
    position: relative;
    flex-shrink: 0;
}

.logo img {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 8px rgba(0, 168, 107, 0.2));
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.logo span {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigace */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px; /* Zmenšeno z 40px */
    list-style: none;
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-base);
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Jazykový přepínač */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.lang-link {
    padding: 4px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-full);
    transition: all var(--transition-base) !important;
}

.lang-link::after {
    display: none !important;
}

.lang-link:hover {
    background: var(--white);
    color: var(--primary) !important;
}

.lang-link.active {
    background: var(--primary);
    color: var(--white) !important;
}

.lang-divider {
    color: var(--gray-300);
    font-weight: 300;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* Menší mezera mezi tlačítky */
}

.contact-pill {
    padding: 12px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Nové styly pro kompaktní tlačítka */
.contact-pill.compact {
    padding: 10px 16px;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.contact-pill.secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--gray-200);
    box-shadow: none;
}

.contact-pill.secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Štítek H1/H2 */
.pill-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
}

.contact-pill.secondary .pill-label {
    background: var(--gray-100);
    color: var(--text-secondary);
}

.contact-pill svg {
    width: 16px;
    height: 16px;
}

/* Mobilní menu tlačítko */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsivita */
@media (max-width: 1200px) {
    .nav-links {
        gap: 20px; /* Zmenšení mezer při menším desktopu */
    }
    
    .logo span {
        display: none; /* Skryjeme text loga, aby se vešla tlačítka */
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 16px;
    }
    
    .contact-pill.compact {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    header .container {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    .logo span {
        display: block; /* Na mobilu text vrátíme */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-smooth);
        padding-top: 80px;
    }
    
    nav.mobile-active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-links li a {
        display: block;
        padding: 16px 0;
        font-size: 1rem;
    }
    
    .lang-switcher {
        margin-top: 20px;
        width: fit-content;
    }
    
    .header-actions {
        display: none; /* Na mobilu v hlavičce čísla schováme (jsou v menu/patičce) */
    }
}