/* public/mobile-nav.css */
/* --- Variable Definitions for standalone use --- */
:root {
    --nav-text-primary: #0f172a; /* Deep Navy */
    --nav-text-secondary: #64748b; /* Slate Gray */
    --nav-surface-color: #ffffff; /* White */
}


.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--nav-text-secondary); /* USE LOCAL VARIABLE */
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--nav-surface-color); /* USE LOCAL VARIABLE */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease-in-out;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav .nav-link {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--nav-text-primary); /* USE LOCAL VARIABLE */
    text-decoration: none;
}

.mobile-nav .btn {
    margin-top: 1.5rem;
    width: 80%;
    max-width: 250px;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--nav-text-secondary); /* USE LOCAL VARIABLE */
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
}

@media (max-width: 1000px) { /* CHANGED FROM 768px */
    .main-nav {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .hamburger-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Mobile Language Switcher --- */
.language-switcher-mobile {
    margin-top: 1.5rem;
    padding: 0 1.5rem; /* Align with other mobile nav items */
}

.language-switcher-mobile select {
    width: 100%;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--nav-text-primary);
    background-color: var(--background-color, #f8fafc); /* Use a fallback color */

    /* Custom Arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708 .708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}