/* ============================================
   PROFESSIONAL FULLSCREEN MENU
   ============================================ */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 10002 !important; /* Higher than lightbox (10000) and navigation (10001) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: var(--font-main);
    overflow: hidden; /* No scrolling - everything must fit */
}

.menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.menu-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.menu-logo-img {
    height: 24px;
    margin-right: 12px;
}

.menu-logo-text {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, opacity 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.menu-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column; /* Mobile first: single column */
    width: 100%;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    gap: 2.5rem; /* Reduced gap to fit everything */
    overflow: hidden;
    min-height: 0; /* Allow flex shrinking */
    position: relative;
    z-index: 1;
}

.menu-navigation {
    display: flex;
    flex-direction: column;
}

.menu-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 0;
}

.menu-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-nav-link:hover {
    color: var(--color-accent);
    transform: translateX(8px);
    padding-left: 8px;
}

.menu-nav-link:hover::before {
    width: 100%;
}

.menu-sidebar {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    flex-shrink: 1;
    min-height: 0;
    position: relative;
}

.menu-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
    opacity: 0.3;
}

.menu-sidebar-title {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.menu-sidebar-item {
    margin-bottom: 1rem; /* Reduced spacing */
}

.menu-sidebar-item-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    display: block;
    margin-bottom: 0.25rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 0;
}

.menu-sidebar-item-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-accent);
}

.menu-sidebar-item-link:hover {
    color: var(--color-accent);
    transform: translateX(12px);
    padding-left: 12px;
}

.menu-sidebar-item-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.menu-sidebar-item-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.menu-footer {
    display: flex;
    flex-direction: column; /* Mobile first */
    padding: 1.5rem 2rem;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    flex-shrink: 0;
    gap: 1.5rem; /* Reduced gap */
}

.menu-footer-left,
.menu-footer-right {
    display: flex;
    flex-direction: column;
}

.menu-footer-title {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.menu-footer-links {
    display: flex;
    flex-direction: column;
}

.menu-footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-footer-link:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.menu-footer-link:hover::after {
    width: 100%;
}

/* ============================================ */
/*  RESPONSIVE STYLES (TABLET & DESKTOP)        */
/* ============================================ */

@media (min-width: 768px) {
    .menu-content {
        flex-direction: row; /* Two columns on larger screens */
        justify-content: center;
        align-items: flex-start;
        gap: 4rem; /* Reduced gap */
        padding: 2rem 3rem; /* Reduced padding */
    }

    .menu-navigation {
        width: 280px; /* Slightly reduced width */
        flex-shrink: 0;
    }

    .menu-nav-link {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .menu-sidebar {
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 0;
        padding-left: 3rem; /* Reduced padding */
        max-width: 350px; /* Reduced max-width */
    }

    .menu-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 3rem; /* Reduced padding */
    }

    .menu-footer-left,
    .menu-footer-right {
        flex-direction: row;
        gap: 3rem; /* Reduced gap */
    }
    
    .menu-footer-links {
        flex-direction: row;
        gap: 1.5rem; /* Reduced gap */
    }
    
    .menu-footer-link {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .menu-content {
        gap: 6rem; /* Reduced from 10rem */
        padding: 2.5rem 4rem;
    }

    .menu-navigation {
        width: 350px; /* Reduced from 400px */
    }
    
    .menu-nav-link {
        font-size: 1.6rem;
        margin-bottom: 0.7rem;
    }

    .menu-sidebar {
        padding-left: 4rem; /* Reduced from 6rem */
        max-width: 400px;
    }
}

