/* ATAK premium açılır liste (v15.105) — select.atak-sec
   JS yoksa / dokunmatikte: yerel select, premium ok + iç boşluk.
   JS + fare/klavye: .atak-sec-wrap içinde role=combobox tetik + role=listbox panel; asıl select gizli, değeri senkron. */

:root{--as-bg:rgba(11,15,13,.9);--as-bg-focus:rgba(11,15,13,.98);--as-panel:#0b0f0d;--as-panel-2:#101612;--as-line:rgba(194,167,109,.22);--as-line-ok:rgba(194,167,109,.36);--as-gold:#c2a76d;--as-gold-soft:rgba(194,167,109,.12);--as-text:#f5f2ea;--as-muted:rgba(245,242,234,.56);--as-red:#c25a4f;--as-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c2a76d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E")}
html[data-theme="light"]{--as-bg:rgba(255,255,255,.86);--as-bg-focus:#fff;--as-panel:#fbfaf6;--as-panel-2:#f3efe4;--as-line:rgba(16,20,17,.16);--as-line-ok:rgba(138,109,47,.42);--as-gold:#8a6d2f;--as-gold-soft:rgba(138,109,47,.1);--as-text:#101411;--as-muted:rgba(16,20,17,.55);--as-red:#a3392f;--as-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a6d2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E")}

/* 1) Yerel select (JS yok / dokunmatik): ok içeride, iç boşluk metin kutularıyla aynı */
html body select.atak-sec{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0 50px 0 14px;background-color:var(--as-bg);background-image:var(--as-arrow);background-repeat:no-repeat;background-position:right 20px center;background-size:16px 16px;text-overflow:ellipsis;cursor:pointer;line-height:1.2;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}
html body select.atak-sec:hover{border-color:var(--as-line-ok)}
html body select.atak-sec:focus{border-color:var(--as-gold);background-color:var(--as-bg-focus);box-shadow:0 0 0 3px var(--as-gold-soft)}
html body select.atak-sec::-ms-expand{display:none}

/* 2) Geliştirilmiş bileşen */
html body .atak-sec-wrap{position:relative;display:block;width:100%;min-width:0}
html body .atak-sec-wrap.is-open{z-index:40}
html body .atak-sec-wrap > select.atak-sec{position:absolute;left:0;top:0;width:100%;height:50px;min-height:0;opacity:0;pointer-events:none;margin:0;z-index:0}

html body .atak-sec__btn{position:relative;z-index:1;display:flex;align-items:center;gap:12px;width:100%;min-height:50px;padding:0 50px 0 14px;border:1px solid var(--as-line);background:var(--as-bg);color:var(--as-text);font:500 14px/1.25 var(--font-body,'Inter',sans-serif);text-align:left;cursor:pointer;user-select:none;-webkit-user-select:none;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}
html body .atak-sec__btn:hover{border-color:var(--as-line-ok)}
html body .atak-sec__btn:focus{outline:none}
html body .atak-sec__btn:focus-visible{outline:2px solid var(--berpel-focus-ring,var(--as-gold));outline-offset:3px}
html body .atak-sec-wrap.is-open .atak-sec__btn,html body .atak-sec__btn:focus{border-color:var(--as-gold);background:var(--as-bg-focus);box-shadow:0 0 0 3px var(--as-gold-soft)}
html body .atak-sec-wrap.has-value .atak-sec__btn{border-color:var(--as-line-ok)}
html body .atak-sec-wrap.has-value .atak-sec__btn:focus,html body .atak-sec-wrap.has-value.is-open .atak-sec__btn{border-color:var(--as-gold)}
html body .atak-sec__deger{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html body .atak-sec-wrap:not(.has-value) .atak-sec__deger{color:var(--as-muted)}
html body .atak-sec__ok{position:absolute;right:20px;top:50%;width:16px;height:16px;margin-top:-8px;color:var(--as-gold);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
html body .atak-sec__ok svg{display:block;width:16px;height:16px}
html body .atak-sec-wrap.is-open .atak-sec__ok{transform:rotate(180deg)}

/* Panel */
html body .atak-sec__panel{position:absolute;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;max-height:min(340px,60vh);overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(180deg,var(--as-panel-2),var(--as-panel));border:1px solid rgba(194,167,109,.42);box-shadow:0 22px 60px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.4),inset 0 1px 0 rgba(245,242,234,.04);opacity:0;visibility:hidden;transform:translateY(-6px) scale(.985);transform-origin:top center;transition:opacity .16s ease,transform .2s cubic-bezier(.2,.8,.2,1),visibility 0s linear .2s;scrollbar-width:thin;scrollbar-color:rgba(194,167,109,.4) transparent}
html body .atak-sec__panel::before{content:"";position:absolute;left:-1px;top:-1px;width:14px;height:14px;border-left:2px solid var(--as-gold);border-top:2px solid var(--as-gold);pointer-events:none}
html body .atak-sec__panel::after{content:"";position:absolute;right:-1px;bottom:-1px;width:14px;height:14px;border-right:2px solid var(--as-gold);border-bottom:2px solid var(--as-gold);pointer-events:none}
html body .atak-sec-wrap.is-up .atak-sec__panel{top:auto;bottom:calc(100% + 6px);transform-origin:bottom center;transform:translateY(6px) scale(.985)}
html body .atak-sec-wrap.is-open .atak-sec__panel{opacity:1;visibility:visible;transform:none;transition:opacity .16s ease,transform .2s cubic-bezier(.2,.8,.2,1),visibility 0s}
html[data-theme="light"] body .atak-sec__panel{border-color:rgba(138,109,47,.45);box-shadow:0 20px 50px rgba(16,20,17,.16),0 0 0 1px rgba(16,20,17,.04)}

html body .atak-sec__opt{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 40px 10px 14px;margin:0;color:var(--as-text);font:500 14px/1.35 var(--font-body,'Inter',sans-serif);cursor:pointer;border-left:2px solid transparent;transition:background-color .12s ease,border-color .12s ease,color .12s ease}
html body .atak-sec__opt + .atak-sec__opt{margin-top:2px}
html body .atak-sec__opt.is-active{background:var(--as-gold-soft);border-left-color:var(--as-gold)}
html body .atak-sec__opt[aria-selected="true"]{color:var(--as-gold);font-weight:600}
html body .atak-sec__opt .atak-sec__tik{position:absolute;right:14px;top:50%;width:16px;height:16px;margin-top:-8px;color:var(--as-gold);opacity:0;transform:scale(.6);transition:opacity .15s ease,transform .18s ease}
html body .atak-sec__opt[aria-selected="true"] .atak-sec__tik{opacity:1;transform:none}
html body .atak-sec__opt .atak-sec__tik svg{display:block;width:16px;height:16px}
html body .atak-sec__opt[aria-disabled="true"]{opacity:.45;cursor:not-allowed}

/* Doğrulama */
html body .atak-sec-wrap.is-invalid .atak-sec__btn{border-color:var(--as-red);box-shadow:0 0 0 3px rgba(194,90,79,.14)}
/* Hata metni ekran okuyucu için (görsel uyarıyı tarayıcı balonu + kırmızı çerçeve veriyor; çift mesaj olmasın) */
html body .atak-sec__hata{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

@media (max-width:560px){
  html body select.atak-sec{background-position:right 16px center;padding-right:44px}
  html body .atak-sec__btn{padding-right:44px}
  html body .atak-sec__ok{right:16px}
  html body .atak-sec__panel{max-height:min(300px,55vh)}
}
@media (max-width:400px){
  html body select.atak-sec{background-position:right 14px center;padding-right:38px}
  html body .atak-sec__btn{padding-right:38px}
  html body .atak-sec__ok{right:14px}
}
@media (max-width:360px){
  html body select.atak-sec,html body .atak-sec__btn{font-size:13px;padding-right:30px;background-position:right 10px center}
  html body .atak-sec__ok{right:10px}
}
@media (max-width:340px){
  html body select.atak-sec,html body .atak-sec__btn{font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){
  html body .atak-sec__btn,html body .atak-sec__ok,html body .atak-sec__panel,html body .atak-sec__opt,html body .atak-sec__tik,html body select.atak-sec{transition:none !important}
  html body .atak-sec__panel,html body .atak-sec-wrap.is-up .atak-sec__panel{transform:none !important}
}
