/* =========================================================================
   Açık / Koyu tema (selahattinozyurek.com)
   - <html data-theme="light|dark"> head'deki küçük betikle, ilk boyamadan önce atanır
     (kayıtlı tercih > cihazın tercihi). Butonu: header'daki ay/güneş ikonu.
   - Bu dosyadaki koyu kurallar yalnızca html[data-theme="dark"] altında çalışır;
     açık temada sitenin görünümü hiç değişmez.
   ========================================================================= */
:root{color-scheme:light}

/* ---- Tema butonu (her iki temada) ---- */
.so-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--menu-yesil,#1a7f45);cursor:pointer;transition:background-color .2s ease}
.so-theme-toggle:hover{background:rgba(0,45,128,.06)}
.so-theme-toggle:focus-visible{outline:2px solid #1a7f45;outline-offset:2px}
.so-theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.so-theme-toggle .so-ico-sun{display:none}
html[data-theme="dark"] .so-theme-toggle .so-ico-sun{display:block}
html[data-theme="dark"] .so-theme-toggle .so-ico-moon{display:none}
@media (min-width:1200px){.so-theme-toggle{width:36px;height:36px}}

/* Form gönder butonu: Bootstrap yeşili (#28a745) beyaz yazıyla 3.1:1 kontrastta kalıyordu (WCAG AA 4.5:1) */
.form-group .btn-success{background-color:#1a7f45;border-color:#1a7f45}
.form-group .btn-success:hover,.form-group .btn-success:focus{background-color:#146638;border-color:#146638}

/* Footer ekran dışındayken ilk boyamada çizilmez (her sayfada ana iş parçacığı yükünü azaltır) */
#mcfFooter{content-visibility:auto;contain-intrinsic-size:auto 900px}

/* =========================================================================
   KOYU TEMA
   ========================================================================= */
html[data-theme="dark"]{
    color-scheme:dark;
    --so-bg:#0c1424;
    --so-surface:#132039;
    --so-surface-2:#1a2a4a;
    --so-border:#2a3b60;
    --so-text:#d9e1ee;
    --so-strong:#f2f5fa;
    --so-muted:#a5b3c8;
    --so-link:#86bdff;
    --so-green:#5fd08f;
    --so-green-btn:#1f8f4d;
}
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .page,
html[data-theme="dark"] .site-main{background-color:var(--so-bg)!important;color:var(--so-text)}
html[data-theme="dark"] ::selection{background:#2f5aa8;color:#fff}

/* Genel tipografi */
html[data-theme="dark"] .site-main :is(h1,h2,h3,h4,h5,h6),
html[data-theme="dark"] .ttm-page-title-row .title{color:var(--so-strong)}
html[data-theme="dark"] .site-main :is(p,li,td,th,dd,dt,label,blockquote,figcaption,address){color:inherit}
html[data-theme="dark"] .site-main :is(strong,b){color:var(--so-strong)}
html[data-theme="dark"] hr{border-color:var(--so-border)}
html[data-theme="dark"] .text-muted{color:var(--so-muted)!important}
html[data-theme="dark"] .text-dark{color:var(--so-text)!important}

/* Yazı içi bağlantılar (butonlar hariç) */
html[data-theme="dark"] :is(.post-detail,.cat-content,.contents-toc,.article-meta-box,.so-medical-note) a:not(.btn){color:var(--so-link)}

/* ---- Header ---- */
html[data-theme="dark"] #masthead,
html[data-theme="dark"] #mobile-menu{--menu-yesil:var(--so-green)}
html[data-theme="dark"] #masthead .row.branding{background-color:#0a1d47!important}
html[data-theme="dark"] #masthead .ttm-header-wrap,
html[data-theme="dark"] #masthead .site-header-menu,
html[data-theme="dark"] #masthead .site-header-menu-inner,
html[data-theme="dark"] #masthead .ttm-stickable-header,
html[data-theme="dark"] #masthead .fixed-header{background-color:var(--so-surface)!important;border-color:var(--so-border)!important;box-shadow:0 1px 0 var(--so-border)!important}
html[data-theme="dark"] #masthead #menudesktop .dropdown > li > a,
html[data-theme="dark"] #masthead #menudesktop .dropdown li > a{color:var(--so-text)!important}
html[data-theme="dark"] #masthead #menudesktop .dropdown li > a:hover,
html[data-theme="dark"] #masthead #menudesktop .dropdown li.active > a{color:var(--so-green)!important}
html[data-theme="dark"] #masthead #menudesktop .dropdown ul,
html[data-theme="dark"] #masthead #menudesktop .dropdown li ul{background-color:var(--so-surface-2)!important;border-color:var(--so-border)!important}
html[data-theme="dark"] #masthead .ttm-header-icons .ttm-header-search-link > a:hover,
html[data-theme="dark"] .so-theme-toggle:hover{background:rgba(255,255,255,.08)!important}
html[data-theme="dark"] .so-theme-toggle{color:#ffd166}
html[data-theme="dark"] .so-theme-toggle:focus-visible{outline-color:var(--so-green)}
html[data-theme="dark"] #masthead .ttm-menu-toggle .toggle-block{background-color:var(--so-text)!important}
/* Logo lacivert yazılı: koyu zeminde okunsun diye açık renkli zemin üzerinde gösterilir */
html[data-theme="dark"] #masthead .site-branding .home-link,
html[data-theme="dark"] #mobile-menu .nav-header img{background:#eef3fa;border-radius:10px;padding:2px 8px}

/* Mobil menü paneli */
html[data-theme="dark"] #mobile-menu{background-color:var(--so-surface)!important;color:var(--so-text)}
html[data-theme="dark"] #mobile-menu .dropdown li > a{color:var(--so-text)!important}
html[data-theme="dark"] #mobile-menu .dropdown li > a:hover,
html[data-theme="dark"] #mobile-menu .dropdown > li.active > a{color:var(--so-green)!important}
html[data-theme="dark"] #mobile-menu .nav-header{background:transparent!important}
html[data-theme="dark"] #mobile-menu .dropdown li.active,
html[data-theme="dark"] #mobile-menu .dropdown li.active > a{background:var(--so-surface-2)!important}
html[data-theme="dark"] #mobile-menu .dropdown li{border-color:var(--so-border)!important}

/* ---- Sayfa başlığı / breadcrumb ---- */
html[data-theme="dark"] .ttm-page-title-row{background-color:var(--so-surface)!important;border-color:var(--so-border)!important}
html[data-theme="dark"] .ttm-page-title-row :is(a,span){color:var(--so-muted)!important}
html[data-theme="dark"] .ttm-page-title-row a:hover{color:var(--so-green)!important}

/* ---- İçerik alanı (panelden gelen Word/HTML içerikteki sabit renkler) ---- */
html[data-theme="dark"] :is(.post-detail,.cat-content,#content) [style*="color"]:not(a):not(.btn){color:inherit!important}
html[data-theme="dark"] :is(.post-detail,.cat-content,#content) [style*="background"]:not(img):not(.btn){background-color:transparent!important}
html[data-theme="dark"] :is(.post-detail,.cat-content) table{color:var(--so-text);border-color:var(--so-border)}
html[data-theme="dark"] :is(.post-detail,.cat-content) :is(td,th){border-color:var(--so-border)!important}
html[data-theme="dark"] :is(.post-detail,.cat-content) thead th{background-color:var(--so-surface-2)}

/* Makale bilgi kutuları, medikal not, içindekiler */
html[data-theme="dark"] .article-meta-box{background:var(--so-surface)!important;border-color:var(--so-border)!important;box-shadow:none!important;color:var(--so-text)}
html[data-theme="dark"] .article-meta-label{color:var(--so-strong)!important}
html[data-theme="dark"] .article-meta-value,
html[data-theme="dark"] .article-meta-value time{color:var(--so-text)!important}
html[data-theme="dark"] .article-meta-author{color:var(--so-green)!important}
html[data-theme="dark"] .so-medical-note{background:var(--so-surface);color:var(--so-text);border-left-color:var(--so-green)}
html[data-theme="dark"] .so-medical-note strong{color:var(--so-strong)}
html[data-theme="dark"] .contents-toc .jumbotron{background-color:var(--so-surface)!important;border-color:var(--so-border)!important;color:var(--so-text)}
html[data-theme="dark"] .contents-toc :is(h2,.contents-toc-toggle){color:var(--so-strong)!important}
html[data-theme="dark"] .contents-toc a{color:var(--so-link)!important}

/* ---- Ana sayfa / kategori kartları ---- */
html[data-theme="dark"] .box-art{background-color:var(--so-surface)!important;box-shadow:0 6px 18px rgba(0,0,0,.45)!important}
html[data-theme="dark"] .news-detail :is(p,a>p){color:var(--so-muted)!important}
html[data-theme="dark"] .news-detail :is(h3,a>h3){color:var(--so-strong)!important}
/* Slider başlığı markanın yeşilinde kalır */
html[data-theme="dark"] .cbody > h2{color:#7cc84a!important}

/* ---- Kartlar / bileşenler (Bootstrap + tema) ---- */
html[data-theme="dark"] :is(.card,.list-group-item,.modal-content,.dropdown-menu,.popover,.toast,.jumbotron,.bg-white,.bg-light){background-color:var(--so-surface)!important;color:var(--so-text);border-color:var(--so-border)!important}
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .card-header{background-color:var(--so-surface-2);border-color:var(--so-border)}
html[data-theme="dark"] .table{color:var(--so-text)}
html[data-theme="dark"] .table :is(td,th){border-color:var(--so-border)}
html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.03)}

/* ---- Formlar ---- */
html[data-theme="dark"] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea,.form-control,.custom-select){background-color:var(--so-surface-2)!important;color:var(--so-strong)!important;border-color:var(--so-border)!important}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#8291a8!important;opacity:1}
html[data-theme="dark"] :is(input,select,textarea,.form-control):focus{border-color:var(--so-green)!important;box-shadow:0 0 0 .2rem rgba(95,208,143,.25)!important}
html[data-theme="dark"] .input-group-text{background-color:var(--so-surface);color:var(--so-text);border-color:var(--so-border)}

/* ---- Çerez bannerı, yukarı çık ---- */
html[data-theme="dark"] .so-cookie{background:var(--so-surface);border-top-color:#3f6fd1;box-shadow:0 -8px 24px rgba(0,0,0,.5)}
html[data-theme="dark"] .so-cookie__text{color:var(--so-text)}
html[data-theme="dark"] .so-cookie__link{color:var(--so-link)}
html[data-theme="dark"] .so-cookie__btn{background:#2a55b5;border-color:#2a55b5}
html[data-theme="dark"] .so-cookie__btn:hover{background:#3a67cc;border-color:#3a67cc}
html[data-theme="dark"] .so-totop{background:#2a55b5;box-shadow:0 6px 18px rgba(0,0,0,.45)}

/* SSS (sıkça sorulan sorular) akordeonu */
html[data-theme="dark"] .faq-singular{border-color:var(--so-border)!important}
html[data-theme="dark"] .faq-singular.active,
html[data-theme="dark"] .faq-singular:hover{background-color:var(--so-surface)!important}
html[data-theme="dark"] .faq-question{color:var(--so-strong)!important}

/* Video detay: önerilen videolar */
html[data-theme="dark"] .recommended-title{color:var(--so-strong)!important}
html[data-theme="dark"] .video-item .video-title{color:var(--so-text)!important}
html[data-theme="dark"] .video-item .video-thumb-wrapper{background-color:var(--so-surface-2)!important}
html[data-theme="dark"] .video-item:hover .video-title{color:var(--so-green)!important}

/* Fotoğraf galerisi çerçeveleri */
html[data-theme="dark"] .img-thumbnail{background-color:var(--so-surface)!important;border-color:var(--so-border)!important}

/* Footer: marka mavisi koyu tonlara iner */
html[data-theme="dark"] #mcfFooter,
html[data-theme="dark"] #mcfFooter *{--mcf-blue:#10265a!important;--mcf-blue-2:#0a1633!important;--mcf-blue-3:#13306e!important}

/* Görseller koyu zeminde göz almasın */
html[data-theme="dark"] .site-main img:not(.hdr-logo){filter:brightness(.94)}

/* Tema geçişinde kısa yumuşatma (hareket azaltma tercihine uyar) */
@media (prefers-reduced-motion:no-preference){
    html.so-theme-anim,html.so-theme-anim *{transition:background-color .25s ease,color .25s ease,border-color .25s ease!important}
}

/* ---------- Çalışma saatleri (footer + iletişim sayfası) ---------- */
#mcfFooter .so-hours--footer .so-hours__row{display:block}
.so-hours--contact{list-style:none;margin:0;padding:0;max-width:340px}
.so-hours--contact li{display:flex;justify-content:space-between;gap:16px;padding:4px 0;border-bottom:1px dashed rgba(0,45,128,.18)}
.so-hours--contact li:last-child{border-bottom:0}
.so-hours--contact .so-hours__time{font-weight:600;white-space:nowrap}
.so-hours--contact .so-hours__closed{color:#b42318}
html[data-theme="dark"] .so-hours--contact li{border-bottom-color:var(--so-border)}
html[data-theme="dark"] .so-hours--contact .so-hours__closed{color:#ff8a80}
