/* static/css/components/language-switcher.css */

.lang-switcher {
    position: relative;
    margin-bottom: 14px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #e6e8ee;
    border-radius: 999px;
    padding: 0px 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.lang-btn .flag { font-size: 18px; }
.lang-btn .label { font-size: 14px; }
.lang-btn .chevron { font-size: 12px; color: #6b7280; }

.lang-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    background: #fff;
    min-width: 220px;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    padding: 6px;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    display: none;
    z-index: 1000;
}

.lang-menu.show { display: block; }
.lang-menu li { margin: 0; }

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit !important;
    font-weight: 500;
}

.lang-item:hover { background: #f6f6ff; }
.lang-item .flag { font-size: 18px; }

.chevron { transition: transform 0.3s ease; }
.lang-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.lang-btn:focus,
.lang-btn:active,
.lang-btn:focus-visible { outline: none !important; box-shadow: none !important; }

.lang-item:focus,
.lang-item:active,
.lang-item:focus-visible { outline: none !important; box-shadow: none !important; }

.current-check {
    margin-left: auto;
    font-size: 16px;
}

@media (max-width: 992px) {
    .lang-switcher {
        margin-left: 0;
        margin-bottom: 30px;
    }
}
