/**
 * css/nav.css
 * ───────────
 * Navigation bar, hamburger toggle, and mobile drawer styles.
 */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 12, 11, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.05em;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0
}

.nav-logo span.green {
    color: var(--green)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey2);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    background: none
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
    background: rgba(29, 185, 84, 0.08)
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    flex-shrink: 0
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--grey2);
    border-radius: 2px;
    transition: all 0.3s ease
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0)
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* Mobile nav drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 12, 11, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto
}

.nav-drawer.open {
    display: flex
}

.nav-drawer .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px
}

.nav-drawer .btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px
}

.nav-drawer .user-pill {
    margin: 8px 0 4px;
    width: 100%
}

/* Real BIOPOWER logo image */
.brand-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain
}

@media (max-width:640px) {
    .brand-logo-img {
        height: 32px
    }
}