/* header.css – auto.pub language front-end */

/* ===== ÜLDINE HEADER ===== */
.site-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    height: 55px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    gap: 20px;
}

/* ===== LOGO ===== */
.header-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* ===== NAVIGATSIOON ===== */
.header-nav {
    display: flex;
    align-items: center;
    margin-left: 30px;
    gap: 0;
    flex-wrap: nowrap;
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 6px 10px;
    white-space: nowrap;
    border-radius: 3px;
    transition: color 0.15s, background-color 0.15s;
}

.header-nav a:hover {
    color: #e53935;
    background-color: transparent;
}

.header-nav a.active {
    color: #e53935;
}

/* ===== HAMBURGER (mobiil) ===== */
.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    border-radius: 4px;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ===== TABLET: max 800px ===== */
@media (max-width: 800px) {
    .site-header {
        height: auto;
        min-height: 50px;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 8px 15px;
        gap: 0;
    }

    .header-logo img {
        height: 32px;
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-left: 0;
        padding: 6px 0 10px 0;
        border-top: 1px solid #ddd;
        margin-top: 8px;
    }

    .header-nav a {
        font-size: 1em;
        padding: 9px 10px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0;
    }

    .nav-toggle:checked ~ .header-inner .header-nav {
        display: flex;
    }

    .nav-toggle:checked ~ .header-inner .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked ~ .header-inner .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .header-inner .hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ===== MOBIIL: max 600px ===== */
@media (max-width: 600px) {
    .header-nav a {
        font-size: 0.95em;
        padding: 8px 10px;
    }
}