/* ==========================================
   MOBILE MENU STYLES
   ========================================== */

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 40px;
    text-align: center;
}

.mobile-nav-item {
    display: block;
    padding: 18px 40px;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 8px 0;
}

.mobile-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

/* Mobile Dropdown */
.mobile-dropdown {
    cursor: default;
}

.mobile-dropdown-title {
    display: block;
    padding: 18px 40px;
    font-weight: 600;
    font-size: 1.25rem;
    color: #000000;
}

.mobile-dropdown-content {
    background: rgba(0, 0, 0, 0.03);
    padding: 10px 0;
    border-radius: 12px;
    margin: 8px 20px;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.mobile-submenu-item:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.mobile-submenu-item i {
    font-size: 20px;
    color: #000000;
}

.mobile-submenu-item div {
    flex: 1;
}

.mobile-submenu-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Mobile Auth Buttons */
.mobile-auth {
    padding: 30px 20px 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 300px;
}

.mobile-auth .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* Navbar responsive adjustments */
@media (max-width: 1200px) {
    .navbar {
        padding: 0.75rem 0 !important;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links,
    .auth-buttons .theme-switch,
    .auth-buttons .btn {
        display: none !important;
    }

    .logo img {
        height: 32px !important;
    }
}