/**
 * Language Selector Component Styles
 */

.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-selector-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.language-selector-btn svg {
    width: 16px;
    height: 16px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

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

.language-option {
    padding: 12px 16px;
    cursor: pointer;
    color: #1f2937;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f9fafb;
}

.language-option.active {
    background: #E7F1F7;
    color: #4A9B8E;
    font-weight: 600;
}

.language-option.active::after {
    content: '✓';
    margin-left: 8px;
}

/* Dark header variant */
header .language-selector-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

header .language-selector-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-dropdown {
        right: auto;
        left: 0;
        max-width: 90vw;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .language-option {
    text-align: right;
}
