﻿/* ============================
   NAVBAR WRAPPER
   ============================ */
.azimuth-navbar {
    background-color: var(--nav-bg);
    border-bottom: 2px solid var(--nav-border);
    padding: 10px 0;
    position: relative;
    z-index: 10;
    margin-bottom: 0;
}

/* ============================
   INNER LAYOUT
   ============================ */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================
   BRAND
   ============================ */
.navbar-brand {
    margin: 0;
}

.nav-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* ============================
   NAV LINKS
   ============================ */
.navbar-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 16px;
    margin-left: auto;
}

    .navbar-links a {
        position: relative;
        display: inline-block;
        text-decoration: none;
        color: var(--gray-200);
        font-size: 0.85rem;
        padding: 6px 12px;
        border-radius: 4px;
        transition: color 0.2s ease;
    }

        /* underline animation */
        .navbar-links a::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 0px;
            width: 100%;
            height: 2px;
            background-color: var(--nav-link-active);
            transform: translateX(-50%) scaleX(0);
            transform-origin: center;
            transition: transform 0.2s ease;
            border-radius: 2px;
        }

        .navbar-links a:hover {
            color: var(--nav-link-hover);
        }

            .navbar-links a:hover::after,
            .navbar-links a.active::after {
                transform: translateX(-50%) scaleX(1);
            }

        .navbar-links a.active {
            color: var(--nav-link-active);
            font-weight: 700;
        }

/* ============================
   USER MENU
   ============================ */
.nav-user-menu {
    position: relative;
    list-style: none;
}

#user-menu-toggle-auth,
#user-menu-toggle-guest {
    display: none;
}

.user-menu-label {
    color: var(--nav-link);
    font-size: 0.85rem;
    font-weight: normal;
    padding: 6px 12px;
    display: inline-block; /*flex*/
    align-items: center;
    gap: 6px;
    cursor: pointer;
    line-height: normal;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

    .user-menu-label:hover {
        color: var(--nav-link-hover);
    }

.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 6px;
    box-shadow: var(--shadow-strong);
    padding: 8px 0;
    min-width: 180px;
    margin-top: 6px;
    display: none;
    z-index: 999;
    list-style: none;
}
    /* Move padding to the li so the anchor width = text width */
    .user-dropdown li {
        padding: 8px 12px 8px 12px;
        list-style: none;
    }

    /* Anchor now shrinks to text width */
    .user-dropdown a {
        position: relative;
        display: inline-block;
        font-size: 0.85rem;
        color: var(--nav-link);
        text-decoration: none;
        font-weight: normal;
        transition: color 0.2s ease;
    }

        /* Underline animation */
        .user-dropdown a::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 0px;
            width: 100%;
            height: 2px;
            background-color: var(--nav-link-active);
            transform: translateX(-50%) scaleX(0);
            transform-origin: center;
            transition: transform 0.2s ease;
            border-radius: 2px;
        }

        .user-dropdown a:hover {
            color: var(--nav-link-hover);
        }

            .user-dropdown a:hover::after {
                transform: translateX(-50%) scaleX(1);
            }
        
        .user-dropdown a.active:hover {
            color: var(--nav-link-active);
        }

.user-caret {
    font-size: 0.7rem;
    opacity: 0.8;
    position: relative;
    top: 0px;
    margin-left: 2px;
}


#user-menu-toggle-auth:checked ~ .user-dropdown,
#user-menu-toggle-guest:checked ~ .user-dropdown {
    display: block;
}


*/
/* ============================
   CLIENT LOGIN BUTTON (NOT USED)
   ============================ */
.nav-button {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px !important;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: background-color 0.2s ease;
    margin-left: 16px;
}

.nav-button::after {
    display: none !important;
}

/* ============================
   MOBILE MENU
   ============================ */
.menu-icon {
    display: none;
    font-size: 1.6rem;
    color: var(--nav-icon);
    cursor: pointer;
    margin-left: auto;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .navbar-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100vw;
        background-color: var(--nav-mobile-bg);
        flex-direction: column;
        display: none;
        padding: 16px 0;
        border-top: 1px solid var(--nav-mobile-border);
        z-index: 999;
    }

        .navbar-links li {
            text-align: center;
            padding: 10px 0;
        }

    #menu-toggle:checked + .menu-icon + .navbar-links {
        display: flex;
    }

    .menu-icon {
        display: block;
        margin-left: auto;
    }
}
