/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: white;
    border: 2px solid #d4af37;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
}

.lang-current:hover {
    background: #f9f9f9;
    border-color: #c41e3a;
}

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

.lang-current .arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.language-switcher.active .arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 2px solid #d4af37;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

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

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

.lang-option:first-child {
    border-radius: 13px 13px 0 0;
}

.lang-option:last-child {
    border-bottom: none;
    border-radius: 0 0 13px 13px;
}

.lang-option:hover {
    background: #f9f9f9;
    color: #c41e3a;
}

.lang-option img {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

/* RTL Support for Arabic */
html[lang="ar"] {
    direction: rtl;
}

html[lang="ar"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lang-current {
        padding: 6px 12px;
        font-size: 12px;
    }

    .lang-current img {
        width: 18px;
        height: 13px;
    }

    .lang-dropdown {
        min-width: 150px;
    }
}