/* Mobile Menu Styles */

/* Logo Image */
.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Hamburger Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-gray-900);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover span {
    background: var(--color-primary);
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 6rem 2rem 2rem;
}

.mobile-menu-item {
    display: block;
    padding: 1rem 0;
    color: var(--color-gray-900);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--color-gray-100);
    transition: color 0.2s;
}

.mobile-menu-item:hover {
    color: var(--color-primary);
}

.mobile-submenu-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-arrow {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    transition: transform 0.3s;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu a {
    display: block;
    padding: 0.75rem 0 0.75rem 1.5rem;
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.mobile-submenu a:hover {
    color: var(--color-primary);
    padding-left: 2rem;
}

.mobile-menu-lang {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.mobile-menu-lang a {
    color: var(--color-gray-600);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-lang a.active {
    color: var(--color-primary);
    font-weight: 700;
}

.mobile-menu-cta {
    background: linear-gradient(135deg, #0066CC, #003D7A);
    color: white !important;
    text-align: center;
    border-radius: 8px;
    margin-top: 1rem;
    border: none;
}

.mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

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

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

/* Desktop Menu Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
    list-style: none;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-gray-900) !important;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: var(--color-gray-50);
    color: var(--color-primary) !important;
    padding-left: 2rem;
}

/* Hide desktop menu on mobile */
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* Show desktop menu, hide mobile button on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu,
    .mobile-menu-overlay {
        display: none;
    }
}
