/* Language switcher — theme-green (#181a29 / #FF5E14) */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--body-font, inherit);
    z-index: 99;
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    line-height: 1;
}

.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle {
    border-color: var(--theme-color2, #ff5e14);
    background: rgba(255, 94, 20, 0.12);
    box-shadow: 0 4px 16px rgba(255, 94, 20, 0.2);
}

.lang-switcher__toggle:focus-visible {
    outline: 2px solid var(--theme-color2, #ff5e14);
    outline-offset: 2px;
}

.lang-switcher__flag {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.lang-switcher__code {
    text-transform: uppercase;
}

.lang-switcher__chevron {
    font-size: 10px;
    opacity: 0.75;
    transition: transform 0.25s ease;
}

.lang-switcher.is-open .lang-switcher__chevron {
    transform: rotate(180deg);
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(24, 26, 41, 0.18);
    border: 1px solid rgba(24, 26, 41, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

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

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--title-color, #181a29);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher__option:hover {
    background: rgba(255, 94, 20, 0.08);
    color: var(--theme-color2, #ff5e14);
}

.lang-switcher__option.is-active {
    background: rgba(24, 26, 41, 0.06);
    font-weight: 600;
}

.lang-switcher__option .lang-switcher__flag {
    width: 24px;
    height: 17px;
}

.lang-switcher__label {
    flex: 1;
}

.lang-switcher__check {
    font-size: 12px;
    color: var(--theme-color2, #ff5e14);
    opacity: 0;
}

.lang-switcher__option.is-active .lang-switcher__check {
    opacity: 1;
}

/* Mobile menu variant */
.lang-switcher--mobile {
    display: flex;
    justify-content: center;
    padding: 20px 24px 8px;
    width: 100%;
}

.lang-switcher--mobile .lang-switcher__toggle {
    border-color: rgba(24, 26, 41, 0.15);
    background: #f5f5f5;
    color: var(--title-color, #181a29);
    min-width: 200px;
    justify-content: center;
}

.lang-switcher--mobile .lang-switcher__toggle:hover,
.lang-switcher--mobile.lang-switcher.is-open .lang-switcher__toggle {
    border-color: var(--theme-color2, #ff5e14);
    background: rgba(255, 94, 20, 0.08);
}

.lang-switcher--mobile .lang-switcher__menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-6px);
}

.lang-switcher--mobile.is-open .lang-switcher__menu {
    transform: translateX(-50%) translateY(0);
}

.header-button .lang-switcher {
    margin-right: 4px;
}

/* Beyaz header içinde dil seçici */
.header-layout2 .lang-switcher__toggle {
    border-color: rgba(24, 26, 41, 0.14);
    background: #f5f5f5;
    color: #181a29;
}

.header-layout2 .lang-switcher__toggle:hover,
.header-layout2 .lang-switcher.is-open .lang-switcher__toggle {
    border-color: var(--theme-color2, #ff5e14);
    background: rgba(255, 94, 20, 0.1);
    box-shadow: 0 4px 14px rgba(255, 94, 20, 0.15);
}

.header-layout2 .lang-switcher__chevron {
    color: #181a29;
}

@media (max-width: 575px) {
    .lang-switcher__toggle {
        padding: 8px 11px;
        min-height: 40px;
        gap: 6px;
    }

    .lang-switcher__code {
        display: none;
    }

    .lang-switcher__flag {
        width: 24px;
        height: 17px;
    }
}

@media (max-width: 1199px) {
    .header-layout2 .header-button {
        gap: 10px;
    }
}
