/* Koyu tema bileşen düzeltmeleri — yalnız tokenla çözülemeyen (ham renkli) yüzeyler.
   Tokenların koyu seti tokens.css'te (:root[data-theme="dark"]). Bu dosya alfabetik olarak en son yüklenir. */
:root[data-theme="dark"] {
	/* Gutenberg ön ayar renkleri (theme.json statik hex) → koyu tokenlar */
	--wp--preset--color--text-primary: var(--eg-color-text-primary);
	--wp--preset--color--text-secondary: var(--eg-color-text-secondary);
	--wp--preset--color--text-muted: var(--eg-color-text-muted);
	--wp--preset--color--surface-default: var(--eg-color-surface-default);
	--wp--preset--color--surface-muted: var(--eg-color-surface-muted);
	--wp--preset--color--surface-brand-soft: var(--eg-color-surface-brand-soft);
	--wp--preset--color--background-page: var(--eg-color-background-page);
	--wp--preset--color--border-default: var(--eg-color-border-default);
	--wp--preset--color--surface-success-soft: var(--eg-color-surface-success-soft);
	--wp--preset--color--surface-danger-soft: var(--eg-color-surface-danger-soft);
	--wp--preset--color--surface-warning-soft: var(--eg-color-surface-warning-soft);
}
:root[data-theme="dark"] body { background: var(--eg-color-background-page); color: var(--eg-color-text-primary); }

/* Tek renkli wordmark'lar (logo paketi #0B1734) metin rengine döner. */
:root[data-theme="dark"] svg path[fill="#0b1734" i] { fill: var(--eg-color-text-primary); }

/* Marka logoları: koyu/siyah logolar (Apple, Dyson…) kaybolmasın diye açık zeminli rozet. */
:root[data-theme="dark"] img.eg-brand-logo { background: #eef2f8; border-radius: 6px; padding: 2px; box-sizing: border-box; }

/* Makale */
:root[data-theme="dark"] .eg-h2__num { background: var(--eg-color-surface-brand-soft); }
:root[data-theme="dark"] .eg-toc__num { background: var(--eg-color-surface-muted); }
:root[data-theme="dark"] .eg-hub-card { background: linear-gradient(160deg, #15264a 0%, #122039 100%); border-color: var(--eg-color-border-default); }
:root[data-theme="dark"] .eg-related__list > li + li { border-top-color: var(--eg-color-border-default); }
:root[data-theme="dark"] .eg-quick-tips { background: var(--eg-color-surface-success-soft); border-color: #1d4a35; }
:root[data-theme="dark"] .eg-quick-tips__icon { background: #164630; }
:root[data-theme="dark"] .eg-feedback__btn--yes { border-color: #2f7a55; }
:root[data-theme="dark"] .eg-feedback__btn--no { border-color: #8a3a3e; }
:root[data-theme="dark"] .eg-feedback--sidebar .eg-feedback__btn { background: var(--eg-color-surface-muted); }
:root[data-theme="dark"] .eg-feedback__thanks, :root[data-theme="dark"] .eg-comments__notice, :root[data-theme="dark"] .eg-notice--success { color: #7fe0ae; }
:root[data-theme="dark"] .eg-notice--error, :root[data-theme="dark"] .eg-cform__error { color: #ff9ea2; }
:root[data-theme="dark"] .eg-comment__pending { color: #f2c46b; }
:root[data-theme="dark"] .eg-comments__more-btn:hover { background: var(--eg-color-surface-brand-soft); }

/* Bloklar */
:root[data-theme="dark"] .eg-quick-answer { background: var(--eg-color-surface-brand-soft); border-color: #21406f; box-shadow: none; }
:root[data-theme="dark"] .eg-quick-answer__icon { background: #1b3764; }
:root[data-theme="dark"] .eg-callout--info { background: #13233f; border-color: #21406f; }
:root[data-theme="dark"] .eg-callout--info .eg-callout__icon { background: #1b3764; }
:root[data-theme="dark"] .eg-callout--info .eg-callout__title { color: var(--eg-color-text-link); }
:root[data-theme="dark"] .eg-compare__card--positive { border-color: #1d4a35; }
:root[data-theme="dark"] .eg-compare__card--negative { border-color: #5a2a2d; }
:root[data-theme="dark"] .eg-compare__card--positive .eg-compare__icon { background: #164630; }
:root[data-theme="dark"] .eg-compare__card--negative .eg-compare__icon { background: #4a2226; }
:root[data-theme="dark"] .eg-compare__card--neutral .eg-compare__icon { background: #1b3764; }

/* Listeler / dizinler / sayfalar */
:root[data-theme="dark"] .eg-lhero__bleed::before { background: linear-gradient(90deg, var(--eg-color-background-page), rgba(11, 18, 32, 0)); }
:root[data-theme="dark"] .eg-lsug--popular { background: linear-gradient(131deg, #1f1d47 0%, #142646 62.5%); }
:root[data-theme="dark"] .eg-rcard__rank--2 { background: #4a5670; color: #fff; }
:root[data-theme="dark"] .eg-hub-hero, :root[data-theme="dark"] .eg-dir-hero, :root[data-theme="dark"] .eg-brand-hero { background: linear-gradient(180deg, var(--eg-color-background-subtle), var(--eg-color-background-page)); }
:root[data-theme="dark"] .eg-404-art { background: #eef3fb; border-radius: 16px; }
:root[data-theme="dark"] .eg-404-hero { background: var(--eg-color-background-page); }

/* Kart rozeti ve ana sayfa */
:root[data-theme="dark"] .eg-home-badge { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
:root[data-theme="dark"] .eg-home-hero { background:
	radial-gradient(60% 90% at 62% 30%, rgba(110, 130, 255, 0.28), rgba(110, 130, 255, 0) 70%),
	linear-gradient(100deg, #0f1f46 0%, #152b60 32%, #2449a0 62%, #4d55c2 100%); }
