/* Dil seçici butonu */
.lang-switcher { display: inline-flex; }
.lang-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .65rem;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}
.lang-switcher-toggle .fa-globe { font-size: .75rem; opacity: .75; }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-switcher--compact { margin-bottom: .75rem; }
.lang-switcher--menu { margin-top: .5rem; }
.menu-header .lang-switcher-toggle {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.25);
    color: #fff;
}
.header-actions .lang-switcher { margin-right: .5rem; }

/* Dil seçici modal */
.lang-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.lang-picker-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
body.lang-modal-open { overflow: hidden; }

.lang-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lang-picker-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: min(85dvh, 520px);
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    animation: langSheetUp .28s ease-out;
}
@media (min-width: 520px) {
    .lang-picker-modal {
        align-items: center;
        padding: 1rem;
    }
    .lang-picker-sheet {
        border-radius: 20px;
        max-height: min(80vh, 480px);
        animation: langSheetCenter .25s ease-out;
    }
}
@keyframes langSheetUp {
    from { transform: translateY(100%); opacity: .9; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes langSheetCenter {
    from { transform: scale(.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lang-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.1rem 1.15rem .75rem;
    border-bottom: 1px solid #f1f5f9;
}
.lang-picker-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.lang-picker-head h2 i { color: var(--primary, #e85d04); }
.lang-picker-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lang-picker-list {
    list-style: none;
    margin: 0;
    padding: .5rem .75rem calc(.75rem + env(safe-area-inset-bottom, 0));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.lang-picker-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem .75rem;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: background .15s;
}
.lang-picker-option:hover,
.lang-picker-option:focus {
    background: #f8fafc;
}
.lang-picker-option.active {
    background: rgba(232, 93, 4, .1);
    color: #c44d03;
}
.lang-picker-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}
.lang-picker-label strong {
    font-size: .95rem;
    font-weight: 600;
}
.lang-picker-label small {
    font-size: .72rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: .04em;
}
.lang-picker-option.active .lang-picker-label small { color: #ea580c; }
.lang-picker-check {
    color: var(--primary, #e85d04);
    font-size: .95rem;
    flex-shrink: 0;
}

[dir="rtl"] .lang-picker-head {
    flex-direction: row-reverse;
}
[dir="rtl"] .lang-picker-option {
    flex-direction: row-reverse;
    text-align: right;
}
[dir="rtl"] .lang-picker-label {
    align-items: flex-end;
}
