/* Mobile Menu */
.mobile_sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile_sidebar.active {
    right: 0;
}

.mobile_sidebar_handle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile_sidebar_handle .symbol {
    width: 20px;
    height: 20px;
}

.mobile_sidebar_content {
    padding: 4rem 2rem 2rem;
}

.mobile_nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile_nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.2s ease;
}

.mobile_nav a:hover {
    color: var(--color-accent);
}

/* Body Lock */
body.mobile_sidebar_active {
    overflow: hidden;
}

/* Overlay */
.mobile_sidebar_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.mobile_sidebar_overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

.mobile_sidebar.animating-in {
    animation: slideIn 0.3s ease forwards;
}

.mobile_sidebar.animating-out {
    animation: slideOut 0.3s ease forwards;
}

/* Responsive */
@media (min-width: 769px) {

    .mobile_sidebar,
    .mobile_sidebar_overlay {
        display: none;
    }
}