/* public/mobile-menu.css */

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* --- Mobile Menu Panel --- */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: linear-gradient(170deg, #2c3e50 0%, #c2185b 100%);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1.5rem;
    box-shadow: 4px 0 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#mobile-menu.open {
    transform: translateX(0);
}

#close-menu-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

#mobile-menu ul li a {
    padding: 1rem 0.5rem;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#mobile-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#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;
    }
}
