/* ═══ Site geneli özel seçici (js/ma-secici.js) ═══
   Yerel <select> açılır listesi işletim sistemine göre kare, mavi vurgulu ve sitenin fontu/renginden kopuk görünüyordu.
   Tetik, yerel seçicinin sınıflarını taşır (görünümü aynı kalır); açılan liste sistem fontu + vurgu rengiyle çizilir.
   UI/UX kuralları: seçenek ≥44px dokunma/tıklama yüksekliği, görünür odak, açılış 160–180ms ease-out / kapanış 120ms,
   hareket azaltma tercihinde geçiş yok, metin kontrastı ≥4.5:1 (seçili işaret --accent-metin). */

.ma-secici { position: relative; min-width: 0; }
.ma-secici-tetik { position: relative; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.ma-secici-deger { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Tüm tetiklerde aynı ince ok (liste açıkken döner); kutunun kendi arka plan oku kapatılır */
.ma-secici-tetik { padding-right: 28px !important; background-image: none !important; }
.ma-secici-tetik.form-select { padding-right: 2.25rem !important; }
.ma-secici-tetik::after {
    position: absolute; top: 50%; right: 2px; width: 12px; height: 8px; margin-top: -4px; content: '';
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform .2s cubic-bezier(.2, .7, .1, 1);
}
.ma-secici-tetik.form-select::after { right: 14px; }
.ma-secici-tetik[aria-expanded="true"]::after { transform: rotate(180deg); }
.ma-secici-tetik.is-bos .ma-secici-deger { color: rgba(0, 0, 0, .45); }
.ma-secici-tetik[aria-disabled="true"] { cursor: not-allowed; opacity: .5; }
.ma-secici-tetik:focus { outline: none; }
.ma-secici-tetik:focus-visible:not(.fb-girdi):not(.form-select) { outline: 2px solid var(--accent-metin, var(--accent, #0071e3)); outline-offset: 2px; }
.ma-secici-tetik.is-hatali { box-shadow: 0 0 0 2px #b42318; }
/* Gerçek <select>: görünmez ama yerinde (form gönderimi, doğrulama baloncuğu tetiğin üstünde çıkar) */
.ma-secici-yerel { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0 !important; pointer-events: none !important; }

/* Açılan liste (body'ye eklenir: kesen/maskeli kapsayıcılarda kırpılmaz) */
.ma-secici-liste {
    position: fixed; z-index: 1085; box-sizing: border-box; margin: 0; padding: 6px; list-style: none;
    max-height: min(320px, 55vh); overflow-y: auto; overscroll-behavior: contain;
    background: #fff; color: #111; border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 18px 40px -12px rgba(17, 17, 17, .28), 0 4px 12px -6px rgba(17, 17, 17, .12);
    font-family: var(--font-govde, inherit); font-size: 15px; font-weight: 400; line-height: 1.35; letter-spacing: 0; text-transform: none;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-4px) scale(.985); transform-origin: top center;
    transition: opacity .12s ease-in, transform .12s ease-in, visibility 0s .12s;
}
.ma-secici-liste.is-ust { transform: translateY(4px) scale(.985); transform-origin: bottom center; }
.ma-secici-liste.is-acik {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity .16s ease-out, transform .18s cubic-bezier(.2, .7, .1, 1), visibility 0s;
}
.ma-secici-secenek {
    position: relative; display: flex; align-items: center; min-height: 44px; padding: 10px 42px 10px 14px;
    border-radius: 10px; cursor: pointer; scroll-margin: 6px; transition: background-color .12s;
}
.ma-secici-secenek + .ma-secici-secenek { margin-top: 2px; }
.ma-secici-secenek.is-bos { color: rgba(17, 17, 17, .55); }
.ma-secici-secenek.is-etkin { background: color-mix(in srgb, var(--accent, #0071e3) 16%, #fff); color: #111; }
.ma-secici-secenek[aria-selected="true"] { font-weight: 600; }
.ma-secici-secenek[aria-selected="true"]::after {
    position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; margin-top: -8px; content: '';
    background: var(--accent-metin, var(--accent, #0071e3));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ma-secici-secenek[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.ma-secici-liste::-webkit-scrollbar { width: 10px; }
.ma-secici-liste::-webkit-scrollbar-thumb { border: 3px solid #fff; border-radius: 10px; background: rgba(17, 17, 17, .18); }

/* Dokunmatik cihazlarda yerel seçici kalır: yalnız kutu görünümü (ok) tutarlı olsun */
@media (hover: none), (pointer: coarse) {
    select.fb-girdi { font-size: 16px; }   /* iOS yakınlaştırmasını önler */
}

@media (prefers-reduced-motion: reduce) {
    .ma-secici-liste, .ma-secici-liste.is-acik, .ma-secici-secenek, .ma-secici-tetik::after { transition: none; }
}
