/* FLUQXPAD - Component Styles (Menu, Footer, Language Switcher) */
/* Based on FLUQXLABS design system */

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
}

body.light-mode .theme-toggle-btn {
    background: rgba(30, 41, 59, 0.1);
    border-color: rgba(30, 41, 59, 0.2);
    color: #475569;
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(30, 41, 59, 0.2);
    color: #1e293b;
}

.theme-icon-moon {
    display: none;
}

body.light-mode .theme-icon-sun {
    display: none;
}

body.light-mode .theme-icon-moon {
    display: block;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.language-switcher {
    position: relative;
}

.language-switcher.active .lang-dropdown {
    display: block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-name {
    font-size: 0.875rem;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.lang-dropdown .lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-align: left;
}

.lang-dropdown .lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Language Selector */
.lang-selector-mobile {
    /* margin-top: 1rem; Removed to handle positioning in layout */
}

.lang-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-toggle-text {
    font-weight: 500;
}

.lang-toggle-arrow {
    transition: transform 0.3s ease;
}

.lang-selector-mobile.expanded .lang-toggle-arrow {
    transform: rotate(180deg);
}

.lang-mobile-submenu {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.lang-selector-mobile.expanded .lang-mobile-submenu {
    display: block;
}

.lang-mobile-submenu .lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-align: left;
}

.lang-mobile-submenu .lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Light Mode Language Styles */
body.light-mode .lang-btn {
    background: rgba(30, 41, 59, 0.1);
    border-color: rgba(30, 41, 59, 0.2);
    color: #475569;
}

body.light-mode .lang-btn:hover {
    background: rgba(30, 41, 59, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1e293b;
}

body.light-mode .lang-dropdown {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.8);
    /* Slate-300 */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

body.light-mode .lang-dropdown .lang-option {
    color: #475569;
}

body.light-mode .lang-dropdown .lang-option:hover {
    background: rgba(30, 41, 59, 0.1);
    color: #1e293b;
}

body.light-mode .lang-mobile-toggle {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.8);
    /* Slate-300 */
    color: #475569;
}

body.light-mode .lang-mobile-submenu {
    background: rgba(248, 250, 252, 0.5);
}

body.light-mode .lang-mobile-submenu .lang-option {
    color: #475569;
}

body.light-mode .lang-mobile-submenu .lang-option:hover {
    background: rgba(30, 41, 59, 0.1);
    color: #1e293b;
}

/* Responsive: Hide desktop language selector on mobile */
@media (max-width: 768px) {
    .language-switcher {
        display: none !important;
    }

    .lang-selector-mobile {
        display: block;
    }
}

@media (min-width: 769px) {
    .language-switcher {
        display: flex !important;
    }

    .lang-selector-mobile {
        display: none;
    }
}