/* Mobile Nav Improvements */

/* Default: Hide Mobile Elements on Desktop */
.mobile-nav-item,
.mobile-login-btn,
.mobile-menu-btn {
    display: none;
}

@media (max-width: 960px) {

    /* Hide Desktop Actions */
    .nav-actions {
        display: none;
    }

    /* Show Mobile Login Icon */
    .mobile-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: white;
        /* Glass header usually has white or light text */
        margin-inline-start: auto;
        /* Push to right/left */
        margin-inline-end: 15px;
        text-decoration: none;
        transition: 0.2s;
    }

    .mobile-login-btn:hover {
        color: var(--primary);
    }

    /* Ensure Header Container aligns items correctly */
    .header-container {
        justify-content: space-between;
    }

    /* Mobile Menu Dropdown */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        /* Dark theme background matching footer */
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
        color: #cbd5e1;
    }

    /* Mobile Only List Items */
    .mobile-nav-item {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 10px;
        margin-top: 10px;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 2rem;
        cursor: pointer;
        color: white;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}