/* Language Selector Dropdown Styles */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #e31b23;
    border: 1px solid #e31b23;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-btn:hover {
    background: #c9161d;
    border-color: #c9161d;
    color: #fff;
}

.language-flag {
    font-size: 14px;
}

.language-text {
    font-size: 12px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

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

.language-option:hover {
    background: #f8f9fa;
    color: #007bff;
}

.language-option .flag {
    font-size: 16px;
}

.language-option span:last-child {
    font-size: 14px;
    font-weight: 500;
}

/* RTL Support */
.rtl .language-btn {
    flex-direction: row-reverse;
}

.rtl .language-dropdown {
    right: auto;
    left: 0;
}

.rtl .language-option {
    flex-direction: row-reverse;
}

/* Dark theme support */
.dark-theme .language-btn {
    background: #e31b23;
    border-color: #e31b23;
    color: #fff;
}

.dark-theme .language-btn:hover {
    background: #c9161d;
    border-color: #c9161d;
}

.dark-theme .language-dropdown {
    background: #2c3e50;
    border-color: #34495e;
}

.dark-theme .language-option {
    color: #ecf0f1;
    border-bottom-color: #34495e;
}

.dark-theme .language-option:hover {
    background: #34495e;
    color: #3498db;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .language-btn {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .language-text {
        display: none;
    }
    
    .language-dropdown {
        min-width: 120px;
    }
    
    .language-option {
        padding: 10px 12px;
    }
}
