/**
 * Language Switcher Styling
 */

.language-switcher {
    position: relative;
    z-index: 100; /* Normal z-index */
}

.language-toggle {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.language-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.flag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.language-dropdown {
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 0.5rem !important;
    width: 12rem !important;
    background-color: white !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    z-index: 50 !important;
    overflow: hidden !important;
    display: none !important; /* Hide by default */
}

/* Show dropdown when language switcher has "open" class - with higher specificity */
.language-switcher.open .language-dropdown,
.language-switcher.open > .language-dropdown,
body .language-switcher.open .language-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.language-dropdown a {
    padding: 0.5rem 1rem;
    display: flex !important;
    align-items: center !important;
    color: #4b5563;
    transition: background-color 0.2s;
    font-size: 0.875rem;
    text-decoration: none;
}

.language-dropdown a:hover {
    background-color: #f3f4f6;
}

.language-dropdown a.active {
    background-color: #f3f4f6;
    font-weight: 500;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
    }
    
    .language-toggle {
        padding: 0.25rem 0.5rem;
    }
    
    .language-dropdown {
        width: 11rem !important;
    }
} 