/* Koyu / açık tema (html[data-theme="dark"]).
   Temel kurallar burada; satır içi stilli açık zeminler ve koyu yazılar
   site-enhancements içindeki dyDark düzelticisi ile dk-* sınıflarına çevrilir. */
html[data-theme="dark"]{
    --dk-bg:#14111b;
    --dk-s0:#191520;
    --dk-s1:#211b2b;
    --dk-s2:#2a2336;
    --dk-border:rgba(255,255,255,.13);
    --dk-text:#e8e3f0;
    --dk-muted:#bdb4cc;
    --dk-brand:#cdb3f2;
    color-scheme:dark;
    background:var(--dk-bg)!important;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .page{background:var(--dk-bg)!important;color:var(--dk-text)}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,
html[data-theme="dark"] h4,html[data-theme="dark"] h5,html[data-theme="dark"] h6{color:var(--dk-text)}
html[data-theme="dark"] a{color:var(--dk-brand)}
html[data-theme="dark"] hr{border-color:var(--dk-border)}
html[data-theme="dark"] ::selection{background:#6b4c93;color:#fff}

/* Düzeltici sınıfları (sınıf üçlenerek header içindeki geç yüklenen <style> kurallarının önüne geçilir) */
html[data-theme="dark"] .dk-s0.dk-s0.dk-s0{background-color:var(--dk-s0)!important}
html[data-theme="dark"] .dk-s1.dk-s1.dk-s1{background-color:var(--dk-s1)!important}
html[data-theme="dark"] .dk-s2.dk-s2.dk-s2{background-color:var(--dk-s2)!important}
html[data-theme="dark"] .dk-gl.dk-gl.dk-gl{background-color:rgba(28,22,38,.9)!important}
html[data-theme="dark"] .dk-gr.dk-gr.dk-gr{background-image:linear-gradient(180deg,var(--dk-s1),var(--dk-s0))!important}
html[data-theme="dark"] .dk-t.dk-t.dk-t{color:var(--dk-text)!important}
html[data-theme="dark"] .dk-tm.dk-tm.dk-tm{color:var(--dk-muted)!important}
html[data-theme="dark"] .dk-tb.dk-tb.dk-tb{color:var(--dk-brand)!important}
html[data-theme="dark"] .dk-b.dk-b.dk-b{border-color:var(--dk-border)!important}
html[data-theme="dark"] .dk-sh.dk-sh.dk-sh{box-shadow:0 8px 24px rgba(0,0,0,.35)!important}

/* Formlar ve tablolar */
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{
    background-color:var(--dk-s2);color:var(--dk-text);border-color:var(--dk-border)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9a90aa;opacity:1}
html[data-theme="dark"] table,html[data-theme="dark"] th,html[data-theme="dark"] td{border-color:var(--dk-border)}

/* Logo: koyu zeminde açık renk */
html[data-theme="dark"] img.optimized-site-logo,
html[data-theme="dark"] .footer-logo img,
html[data-theme="dark"] .yeliz-footer__logo img{filter:brightness(0) invert(.93)}
/* Fotoğrafları hafif yumuşat (göz yormasın) */
html[data-theme="dark"] .page img:not(.optimized-site-logo):not(.flag){filter:brightness(.94)}

/* Site eklemeleri */
html[data-theme="dark"] .dy-cookie{background:var(--dk-s1);color:var(--dk-text);border-color:var(--dk-border)}
html[data-theme="dark"] .dy-cookie__text a,html[data-theme="dark"] .dy-form-kvkk a{color:var(--dk-brand)}
html[data-theme="dark"] .dy-form-kvkk{color:var(--dk-muted)}

/* Tema düğmesi */
.dy-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin-left:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;flex:0 0 auto;transition:background .2s}
.dy-theme-toggle:hover,.dy-theme-toggle:focus-visible{background:rgba(255,255,255,.26);outline:none}
.dy-theme-toggle:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.45)}
.dy-theme-toggle svg{width:19px;height:19px;display:block}
.dy-theme-toggle .dy-ico-sun{display:none}
html[data-theme="dark"] .dy-theme-toggle .dy-ico-sun{display:block}
html[data-theme="dark"] .dy-theme-toggle .dy-ico-moon{display:none}

/* Mobil/tablet başlık satırı beyaz zeminli: düğme mor tonda */
@media (max-width:1199.98px){
    .dy-theme-toggle{background:rgba(91,67,122,.1);color:#5b437a;width:36px;height:36px;margin-left:6px}
    .dy-theme-toggle:hover,.dy-theme-toggle:focus-visible{background:rgba(91,67,122,.2)}
    .dy-theme-toggle:focus-visible{box-shadow:0 0 0 3px rgba(91,67,122,.35)}
    html[data-theme="dark"] .dy-theme-toggle{background:rgba(255,255,255,.12);color:#fff}
}
/* Mobil menü (hamburger) çizgileri koyu zeminde görünür olsun */
html[data-theme="dark"] .ttm-menu-toggle .toggle-block{background-color:var(--dk-text)!important}
