/* public/mobile-menu.css */

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- Mobile Menu Panel --- */
#mobile-menu {
    position: fixed;
    top: 0;
    left: -300px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    padding: 2rem 1rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

#mobile-menu.show {
    left: 0;
}

#close-menu-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 4rem;
}

#mobile-menu ul li a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

#mobile-menu ul li a:hover {
    background-color: #f7f7f7;
}

#mobile-menu ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* --- Hamburger Menu Button (in the main navbar) --- */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 1.8rem; /* Matched from homepage for consistency */
    cursor: pointer;
    color: #d6336c; /* Matched from homepage for consistency */
}

/* Show hamburger on smaller screens */
@media (max-width: 1024px) { /* Standardized to 1024px for tablets */
    .hamburger-menu {
        display: block;
    }

    /* Hide the desktop nav links to make space for the hamburger */
    .navbar > ul, .secondary-header .sub-navbar {
        display: none;
    }
}
