/* Language Switcher Styles */
.language-switch-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.language-switch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0;
}

.language-switch:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.language-switch.ar {
    background-color: var(--primary-dark);
}

.language-switch.ar:hover {
    background-color: var(--primary-color);
}

/* Ripple effect */
.language-switch .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switch-wrapper {
        top: 10px;
        left: 10px;
    }
    
    .language-switch {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

/* RTL Support */
[dir="rtl"] .language-switch-wrapper {
    left: auto;
    right: 20px;
}

[dir="rtl"] .language-switch {
    transform-origin: center;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .language-switch {
        transition: none;
    }
    
    .ripple {
        display: none;
    }
} 

/* User Profile Dropdown Language Switch */
.dropdown-language-switch {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-color);
    font-family: inherit;
    font-size: inherit;
}

.dropdown-language-switch:hover {
    background-color: var(--hover-color);
}

.dropdown-language-switch i {
    margin-right: 10px;
    color: var(--primary-color);
}

[dir="rtl"] .dropdown-language-switch i {
    margin-right: 0;
    margin-left: 10px;
}

/* Drawer Language Switch */
.drawer-language-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: var(--text-color);
    text-decoration: none;
}

.drawer-language-switch i {
    margin-right: 10px;
    font-size: 16px;
    color: var(--primary-color);
}

.drawer-language-switch span {
    font-size: 14px;
}

[dir="rtl"] .drawer-language-switch i {
    margin-right: 0;
    margin-left: 10px;
}