/* ========================================= */
/* BLACK HEADER STYLES                       */
/* ========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0a0b14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo,
.nav-actions {
    flex: 1;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.nav-links.desktop-only {
    flex: 0 0 auto;
    display: flex;
    gap: 32px;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.4px;
}

.logo-box {
    background: #2563eb;
    color: #ffffff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-links a,
.header__nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.header__nav-link:hover {
    color: #ffffff;
}

/* BUTTONS CORE (Needed for header) */
.navbar {
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
        white-space: nowrap;
        text-decoration: none;
        color: inherit;
    }

    .btn-signin {
        background: transparent;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .btn-signin:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .btn-get-started {
        background: #2563eb;
        color: #ffffff;
        padding: 10px 24px;
    }

    .btn-get-started:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    /* MENU TOGGLE */
    .menu-toggle {
        display: none;
        flex-direction: column;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 1000;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #ffffff;
        transition: all 0.3s ease;
    }

    &.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    &.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    &.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* MOBILE MENU OVERLAY */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0a0b14;
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    &.menu-open .mobile-menu {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        width: 100%;
        height: 100%;
    }

    .header__mobile-nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 20px;
        display: block;
        text-align: center;
        text-decoration: none;
    }

    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        align-items: center;
    }

    .mobile-menu-actions .btn {
        width: 200px;
    }

    /* RESPONSIVE HEADER */
    @media only screen and (max-width: 992px) {
        .nav-links.desktop-only {
            display: none;
        }

        .menu-toggle {
            display: flex;
        }

        .nav-container {
            gap: 12px;
        }

        .nav-actions .btn-signin,
        .nav-actions .btn-get-started {
            display: none;
        }

        .logo {
            font-size: 1.15rem;
            gap: 10px;
        }

        .logo-box {
            width: 30px;
            height: 30px;
            font-size: 0.8rem;
        }

        .btn-get-started {
            padding: 8px 18px;
            font-size: 0.9rem;
        }
    }

    @media only screen and (max-width: 480px) {
        .logo span:not(.logo-box) {
            display: none;
        }
    }
}