/* ================================================== */
/*                HEADER & NAVIGATION                */
/* ================================================== */

.top-bar {
    background-color: var(--color-topbar-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 2px;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 30px;
    width: 100%;
    z-index: 1000;
}

.top-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
}

.top-menu li {
    color: white;
}

.top-menu li a {
    color: var(--color-topbar-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.top-menu li a:hover {
    color: var(--color-highlight);
}

.navbar {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 1rem;
    z-index: 999;
}

.navbar .container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 999;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

#logo-img {
    height: 90px;
    width: auto;
    padding-top: 10px;
}

.logo-second {
    color: var(--logo-text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 999;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
}

#location-header {
    display: block;
}

/* ================================================== */
/*               MOBILE NAVIGATION                    */
/* ================================================== */

.menu-toggle {
    background: none;
    border: none;
}

@media (max-width: 900px) {
    :root {
        --navbar-height: 80px;
    }

    .navbar {
        transition: 0.5s;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        /* top: 28px; */
        top: 82px;
        right: 0;
        width: 100%;
        background-color: var(--color-surface);
        border-top: 1px solid var(--color-border);

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a,
    .nav-links li button {
        width: 100%;
        padding: 1rem;
        display: block;
        text-align: left;
    }

    .nav-links.open {
        max-height: 500px; /* enough to show all links */
    }

    .theme-toggle {
        padding: 1rem;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    #location-header {
        display: none;
    }

    .top-menu {
        padding: 0;
    }
}
