/* Language Selector Styles - Bright Luxury Theme */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: var(--color-gold);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(201, 169, 97, 0.15);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
}

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

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(250, 250, 248, 0.98);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(42, 42, 42, 0.1);
    backdrop-filter: blur(10px);
}

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

.language-option {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--color-text-dark);
    font-family: 'Tajawal', "Cormorant Garamond", serif;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

.language-option:hover {
    background: rgba(201, 169, 97, 0.1);
    color: var(--color-gold);
    padding-left: 25px;
}

.language-option.active {
    background: rgba(201, 169, 97, 0.15);
    color: var(--color-gold);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }

    .language-btn {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown {
        position: static;
        width: 100%;
        margin-top: 10px;
        transform: none;
    }

    .language-dropdown.active {
        transform: none;
    }
}

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

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

[dir="rtl"] .language-option:hover {
    padding-left: 20px;
    padding-right: 25px;
}