/* File: static/css/header.css */
html{
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.head-spacer {
    height: 80px;
}

.site-header {
    background-color: #ffffff;
    color: #fff;
    padding: 10px 0;
    min-height: 50px;
    max-height: 70px;
    overflow: visible;
    position: fixed;
    width: 100%;
    z-index: 999;
    transition: all 0.5s ease;
}

.header-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 50px;
    justify-content: space-between;
    transition: all 0.5s ease;
}

.logo .site-title {
    font-size: 24px;
    color: #fff;
    text-decoration: none;
}

.logo .highlight {
    color: #f66;
}

.main-nav{
    transition: all 0.5s ease;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 20px;
    display: flex;
}

.main-nav ul li {
    margin: 20px 15px;
}

.main-nav ul li a {
    color: #000000;
    display: block;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    /*color: #909090;*/
    color: #e74c3c;
}

.lang-selector {
    font-size: 14px;

}

.lang-selector a {
    color: #000000;
    text-decoration: none;
    margin: 0 5px;
}

.lang-selector a:hover {
    color: #909090;
}

.menu-toggle {
    display: none;
    background: none;
    color: black;
    font-size: 30px;
    border: none;
    cursor: pointer;
}

.dropdown details {
    position: relative;
}

.dropdown summary {
    list-style: none;
    cursor: pointer;
    font-size: 16px;
    color: #000000;
    padding-right: 1em;
}

details summary::after {
    content: '›'; /* right angle */
    position: absolute;
    right: 0;
    transition: transform 0.2s ease;
    font-size: 0.9em;
    color: inherit;
    transform: rotate(90deg);
}

details[open] summary::after {
    transform: rotate(180deg); /* points down when open */
}

details[open] .dropdown-menu {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); max-height: 0}
    to { opacity: 1; transform: translateY(0); max-height: 300px}
}

.dropdown-menu {
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 150px;
    z-index: 255;
}

.dropdown-menu li a {
    display: block;
    padding: 10px;
    color: #000000;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
}

@media (max-width: 1100px) and (min-width: 768px){
    .main-nav{
        transform: scale(0.8);
    }
    .header-container {
        width: 93%;
    }
}


@media (max-width: 768px) {

    .site-header {
        max-height: none;
    }

    .container {
        min-height: 50px;
    }

    .main-nav {
        display: none; /* hide by default on small */
        flex-direction: column; /* vertical layout */
        width: 100%; /* stretch full width */
        margin-top: 10px;
        background-color: #ffffff; /* match header bg */
        padding: 10px 0;
    }

    .logo {
        order: -1; /* puts logo at the top */
        margin-top: 5px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        scale: 100%;
    }

    .logo.hide {
        display: none;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav.show {
        display: flex;
    }

    .lang-selector.hide {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-wrapper {
        overflow: hidden;
        height: 50px;
        transition: all 0.6s ease;
        margin-right: 20vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-wrapper.show {
        height: 100vh; /* enough height to fit all links */
    }

    .dropdown-menu {
        position: fixed;
    }

    .head-spacer {
        height: 50px;
    }
}

.logo.shrink {
    transform: scale(0.65);
}

@media (min-width: 768px) {

    .site-header.shrink {
        max-height: 50px;
    }
    .site-header.shrink img{
        height: 50px;
        width: 85px;
    }

    .site-header img {
        height: 70px;
        width: 124px;
        transition: all 0.5s ease;
    }

}

