/* ============================================================================
   AIGenerate Blog — editoryal, SEO/okunabilirlik odaklı tema
   ----------------------------------------------------------------------------
   Tasarım ilkeleri:
     · Okuma önce gelir — makale gövdesi 68ch ölçüsünde, serif, 19px/1.78
     · Kararlı düzen — tüm medya alanlarında aspect-ratio (CLS = 0)
     · Sistem fontları — harici font isteği yok, LCP'yi geciktirmez
     · Tek kaynaktan tema — tüm renkler değişken; koyu tema yalnızca nötrleri
       yeniden eşler
     · Erişilebilirlik — görünür odak halkası, kontrast, azaltılmış hareket
   ========================================================================== */

/* ------------------------------- Tokenlar -------------------------------- */
:root {
    /* Marka */
    --brand: #4f46e5;
    --brand-strong: #4338ca;
    --brand-soft: #eef2ff;
    --accent: #0d9488;

    /* Nötrler (açık tema) */
    --bg: #ffffff;
    --bg-alt: #f7f8fb;
    --surface: #ffffff;
    --surface-2: #f2f4f8;
    --text: #14161c;
    --text-soft: #4a5162;
    --text-mute: #757e91;
    --border: #e4e7ee;
    --border-strong: #cfd4e0;

    --shadow-sm: 0 1px 2px rgba(16, 20, 30, .06), 0 1px 3px rgba(16, 20, 30, .04);
    --shadow-md: 0 4px 12px rgba(16, 20, 30, .07), 0 2px 4px rgba(16, 20, 30, .04);
    --shadow-lg: 0 18px 40px rgba(16, 20, 30, .12);

    /* Ölçü */
    --wrap: 1180px;
    --measure: 68ch;          /* okuma satır uzunluğu */
    --radius: 14px;
    --radius-sm: 9px;
    --header-h: 64px;

    /* Tipografi */
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    color-scheme: light;
}

/* Koyu tema — kullanıcı elle seçtiğinde. */
:root[data-theme="dark"] {
    --bg: #0d1017;
    --bg-alt: #111520;
    --surface: #151a25;
    --surface-2: #1c2230;
    --text: #e9ecf3;
    --text-soft: #b3bacb;
    --text-mute: #8b94a8;
    --border: #232a38;
    --border-strong: #313a4c;
    --brand: #818cf8;
    --brand-strong: #a5b4fc;
    --brand-soft: #1e2438;
    --accent: #2dd4bf;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .55);
    --shadow-lg: 0 20px 44px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

/* Kullanıcı elle seçmediyse sistem tercihini uygula. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d1017;
        --bg-alt: #111520;
        --surface: #151a25;
        --surface-2: #1c2230;
        --text: #e9ecf3;
        --text-soft: #b3bacb;
        --text-mute: #8b94a8;
        --border: #232a38;
        --border-strong: #313a4c;
        --brand: #818cf8;
        --brand-strong: #a5b4fc;
        --brand-soft: #1e2438;
        --accent: #2dd4bf;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-md: 0 4px 14px rgba(0, 0, 0, .55);
        --shadow-lg: 0 20px 44px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

/* --------------------------------- Temel --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--brand); color: #fff;
    padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

.text-muted { color: var(--text-mute); }
.dot { color: var(--text-mute); }

/* Okuma ilerleme çubuğu */
.reading-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 120;
    transition: width .1s linear;
}

/* -------------------------------- Header --------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
/* Saydam/bulanık başlık yalnızca destekleyen tarayıcılarda. */
@supports (backdrop-filter: blur(1px)) {
    .site-header {
        background: color-mix(in srgb, var(--bg) 86%, transparent);
        backdrop-filter: saturate(180%) blur(12px);
    }
}

.header-inner {
    display: flex; align-items: center; gap: 20px;
    min-height: var(--header-h);
}

.site-logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 17px; letter-spacing: -.01em;
    color: var(--text); text-decoration: none; flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.logo-mark {
    width: 32px; height: 32px; flex: 0 0 32px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff; font-weight: 800; font-size: 16px;
    border-radius: 9px;
}

.site-nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; min-width: 0; }
.site-nav a {
    padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--text-soft); font-size: 14px; font-weight: 500;
    white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.search-box { display: flex; align-items: center; position: relative; }
.search-box input {
    width: 190px; padding: 8px 34px 8px 12px;
    background: var(--surface-2); color: var(--text);
    border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-size: 14px;
    transition: border-color .15s, background .15s;
}
.search-box input:focus { background: var(--surface); border-color: var(--brand); outline: none; }
.search-box button {
    position: absolute; right: 4px;
    display: grid; place-items: center;
    width: 28px; height: 28px; padding: 0;
    background: none; border: 0; border-radius: 50%;
    color: var(--text-mute); cursor: pointer;
}
.search-box button:hover { color: var(--brand); }

.theme-toggle, .menu-toggle {
    display: grid; place-items: center;
    width: 36px; height: 36px; padding: 0;
    background: var(--surface-2); color: var(--text-soft);
    border: 0; border-radius: 10px; cursor: pointer;
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--brand); }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: block; }
}

.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

/* --------------------------------- Hero ---------------------------------- */
.hero {
    padding: 56px 0 40px;
    background:
        radial-gradient(1000px 400px at 15% -10%, var(--brand-soft), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.hero-eyebrow, .eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--brand);
    margin: 0 0 12px;
}
.hero-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
}
.hero-desc {
    margin: 0; max-width: 62ch;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-soft);
}
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* --------------------------------- Çipler -------------------------------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: var(--surface-2); color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1.4;
    text-decoration: none;
}
.chip:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); text-decoration: none; }
.chip .count { color: var(--text-mute); font-weight: 500; font-size: 12px; }
.chip-cat {
    background: var(--brand-soft); color: var(--brand);
    border-color: transparent; text-transform: uppercase;
    font-size: 11px; letter-spacing: .05em;
}

/* -------------------------------- Butonlar ------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

/* ------------------------------ Öne çıkan -------------------------------- */
.featured {
    display: grid; grid-template-columns: 1.15fr 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 48px;
}
.featured-media { display: block; background: var(--surface-2); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.featured-body { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.featured-title {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.2; letter-spacing: -.02em; font-weight: 700;
}
.featured-title a { color: var(--text); }
.featured-title a:hover { color: var(--brand); text-decoration: none; }
.featured-excerpt { margin: 0 0 18px; color: var(--text-soft); font-size: 16px; }
.featured .card-meta { margin-bottom: 22px; }

/* -------------------------------- Kartlar -------------------------------- */
.section-title {
    margin: 0 0 22px;
    font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
    display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    margin-bottom: 48px;
}

.card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-media { display: block; background: var(--surface-2); overflow: hidden; }
.card-media img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    transition: transform .35s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: flex-start; }
.card-title { margin: 0; font-size: 1.06rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-excerpt { margin: 0; color: var(--text-soft); font-size: 14.5px; flex: 1; }
.card-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-mute);
}

/* ------------------------------ Sayfa başlığı ---------------------------- */
.page-head { padding: 34px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.page-title {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.12; letter-spacing: -.025em; font-weight: 800;
}
.page-sub { margin: 0; color: var(--text-mute); }

/* Arşiv tanıtımı — listeleme sayfasına gerçek metin kazandırır. */
.archive-intro { margin-top: 16px; max-width: var(--measure); }
.archive-intro p { margin: 0 0 10px; color: var(--text-soft); font-size: 16px; line-height: 1.7; }
.archive-intro p:last-child { margin-bottom: 0; font-size: 14.5px; }

.related-terms { margin-bottom: 56px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 22px 0 0; font-size: 13.5px; color: var(--text-mute);
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb .sep { color: var(--border-strong); }

.empty-state {
    padding: 60px 20px; text-align: center;
    background: var(--surface); border: 1px dashed var(--border-strong);
    border-radius: var(--radius); color: var(--text-soft);
    margin-bottom: 48px;
}
.empty-state p { margin: 0 0 8px; }

/* ------------------------------- Sayfalama ------------------------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 8px 0 56px; }
.page-link {
    min-width: 42px; height: 42px;
    display: grid; place-items: center; padding: 0 12px;
    background: var(--surface); color: var(--text-soft);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
}
.page-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------ Makale düzeni ---------------------------- */
.article-layout { display: block; }
.article-layout.has-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 56px;
    align-items: start;
}

.single { min-width: 0; }

.article-head { padding: 24px 0 30px; }
.article-head .chip-cat { margin-bottom: 14px; }
.article-title {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    line-height: 1.13; letter-spacing: -.03em; font-weight: 800;
    max-width: 22ch;
    text-wrap: balance;
}
.article-standfirst {
    margin: 0 0 22px;
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    line-height: 1.55; color: var(--text-soft);
    max-width: var(--measure);
}
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
    padding-top: 18px; border-top: 1px solid var(--border);
    font-size: 14px; color: var(--text-mute);
}
.article-meta .author { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-weight: 600; }
.avatar {
    width: 27px; height: 27px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700;
}

.article-hero { margin: 0 0 36px; }
.article-hero img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: var(--radius); background: var(--surface-2);
}

/* --------------------------------- Prose --------------------------------- */
/* Makale gövdesi: okunabilirlik her şeyin önünde. */
.prose {
    max-width: var(--measure);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.78;
    color: var(--text);
}
.prose > * + * { margin-top: 1.4em; }

.prose h2, .prose h3, .prose h4 {
    font-family: var(--sans);
    letter-spacing: -.02em;
    line-height: 1.25;
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2 {
    margin-top: 2.2em; margin-bottom: .6em;
    font-size: 1.6em; font-weight: 700;
    padding-bottom: .3em; border-bottom: 1px solid var(--border);
}
.prose h3 { margin-top: 1.9em; margin-bottom: .5em; font-size: 1.28em; font-weight: 700; }
.prose h4 { margin-top: 1.6em; margin-bottom: .4em; font-size: 1.1em; font-weight: 700; }

.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--brand); font-weight: 700; }

.prose img {
    width: 100%; height: auto;
    border-radius: var(--radius);
    background: var(--surface-2);
    margin-block: .4em;
}

.prose blockquote {
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--brand);
    font-style: italic; color: var(--text-soft);
}

.prose code {
    font-family: var(--mono); font-size: .84em;
    background: var(--surface-2); color: var(--text);
    padding: .16em .42em; border-radius: 5px;
    border: 1px solid var(--border);
}
.prose pre {
    padding: 18px 20px;
    background: #0f1524; color: #dbe3f4;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: var(--mono); font-size: 14px; line-height: 1.65;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.prose table {
    width: 100%; border-collapse: collapse;
    font-family: var(--sans); font-size: 15px;
    display: block; overflow-x: auto;      /* dar ekranda sayfayı taşırmasın */
}
.prose thead th {
    background: var(--surface-2); text-align: left;
    font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--text-soft);
}
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--border); }
.prose tbody tr:nth-child(even) { background: var(--bg-alt); }

.prose hr { margin-block: 2.4em; border: 0; border-top: 1px solid var(--border); }
.prose strong { font-weight: 700; }

/* ------------------------------ İçindekiler ------------------------------ */
.toc-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-inner {
    padding: 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto;
}
.toc-heading {
    margin: 0 0 12px; font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute);
}
.toc-inner ol { list-style: none; margin: 0; padding: 0; }
.toc-inner li.lvl-3 { padding-left: 14px; }
.toc-inner a {
    display: block; padding: 6px 10px;
    border-left: 2px solid transparent;
    color: var(--text-soft); font-size: 13.5px; line-height: 1.45;
}
.toc-inner a:hover { color: var(--brand); text-decoration: none; }
.toc-inner a.active {
    color: var(--brand); font-weight: 600;
    border-left-color: var(--brand);
    background: var(--brand-soft);
    border-radius: 0 6px 6px 0;
}

.toc-mobile {
    margin-bottom: 30px; padding: 14px 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.toc-mobile summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.toc-mobile ol { margin: 12px 0 0; padding-left: 1.3em; font-size: 14.5px; }
.toc-mobile li.lvl-3 { padding-left: 12px; }
.toc-mobile li { margin-block: 5px; }

/* ------------------------------ Makale altı ------------------------------ */
.article-footer { max-width: var(--measure); margin-top: 48px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.share-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 0; margin-bottom: 30px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    font-family: var(--sans);
}
.share-label { font-size: 13px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: .07em; }
.share-bar a, .copy-link {
    display: grid; place-items: center;
    width: 38px; height: 38px; padding: 0;
    background: var(--surface-2); color: var(--text-soft);
    border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.share-bar a:hover, .copy-link:hover {
    background: var(--brand); border-color: var(--brand);
    color: #fff; transform: translateY(-2px);
}
.copy-link.copied { background: var(--accent); border-color: var(--accent); color: #fff; }

.author-box {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 24px; margin-bottom: 30px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--sans);
}
.avatar-lg {
    width: 56px; height: 56px; flex: 0 0 56px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff; border-radius: 50%; font-size: 22px; font-weight: 800;
}
.author-box strong { display: block; font-size: 16px; margin-bottom: 4px; }
.author-box p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

.post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    font-family: var(--sans);
}
.post-nav-link {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s, transform .15s;
}
.post-nav-link:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.post-nav-link span { font-size: 12px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; }
.post-nav-link strong { font-size: 15px; line-height: 1.35; color: var(--text); font-weight: 600; }
.post-nav-link.next { text-align: right; }

.related-section {
    margin-top: 64px; padding: 48px 0 8px;
    background: var(--bg-alt); border-top: 1px solid var(--border);
}

/* --------------------------------- 404 ----------------------------------- */
.error-page { padding: 80px 20px 60px; text-align: center; }
.error-code {
    margin: 0; font-size: clamp(4rem, 14vw, 8rem); font-weight: 800;
    line-height: 1; letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { margin: 14px 0 8px; font-size: 1.7rem; letter-spacing: -.02em; }
.error-page p { color: var(--text-soft); margin: 0 0 24px; }

/* -------------------------------- Footer --------------------------------- */
.site-footer {
    margin-top: 72px; padding: 52px 0 26px;
    background: var(--surface); border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
    margin-bottom: 34px;
}
.footer-brand p { margin: 14px 0 0; color: var(--text-soft); font-size: 14.5px; max-width: 42ch; }
.footer-logo { font-size: 16px; }
.footer-heading {
    margin: 0 0 14px; font-size: 12px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: var(--text-mute);
}
.footer-col nav { display: flex; flex-direction: column; gap: 9px; }
.footer-col nav a { color: var(--text-soft); font-size: 14.5px; }
.footer-col nav a:hover { color: var(--brand); }
.footer-col .count { color: var(--text-mute); font-size: 12px; }

.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 30px; }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-top: 22px; border-top: 1px solid var(--border);
    color: var(--text-mute); font-size: 13.5px;
}
.footer-bottom p { margin: 0; }

.to-top {
    width: 38px; height: 38px; display: grid; place-items: center;
    background: var(--surface-2); color: var(--text-soft);
    border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer; opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s, background .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }

/* ------------------------------- Duyarlılık ------------------------------ */
@media (max-width: 1080px) {
    .article-layout.has-toc { grid-template-columns: 1fr; gap: 0; }
    .toc-sidebar { display: none; }
}
@media (min-width: 1081px) {
    .toc-mobile { display: none; }
}

@media (max-width: 900px) {
    .featured { grid-template-columns: 1fr; }
    .featured-body { padding: 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .menu-toggle { display: flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: var(--header-h);
        flex-direction: column; gap: 0; margin: 0; padding: 10px;
        background: var(--bg); border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 14px; font-size: 15px; }
    .search-box input { width: 130px; }

    .hero { padding: 40px 0 30px; margin-bottom: 30px; }
    .prose { font-size: 17.5px; line-height: 1.72; }
    .article-title { max-width: none; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-link.next { text-align: left; }
    .card-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .search-box { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Hareket duyarlılığı — vestibüler rahatsızlık yaşayanlar için. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .card:hover, .btn:hover, .post-nav-link:hover, .share-bar a:hover { transform: none; }
    .card:hover .card-media img { transform: none; }
}

/* --------------------------------- Baskı --------------------------------- */
@media print {
    .site-header, .site-footer, .toc-sidebar, .toc-mobile,
    .share-bar, .post-nav, .related-section, .reading-progress,
    .to-top, .breadcrumb, .skip-link { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .prose { max-width: none; font-size: 12pt; }
    .prose a { color: #000; text-decoration: underline; }
    .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
    .article-hero img { max-height: 8cm; object-fit: contain; }
}
