/* 
 * Mobile Menu Fix CSS - Simple Version
 * Perbaikan sederhana untuk menu mobile
 */

@media (max-width: 768px) {
    /* Menu mobile sederhana */
    .nav-menu,
    .nav-left-menu,
    .nav-right-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #1a1a1a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px 0;
        display: flex;
    }

    /* Menu aktif */
    .nav-menu.active,
    .nav-left-menu.active,
    .nav-right-menu.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }

    /* Link menu */
    .nav-menu .nav-link,
    .nav-left-menu .nav-link,
    .nav-right-menu .nav-link {
        color: white;
        font-weight: 600;
        font-size: 18px;
        padding: 15px 20px;
        margin: 5px 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        text-align: center;
        min-width: 200px;
        display: block;
    }

    /* Hover effect */
    .nav-menu .nav-link:hover,
    .nav-left-menu .nav-link:hover,
    .nav-right-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #d4af37;
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hamburger button */
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        background: transparent;
        border: none;
    }

    .bar {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Body scroll lock */
    body.menu-open {
        overflow: hidden;
    }

    /* Hide desktop elements */
    .nav-actions {
        display: none;
    }

    .nav-left,
    .nav-right {
        display: none;
    }
}
