/* =========================================================
   Grillandia — Nyelvválasztó dropdown (prototípus)
   Kontextusérzékeny nyelvváltó: a hreflang linkek alapján
   mindig a megfelelő aloldalra navigál a kiválasztott nyelven.
   ========================================================= */

.lang-switcher {
    position: relative;
    display: inline-block;
    font-family: inherit;
    vertical-align: middle;
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 2px 0;
    line-height: 1;
}

.lang-switcher__toggle .lang-switcher__flag {
    font-size: 15px;
    line-height: 1;
}

.lang-switcher__toggle .lang-switcher__chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    opacity: 0.75;
}

.lang-switcher.is-open .lang-switcher__toggle .lang-switcher__chevron {
    transform: rotate(225deg) translateY(-1px);
}

.lang-switcher__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 999;
}

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

.lang-switcher__option,
.lang-switcher__option:link,
.lang-switcher__option:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    color: #1a1d21 !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.12s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus {
    background: #f2f4f3;
    color: #1a1d21 !important;
    text-decoration: none;
}

.lang-switcher__option .lang-switcher__flag {
    font-size: 16px;
    line-height: 1;
}

.lang-switcher__option .lang-switcher__code {
    flex: 1;
}

@media (max-width: 767px) {
    .lang-switcher__panel {
        right: auto;
        left: 0;
    }
}
