/* ============================================================
   BUTONLAR — "yumuşak" tarz · assets/css/butonlar.css

   Sitedeki butonların ORTAK davranışı: yuvarlak köşe, hafif dolgu,
   üstüne gelince kalkma + gölge, basınca küçülme; ikili/çoklu
   seçiciler tek kapsül içinde durur.

   Bu dosya her sayfada EN SON yüklenir ve yalnız biçim katmanıdır:
   renkleri (seçili/pasif/tema) asıl stil dosyaları belirler, burası
   onlara dokunmaz. Geri almak için sayfalardaki <link> satırını
   kaldırmak yeterlidir.

   Yeni bir buton sınıfı eklersen ilgili gruba buraya da ekle.
   ============================================================ */
:root{
  --bt-r:10px;                 /* buton köşesi */
  --bt-r-ic:8px;               /* kapsül içindeki parça köşesi */
  --bt-dolgu:color-mix(in srgb,var(--gold) 8%,transparent);
  --bt-golge:0 8px 18px rgba(0,0,0,.28);
  --bt-gecis:transform .16s cubic-bezier(.16,1,.3,1),box-shadow .16s,background-color .16s,border-color .16s,color .16s,filter .16s;
}
html:is([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]){--bt-golge:0 8px 18px rgba(60,40,20,.16)}

/* ── A · tekil butonlar: köşe + dolgu + kalkma ─────────────────── */
.ls-dg,.sp-rs,.sp-bs,.sp-rk__b,.sp-btn,.sp-yb,.tm__b,.guncB,
.ml__temizle,.ml__daha,.ittifak__daha,.ittifak__sekme,.cetvel__sekme,
.lg-afis__dugme,.sz__uygula,.ss__uygula,.png-btn{
  border-radius:var(--bt-r);transition:var(--bt-gecis);
}
.pd-sec button,.sp-ec__sirala button{border-radius:var(--bt-r);transition:var(--bt-gecis)}
.ls-dg,.sp-rs,.sp-bs,.sp-rk__b,.ml__temizle{background-color:var(--bt-dolgu)}
.pd-sec button,.sp-ec__sirala button{background-color:var(--bt-dolgu)}

.ls-dg:hover:not(:disabled),.sp-rs:hover:not(:disabled),.sp-bs:hover:not(:disabled),.sp-rk__b:hover,.sp-btn:hover,.tm__b:hover,.guncB:hover:not(:disabled),.ml__temizle:hover,.ml__daha:hover,.ittifak__daha:hover,
.pd-sec button:hover,.sp-ec__sirala button:hover,.lg-afis__dugme:hover,.sz__uygula:hover,.ss__uygula:hover{
  transform:translateY(-2px);box-shadow:var(--bt-golge);
}
.ls-dg:active:not(:disabled),.sp-rs:active:not(:disabled),.sp-bs:active:not(:disabled),.sp-rk__b:active,.sp-btn:active,.tm__b:active,.guncB:active:not(:disabled),.ml__temizle:active,.ml__daha:active,.ittifak__daha:active,
.pd-sec button:active,.sp-ec__sirala button:active,.lg-afis__dugme:active,.sz__uygula:active,.ss__uygula:active,
.lg-ara__git:active,.ara__git:active,.ustara__git:active{
  transform:translateY(0) scale(.97);box-shadow:none;
}
/* seçili hâl: altta vurgu çizgisi (renkleri asıl dosyalar verir) */
.ls-dg.is-ac,.sp-rs.is-ac,.sp-bs.is-ac,.sp-rk__b.is-ac,.sp-ec__sirala button.is-ac,.ls-acilir__d[aria-expanded="true"]{
  box-shadow:inset 0 -2px 0 var(--gold);
}
/* açılır liste (sunucu seçimi): kutu ve seçenekler de yuvarlak */
.ls-acilir__l{border-radius:var(--bt-r);padding:4px}
.ls-acilir__o{border-radius:var(--bt-r-ic);border-bottom:0}
.sp-sel select{border-radius:var(--bt-r-ic)}

/* ── B · ana (dolu) butonlar: yumuşak vurgu gölgesi ────────────── */
.lg-ara__git,.ara__git,.ustara__git{border-radius:var(--bt-r-ic);transition:var(--bt-gecis)}

.sp-btn:hover,.sp-btn:focus-visible{box-shadow:0 8px 18px color-mix(in srgb,var(--gold) 34%,transparent)}

/* ── C · seçiciler: tek kapsül, içinde kayan parça ─────────────── */
.sp-mod,.lg-ctl__dil,.ctl__dil,.dl{
  padding:3px;gap:3px;border-radius:calc(var(--bt-r) + 2px);
  background-color:color-mix(in srgb,var(--ink) 6%,transparent);
}
.sp-mod button,.lg-ctl__b,.ctl__b,.dl__b{border-radius:var(--bt-r-ic);transition:var(--bt-gecis)}
.sp-mod button+button{border-left:0}
.dl__b + .dl__b{border-left:0}
.sp-mod button.is-ac,.lg-ctl__b[aria-pressed="true"],.ctl__b[aria-pressed="true"],.dl__b[aria-pressed="true"]{
  box-shadow:0 2px 8px color-mix(in srgb,var(--gold) 38%,transparent);
}
/* sayfa içi sekmeler (Kademe listesi / İstatistikler …) */
.ls-sekme a{border-radius:var(--bt-r);transition:var(--bt-gecis);background-color:var(--bt-dolgu)}
.ls-sekme a:hover{transform:translateY(-2px);box-shadow:var(--bt-golge)}
.ls-sekme a[aria-current="page"]{box-shadow:0 6px 16px color-mix(in srgb,var(--gold) 30%,transparent)}
/* ana sayfa sahne sekmeleri: şerit kalır, parçalar yuvarlanır */
.os-seg{gap:4px;padding:4px}
.os-seg button{border-right:0;border-radius:var(--bt-r-ic);transition:var(--bt-gecis)}
.os-seg button i{left:8px;right:8px;border-radius:2px}

/* ── D · üst menü öğeleri ──────────────────────────────────────── */
.lg-menu__b{border-radius:var(--bt-r)}

@media (prefers-reduced-motion:reduce){
  .ls-dg,.sp-rs,.sp-bs,.sp-rk__b,.sp-btn,.tm__b,.guncB,.ml__temizle,.ml__daha,.ittifak__daha,
  .pd-sec button,.sp-ec__sirala button,.ls-sekme a,.lg-afis__dugme{transition:none}
  .ls-dg:hover,.sp-rs:hover,.sp-bs:hover,.sp-rk__b:hover,.sp-btn:hover,.tm__b:hover,.guncB:hover,.ml__temizle:hover,
  .ml__daha:hover,.ittifak__daha:hover,.pd-sec button:hover,.sp-ec__sirala button:hover,.ls-sekme a:hover,.lg-afis__dugme:hover{transform:none}
}

/* ============================================================
   KOYU TEMALAR — "altın çerçeve + ışık"
   Koyu zeminde butonlar kayboluyordu. Burada seçili OLMAYAN buton da
   net görünür (altın çerçeve + hafif parıltı); seçili olan ayrıca öne
   çıkar (dolu altın + hafif parıltı).
   Işık ve çerçeve BİLEREK kısık: ilk sürüm fazla parlaktı (kullanıcı isteği).
   Açık temalara (light / tozpembe / bej) DOKUNMAZ.
   --bt-ac: vurgu rengi; ana sayfadaki lane düğmeleri kendi lane
   rengini (--pd-renk) kullanır.
   ============================================================ */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]){
  --bt-ac:var(--gold);
  --bt-k-isik:0 0 6px color-mix(in srgb,var(--bt-ac) 10%,transparent);
  --bt-k-isik-ust:0 0 10px color-mix(in srgb,var(--bt-ac) 22%,transparent);
  --bt-k-isik-secili:0 0 10px color-mix(in srgb,var(--bt-ac) 28%,transparent);
}
/* parıltı değişkenleri tanımlandıkları yerde çözülür; lane rengi için düğmede YENİDEN tanımlanmalı */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .pd-sec button{
  --bt-ac:var(--pd-renk,var(--gold));
  --bt-k-isik:0 0 6px color-mix(in srgb,var(--bt-ac) 10%,transparent);
  --bt-k-isik-ust:0 0 10px color-mix(in srgb,var(--bt-ac) 22%,transparent);
  --bt-k-isik-secili:0 0 10px color-mix(in srgb,var(--bt-ac) 28%,transparent);
}

/* seçili değil */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.ls-dg,.sp-rs,.sp-bs,.sp-rk__b,.sp-btn,.tm__b,.ml__temizle,.ittifak__daha,.pd-sec button,.sp-ec__sirala button,.ls-sekme a){
  position:relative;
  color:color-mix(in srgb,var(--bt-ac) 55%,var(--ink));
  background-color:color-mix(in srgb,var(--bt-ac) 10%,var(--void));
  border:1px solid color-mix(in srgb,var(--bt-ac) 52%,transparent);
  box-shadow:var(--bt-k-isik);
}
/* üstüne gelince */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.ls-dg,.sp-rs,.sp-bs,.sp-rk__b,.sp-btn,.tm__b,.ml__temizle,.ittifak__daha,.pd-sec button,.sp-ec__sirala button,.ls-sekme a):hover{
  color:var(--ink);
  background-color:color-mix(in srgb,var(--bt-ac) 18%,var(--void));
  box-shadow:var(--bt-k-isik-ust);
}
/* basılı tutarken */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.ls-dg,.sp-rs,.sp-bs,.sp-rk__b,.sp-btn,.tm__b,.ml__temizle,.ittifak__daha,.pd-sec button,.sp-ec__sirala button,.ls-sekme a):active{
  transform:scale(.95);filter:brightness(1.08);
}
/* seçili: dolu altın + güçlü parıltı */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.ls-dg.is-ac,.sp-rs.is-ac,.sp-bs.is-ac,.sp-rk__b.is-ac,.pd-sec button[aria-pressed="true"],.sp-ec__sirala button.is-ac,.ls-sekme a[aria-current="page"]),
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.ls-dg.is-ac,.sp-rs.is-ac,.sp-bs.is-ac,.sp-rk__b.is-ac,.pd-sec button[aria-pressed="true"],.sp-ec__sirala button.is-ac,.ls-sekme a[aria-current="page"]):hover{
  color:var(--void);
  background:linear-gradient(180deg,color-mix(in srgb,var(--bt-ac) 90%,#fff),var(--bt-ac));
  border-color:var(--bt-ac);
  box-shadow:var(--bt-k-isik-secili);
}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.ls-dg.is-ac,.sp-rs.is-ac,.sp-bs.is-ac,.sp-rk__b.is-ac,.sp-ec__sirala button.is-ac) :is(b,em,i:not(.lane-ik),span){color:var(--void)}
/* pasif düğme: parıltı yok */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.ls-dg,.sp-rs,.sp-bs):disabled{box-shadow:none;filter:none;transform:none;color:var(--muted)}

/* kapsüller: çerçeve ve parıltı kapsülde, parçalar çerçevesiz */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.sp-mod,.lg-ctl__dil,.ctl__dil,.dl,.sp-bsler--kapsul){
  background-color:color-mix(in srgb,var(--bt-ac) 10%,var(--void));
  border:1px solid color-mix(in srgb,var(--bt-ac) 52%,transparent);
  box-shadow:none;
}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .sp-bsler--kapsul .sp-bs:not(.is-ac){background-color:transparent;border-color:transparent;box-shadow:none}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .sp-bsler--kapsul .sp-bs:not(.is-ac):not(:disabled):hover{background-color:color-mix(in srgb,var(--bt-ac) 18%,var(--void))}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.sp-mod button,.lg-ctl__b,.ctl__b,.dl__b){color:color-mix(in srgb,var(--bt-ac) 55%,var(--ink))}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.sp-mod button,.lg-ctl__b,.ctl__b,.dl__b):hover{color:#fff}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.sp-mod button.is-ac,.lg-ctl__b[aria-pressed="true"],.ctl__b[aria-pressed="true"],.dl__b[aria-pressed="true"]),
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.sp-mod button.is-ac,.lg-ctl__b[aria-pressed="true"],.ctl__b[aria-pressed="true"],.dl__b[aria-pressed="true"]):hover{
  color:var(--void);
  background:linear-gradient(180deg,color-mix(in srgb,var(--bt-ac) 90%,#fff),var(--bt-ac));
  box-shadow:0 0 8px color-mix(in srgb,var(--bt-ac) 24%,transparent);
}

/* ── KOYU TEMALAR · üst şerit: arama kutusu ve menü de aynı dile girer ──
   (kullanıcı: "bu kısımlar hâlâ dikkat çekici değil") */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.lg-ara,.ara__satir,.ustara__satir){
  border:1px solid color-mix(in srgb,var(--bt-ac) 52%,transparent);border-radius:12px;
  background-color:color-mix(in srgb,var(--bt-ac) 4%,var(--void));
  box-shadow:var(--bt-k-isik);
}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.lg-ara,.ara__satir):focus-within,
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .ustara__form:focus-within .ustara__satir{
  border-color:var(--bt-ac);box-shadow:var(--bt-k-isik-ust);
}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-ara__cam{color:var(--bt-ac)}
/* ara / git: dolu altın ana düğme, kutunun içinde ayrı bir parça gibi */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.lg-ara__git,.ara__git,.ustara__git){
  margin:3px;border:0;border-radius:9px;color:var(--void);font-weight:700;
  background:linear-gradient(180deg,color-mix(in srgb,var(--bt-ac) 90%,#fff),var(--bt-ac));
  box-shadow:none;
}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.lg-ara__git,.ara__git,.ustara__git):hover{
  color:var(--void);filter:brightness(1.05);
  background:linear-gradient(180deg,color-mix(in srgb,var(--bt-ac) 82%,#fff),var(--bt-ac));
  box-shadow:0 0 8px color-mix(in srgb,var(--bt-ac) 26%,transparent);
}
/* menü öğeleri: seçili değilken ince altın çerçeve, üstüne gelince ışık, aktif sayfa dolu altın */
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-menu__b{
  color:color-mix(in srgb,var(--bt-ac) 40%,var(--ink));
  background-color:color-mix(in srgb,var(--bt-ac) 5%,var(--void));
  border:1px solid color-mix(in srgb,var(--bt-ac) 28%,transparent);
  transition:var(--bt-gecis);
}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-menu__b svg{opacity:1}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-menu__o:is(:hover,:focus-within) .lg-menu__b{
  color:var(--ink);background-color:color-mix(in srgb,var(--bt-ac) 18%,var(--void));
  border-color:color-mix(in srgb,var(--bt-ac) 70%,transparent);box-shadow:var(--bt-k-isik-ust);
}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-menu__o--aktif .lg-menu__b,
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-menu__o--aktif:is(:hover,:focus-within) .lg-menu__b{
  color:var(--void);font-weight:700;
  background:linear-gradient(180deg,color-mix(in srgb,var(--bt-ac) 90%,#fff),var(--bt-ac));
  border-color:var(--bt-ac);
  box-shadow:var(--bt-k-isik-secili);
}
html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-menu__o--aktif .lg-menu__b::before{display:none}
/* dar ekranda menü alt alta dizilir: aktif satırın tamamını altınla doldurmak ağır durur → hafif dolgu */
@media (max-width:980px){
  html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-menu__o--aktif .lg-menu__b,
  html:not([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .lg-menu__o--aktif:is(:hover,:focus-within) .lg-menu__b{
    color:var(--bt-ac);font-weight:700;background:color-mix(in srgb,var(--bt-ac) 16%,var(--void));
    border-color:color-mix(in srgb,var(--bt-ac) 70%,transparent);box-shadow:none;
  }
}

/* ============================================================
   AÇIK TEMALAR — seçili OLMAYAN butonlarda da görünür çerçeve
   Koyu temalardaki gibi: buton seçili değilken de vurgu renginde ince
   bir çerçeveyle durur (kullanıcı isteği). Seçili/aktif hâllere
   dokunmaz; onları acik-tema.css ve asıl dosyalar belirler.
   ============================================================ */
html:is([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .ust .lg-menu__o:not(.lg-menu__o--aktif) .lg-menu__b{
  border:1px solid color-mix(in srgb,var(--gold) 42%,transparent);
  background-color:rgba(255,255,255,.38);
}
html:is([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) .ust .lg-menu__o:not(.lg-menu__o--aktif):hover .lg-menu__b{
  border-color:color-mix(in srgb,var(--gold) 80%,transparent);
}
html:is([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.ls-dg,.sp-rs,.sp-bs,.sp-rk__b,.sp-btn,.ml__temizle,.ittifak__daha,.pd-sec button,.sp-ec__sirala button,.ls-sekme a):not(.is-ac):not([aria-pressed="true"]):not([aria-current="page"]):not(:disabled){
  border-color:color-mix(in srgb,var(--gold) 46%,transparent);
}
html:is([data-theme="light"],[data-theme="tozpembe"],[data-theme="bej"]) :is(.sp-mod,.lg-ctl__dil,.ctl__dil,.dl,.sp-bsler--kapsul){
  border:1px solid color-mix(in srgb,var(--gold) 46%,transparent);
}
