/* Language Switcher - shared component */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-switcher-btn:hover {
    color: #334155;
    background: #f1f5f9;
    text-decoration: none;
}

.lang-switcher-btn.active {
    background: #5aa469;
    color: #fff;
    box-shadow: 0 2px 6px rgba(90, 164, 105, 0.35);
}

.lang-switcher-btn.active:hover {
    background: #4d9360;
    color: #fff;
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-label {
    line-height: 1;
}

/* Header variant */
.lang-switcher.header {
    margin-right: 1rem;
}

[dir="rtl"] .lang-switcher.header {
    margin-right: 0;
    margin-left: 1rem;
}

/* Login variant */
.login-lang-bar {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
}

[dir="rtl"] .login-lang-bar {
    right: auto;
    left: 1.25rem;
}

.lang-switcher.login {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.lang-switcher.login .lang-switcher-btn {
    color: #2d6a3e;
    font-weight: 600;
}

.lang-switcher.login .lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #1e5630;
}

.lang-switcher.login .lang-switcher-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #2d6a3e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-switcher.login .lang-switcher-btn.active:hover {
    color: #1e5630;
}

@media (max-width: 480px) {
    .lang-switcher-btn .lang-label {
        display: none;
    }

    .lang-switcher-btn {
        padding: 8px 10px;
    }

    .login-lang-bar {
        top: 0.75rem;
        right: 0.75rem;
    }

    [dir="rtl"] .login-lang-bar {
        right: auto;
        left: 0.75rem;
    }
}
