/**
 * Unified Mobile Menu Styles
 * This file contains all hamburger menu and mobile navigation styles
 * for screens 1200px and below.
 * 
 * Include this file in all pages (except history.html) to ensure
 * consistent mobile menu appearance.
 */

/* ==========================================================================
   Hamburger Button
   ========================================================================== */
.hamburger-btn {
    display: none;
    /* Shown in media queries */
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 16px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ==========================================================================
   Menu Open State
   ========================================================================== */
body.menu-open .header {
    z-index: 2000 !important;
    background-color: transparent !important;
    transition: none;
}

body.menu-open .hamburger-line {
    background-color: var(--white) !important;
}

body.menu-open .logo {
    color: var(--white) !important;
    z-index: 2001;
    position: relative;
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 76, 115, 0.98);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    overflow-x: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* ==========================================================================
   Mobile Navigation Links
   ========================================================================== */
.mobile-nav-link {
    font-family: var(--font-main);
    font-size: 32px;
    font-weight: 700;
    color: #f1f2ed;
    text-decoration: none;
    margin: 25px 0;
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
    width: auto;
    text-align: center;
}

/* Active State Indicators - Lines on both sides */
.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 120%;
    width: 60px;
    height: 1px;
    background-color: #f1f2ed;
    transform: translateY(-50%);
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 120%;
    width: 60px;
    height: 1px;
    background-color: #f1f2ed;
    transform: translateY(-50%);
}

/* ==========================================================================
   Mobile Language Switcher
   ========================================================================== */
.mobile-lang-switch {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    color: #f1f2ed;
    width: 100%;
    justify-content: center;
    padding-left: 0;
}

/* ==========================================================================
   Scroll Lock
   ========================================================================== */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* ==========================================================================
   Responsive: Small Screens (480px and below)
   ========================================================================== */
@media (max-width: 480px) {
    .hamburger-btn {
        width: 25px;
        height: 10px;
    }

    .mobile-nav-link {
        font-size: 6.5vw;
        margin: 5.5vw 0;
    }

    .mobile-nav-link.active::before {
        width: 8vw;
        right: 120%;
    }

    .mobile-nav-link.active::after {
        width: 8vw;
        left: 120%;
    }

    .mobile-lang-switch {
        margin-top: 8vw;
        gap: 5vw;
        font-size: 4.5vw;
    }
}

/* ==========================================================================
   Responsive: Short Landscape Screens (height 600px and below)
   ========================================================================== */
@media (max-height: 600px) {
    .mobile-menu-overlay {
        justify-content: flex-start;
        padding-top: 100px;
        padding-bottom: 100px;
        overflow-y: auto;
    }

    .mobile-nav-link {
        margin: 15px 0;
    }
}

/* ==========================================================================
   Responsive: Tablet/Mobile Breakpoint (1200px and below)
   ========================================================================== */
@media (max-width: 1200px) {
    .hamburger-btn {
        display: flex;
    }
}
