/* Переключатель языка - Dropdown стиль */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

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

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 150px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.lang-option:last-child {
    border-radius: 0 0 7px 7px;
}

.lang-option:hover {
    background: rgba(234, 103, 103, 0.1);
    color: #ea6767;
}

.lang-option.active {
    background: rgba(234, 103, 103, 0.2);
    color: #ea6767;
    font-weight: 600;
}

/* Inline стиль - флажки в ряд */
.language-switcher-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}

.lang-flag:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-flag.active {
    opacity: 1;
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Header интеграция */
.header .language-switcher,
.header .language-switcher-inline {
    margin-left: 16px;
}

/* Светлая тема */
.light-theme .lang-dropdown {
    background: #ffffff;
    border-color: #e2e8f0;
}

.light-theme .lang-option {
    color: #334155;
}

.light-theme .lang-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.light-theme .lang-option.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Mobile */
@media (max-width: 768px) {
    .lang-dropdown {
        right: auto;
        left: 0;
    }

    .lang-current {
        padding: 6px 10px;
        font-size: 13px;
    }

    .lang-flag {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}
