/**
 * ZEDEC Mobile Menu & Language Selector
 * Full visibility on mobile with dropdown navigation
 */

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #00ff88;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        border-top: 1px solid rgba(0,255,136,0.2);
        gap: 10px;
        z-index: 999;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-radius: 10px;
        background: rgba(255,255,255,0.05);
        text-align: center;
        font-size: 1.1rem;
    }
    
    .nav-link:hover, .nav-link.active {
        background: rgba(0,255,136,0.1);
    }
    
    /* Language selector in mobile */
    .language-selector {
        width: 100%;
        margin-top: 15px;
    }
    
    .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1rem;
    }
}

/* Mobile dropdown for all options */
.mobile-dropdown {
    display: none;
}

@media (max-width: 768px) {
    .mobile-dropdown {
        display: block;
        width: 100%;
    }
    
    .mobile-dropdown-btn {
        width: 100%;
        background: rgba(0,255,136,0.1);
        border: 1px solid rgba(0,255,136,0.3);
        color: #00ff88;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-dropdown-content {
        display: none;
        background: rgba(0,0,0,0.5);
        border-radius: 10px;
        margin-top: 10px;
        padding: 10px;
    }
    
    .mobile-dropdown-content.open {
        display: block;
    }
    
    .mobile-dropdown-item {
        display: block;
        width: 100%;
        padding: 15px;
        background: transparent;
        border: none;
        color: #ccc;
        text-align: left;
        font-size: 1rem;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .mobile-dropdown-item:hover {
        background: rgba(0,255,136,0.1);
        color: #00ff88;
    }
}

/* Header with language selector */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .header-right {
        order: 2;
    }
    
    .header-right .language-selector {
        position: static;
    }
}

/* Ensure all content visible */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
}

/* Full-width mobile nav items */
@media (max-width: 768px) {
    .nav-section {
        width: 100%;
    }
    
    .nav-section-title {
        color: #666;
        font-size: 0.8rem;
        padding: 10px 20px 5px;
        text-transform: uppercase;
    }
    
    .nav-divider {
        height: 1px;
        background: rgba(255,255,255,0.1);
        margin: 10px 0;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* RTL Support */
[dir="rtl"] .nav-links {
    text-align: right;
}

[dir="rtl"] .mobile-dropdown-item {
    text-align: right;
}
