/**
 * Language Switcher Styles - Premium Pill Toggle Design
 * joker&omda Store - Bilingual System
 */

/* Language Switcher Container - Pill Style */
.language-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.95);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 3px;
    gap: 0;
    /* backdrop-filter removed */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Language Button - Pill Style */
.lang-btn {
    padding: 8px 18px;
    background: transparent;
    color: rgba(212, 175, 55, 0.7);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 45px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Hover State - Inactive Button */
.lang-btn:not(.active):hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

/* Active State - Selected Language */
.lang-btn.active {
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1);
}

/* Active Button Hover */
.lang-btn.active:hover {
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* RTL Support */
[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .language-switcher {
        padding: 2px;
    }

    .lang-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        min-width: 40px;
    }
}

/* Smooth Animation */
@keyframes langSwitch {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.lang-btn.active {
    animation: langSwitch 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus State for Accessibility */
.lang-btn:focus {
    outline: 2px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

.lang-btn:focus:not(:focus-visible) {
    outline: none;
}