/* Koyu tema: html[data-theme="dark"] ile acilir. Varsayilan acik tema; secim tarayicida saklanir. */
html[data-theme="dark"]{color-scheme:dark;
--pm-bg:#08141d;--pm-surface:#0e2230;--pm-surface2:#0b1b27;--pm-surface3:#143045;--pm-line:#24415a;--pm-line2:#1b3347;
--pm-text:#eef3f8;--pm-text2:#cbd7e3;--pm-text3:#a9b9c9;--pm-accent:#5aa5d0;--pm-accent2:#8cc4e6}
html[data-theme="dark"] body{background-color:var(--pm-bg);color:var(--pm-text2)}
/* zeminler */
html[data-theme="dark"] .bg-white{background-color:var(--pm-surface)}
html[data-theme="dark"] .bg-white\/95{background-color:rgba(8,20,29,.94)}
html[data-theme="dark"] .bg-slate-50{background-color:var(--pm-surface2)}
html[data-theme="dark"] .bg-slate-100{background-color:var(--pm-surface3)}
html[data-theme="dark"] .bg-sky-50,html[data-theme="dark"] .group-open\:bg-sky-50:is(:where(.group):is([open]) *){background-color:#0f2b40}
html[data-theme="dark"] .bg-sky-100{background-color:#123a57}
html[data-theme="dark"] .open\:bg-white:is([open]){background-color:var(--pm-surface)}
html[data-theme="dark"] .hover\:bg-white:hover,html[data-theme="dark"] .hover\:bg-slate-100:hover,html[data-theme="dark"] .hover\:bg-sky-50:hover,html[data-theme="dark"] .hover\:bg-sky-50\/40:hover{background-color:var(--pm-surface3)}
html[data-theme="dark"] body::selection,html[data-theme="dark"] body *::selection{background:#123a57;color:#eef3f8}
/* koyu alanlar: sayfa zemininden ayrissin */
html[data-theme="dark"] .bg-slate-900,html[data-theme="dark"] .bg-\[\#0f172a\]{background-color:#05101a}
html[data-theme="dark"] .from-slate-900{--tw-gradient-from:#05101a}
html[data-theme="dark"] .to-\[\#0f172a\]{--tw-gradient-to:#05101a}
html[data-theme="dark"] .from-\[\#0f172a\]{--tw-gradient-from:#05101a}
/* yazilar (koyu alandaki beyaz/acik yazilara dokunulmaz) */
html[data-theme="dark"] .text-slate-900{color:var(--pm-text)}
html[data-theme="dark"] .text-slate-800{color:var(--pm-text)}
html[data-theme="dark"] .text-slate-700{color:var(--pm-text2)}
html[data-theme="dark"] .text-slate-600{color:var(--pm-text3)}
html[data-theme="dark"] .text-slate-500{color:#9fb0c1}
html[data-theme="dark"] .text-sky-900{color:#cfe6f5}
html[data-theme="dark"] .text-emerald-600,html[data-theme="dark"] .text-emerald-700{color:#4ade80}
html[data-theme="dark"] .text-red-600,html[data-theme="dark"] .text-red-700{color:#fca5a5}
html[data-theme="dark"] .text-amber-900\/90{color:#fcd9a8}
html[data-theme="dark"] .text-\[\#0a6ea4\],html[data-theme="dark"] .group-open\:text-\[\#0a6ea4\]:is(:where(.group):is([open]) *),html[data-theme="dark"] .group-hover\:text-\[\#0a6ea4\]:is(:where(.group):hover *),html[data-theme="dark"] .file\:text-\[\#0a6ea4\]::file-selector-button{color:var(--pm-accent2)}
html[data-theme="dark"] .hover\:text-\[\#0a6ea4\]:hover,html[data-theme="dark"] .hover\:text-\[\#08527a\]:hover{color:#b6dcf3}
/* cizgiler */
html[data-theme="dark"] .border-slate-100,html[data-theme="dark"] .border-slate-200,html[data-theme="dark"] .border-slate-300{border-color:var(--pm-line)}
html[data-theme="dark"] .border-slate-200\/60,html[data-theme="dark"] .border-slate-200\/80{border-color:rgba(36,65,90,.8)}
html[data-theme="dark"] .border-sky-100,html[data-theme="dark"] .border-sky-200{border-color:#1d4666}
html[data-theme="dark"] .divide-slate-100>:not(:last-child),html[data-theme="dark"] .divide-slate-200>:not(:last-child){border-color:var(--pm-line2)}
/* butonlar: koyu temada ana dugme biraz daha parlak mavi */
html[data-theme="dark"] .bg-\[\#0a6ea4\],html[data-theme="dark"] .bg-\[\#c2410c\]{background-color:#0a7bb8}
html[data-theme="dark"] .hover\:bg-\[\#08527a\]:hover,html[data-theme="dark"] .hover\:bg-\[\#9a3412\]:hover{background-color:#0c8fd6}
html[data-theme="dark"] .bg-\[\#0f172a\] .bg-\[\#c2410c\],html[data-theme="dark"] .bg-slate-900 .bg-\[\#c2410c\]{background-color:#fff!important;color:#01669a!important}
/* formlar */
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background-color:var(--pm-surface2);color:var(--pm-text);border-color:var(--pm-line)}
html[data-theme="dark"] ::placeholder{color:#7f93a6;opacity:1}
html[data-theme="dark"] option{background:#0e2230;color:#eef3f8}
html[data-theme="dark"] :focus-visible{outline-color:#5aa5d0}
/* golgeler */
html[data-theme="dark"] .shadow-xs,html[data-theme="dark"] .shadow-sm,html[data-theme="dark"] .shadow-md,html[data-theme="dark"] .shadow-lg,html[data-theme="dark"] .shadow-xl{--tw-shadow-color:#00000066}
/* logo: seffaf zeminli; koyu temada aciklik tersine cevrilir, renk tonu korunur (kutu/zemin yok) */
html[data-theme="dark"] header img[src*="pamtek-logo"],html[data-theme="dark"] footer img[src*="pamtek-logo"]{filter:invert(1) hue-rotate(180deg) brightness(1.1) saturate(.85)}
/* hukuki sayfalar */
html[data-theme="dark"] .legal-body h2,html[data-theme="dark"] .legal-body h3{color:var(--pm-text)}
html[data-theme="dark"] .legal-body a{color:var(--pm-accent2)}
html[data-theme="dark"] .legal-body th{background:var(--pm-surface3)}
html[data-theme="dark"] .legal-body th,html[data-theme="dark"] .legal-body td{border-color:var(--pm-line)}
html[data-theme="dark"] .legal-body blockquote,html[data-theme="dark"] .legal-body code{background:#2b2410;color:#fcd9a8}
/* sertifika seridi + referanslar */
html[data-theme="dark"] .pm-cert-strip{background:var(--pm-surface);border-bottom-color:var(--pm-line)}
html[data-theme="dark"] .pm-cert-strip a{color:var(--pm-text)}
html[data-theme="dark"] .pm-cert-strip a:hover strong{color:var(--pm-accent2)}
html[data-theme="dark"] .pm-cert-strip small{color:var(--pm-text3)}
html[data-theme="dark"] .pm-cert-icon{background:#123a57;color:var(--pm-accent2)}
html[data-theme="dark"] .pm-ref-grid img{border-color:var(--pm-line)}
html[data-theme="dark"] .pm-ref-grid li:hover img{box-shadow:0 6px 18px rgba(0,0,0,.5)}

/* ---- tema dugmesi (her iki temada gorunur) ---- */
.pm-theme-toggle{position:fixed;right:1rem;bottom:5.5rem;z-index:45;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
width:3.25rem;height:3.25rem;border-radius:9999px;border:2px solid #01669a;background:#fff;color:#01669a;cursor:pointer;
box-shadow:0 6px 18px rgba(7,42,64,.28);font:inherit;transition:transform .15s,background-color .2s,color .2s}
.pm-theme-toggle:hover{transform:scale(1.08);background:#01669a;color:#fff}
.pm-theme-toggle:focus-visible{outline:3px solid #5aa5d0;outline-offset:3px}
.pm-theme-toggle svg{width:1.6rem;height:1.6rem;flex:none}
.pm-theme-toggle .pm-ico-sun{display:none}
html[data-theme="dark"] .pm-theme-toggle{background:#0e2230;color:#ffd166;border-color:#5aa5d0;box-shadow:0 6px 18px rgba(0,0,0,.6)}
html[data-theme="dark"] .pm-theme-toggle:hover{background:#ffd166;color:#08141d}
html[data-theme="dark"] .pm-theme-toggle .pm-ico-moon{display:none}
html[data-theme="dark"] .pm-theme-toggle .pm-ico-sun{display:block}
.pm-theme-toggle.pm-in-header{position:static;flex:none;width:2.75rem;height:2.75rem;box-shadow:none;border-width:2px}
.pm-theme-toggle.pm-in-header:hover{transform:none}
.pm-theme-toggle.pm-in-header svg{width:1.4rem;height:1.4rem}
html[data-theme="dark"] .pm-theme-toggle.pm-in-header{box-shadow:none}
@media (min-width:640px){.pm-theme-toggle:not(.pm-in-header){bottom:1.25rem;right:1.25rem;width:3.5rem;height:3.5rem}}
@media print{.pm-theme-toggle{display:none}}
