/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    bottom: 160px;
    right: 20px;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
}

.language-switcher-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.language-switcher-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.current-language {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.flag-icon {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.flag-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.language-code {
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-dropdown {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 15px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 8px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #D4AF37;
    text-decoration: none;
    transform: translateX(-3px);
}

.language-option.active {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
}

.language-option .flag-icon {
    width: 24px;
    height: 18px;
}

.language-name {
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher {
        right: 15px;
        bottom: 140px;
        padding: 8px 6px;
    }
    
    .language-dropdown {
        right: 0;
        bottom: 100%;
        top: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .flag-icon {
        width: 28px;
        height: 21px;
    }
    
    .language-option .flag-icon {
        width: 20px;
        height: 15px;
    }
}

/* RTL Support for Arabic */
.rtl .language-switcher {
    right: auto;
    left: 20px;
}

.rtl .language-dropdown {
    right: auto;
    left: 100%;
    margin-right: 0;
    margin-left: 15px;
}

.rtl .language-switcher:hover .language-dropdown {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .rtl .language-switcher {
        left: 15px;
        right: auto;
        bottom: 140px;
    }
    
    .rtl .language-dropdown {
        left: 0;
        right: auto;
        bottom: 100%;
        top: auto;
        margin-bottom: 10px;
    }
}

/* Animation for language switch */
.language-switch-animation {
    animation: languageSwitch 0.5s ease-in-out;
}

@keyframes languageSwitch {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
