/* Language Switcher Styles - Modern Design */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lang-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-lang {
    font-size: 14px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.language-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu - Modern Glass Effect */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #061153;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
}

.lang-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    transform: scaleY(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-option:hover::before {
    transform: scaleY(1);
}

.lang-option:hover {
    background: rgba(255, 107, 53, 0.08);
    padding-left: 22px;
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(6, 17, 83, 0.1) 0%, rgba(10, 26, 122, 0.1) 100%);
    color: #061153;
    font-weight: 600;
}

.lang-option.active::before {
    transform: scaleY(1);
}

.lang-option .lang-name {
    flex: 1;
}

.lang-check {
    font-size: 14px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #FF6B35;
}

.lang-option.active .lang-check {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 10px;
    }

    .lang-switcher-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }

    .lang-icon {
        font-size: 14px;
    }

    .current-lang {
        font-size: 13px;
    }

    .lang-dropdown {
        min-width: 160px;
    }

    .lang-option {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Dark header compatibility */
.tv-header .language-switcher .lang-switcher-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.tv-header .language-switcher .lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Light background compatibility */
.bg-light .language-switcher .lang-switcher-btn {
    background: rgba(6, 17, 83, 0.05);
    border-color: rgba(6, 17, 83, 0.1);
    color: #061153;
}

.bg-light .language-switcher .lang-switcher-btn:hover {
    background: rgba(6, 17, 83, 0.1);
    border-color: rgba(6, 17, 83, 0.15);
}
