/*
Theme Name: Mustafa Toker
Theme URI: https://www.mustafatoker.com.tr
Author: Mustafa Toker
Description: mustafatoker.com.tr için kişisel blog teması. Açık ve koyu tema, ⌘K arama, okuma odaklı yazı sayfası.
Version: 2.5.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: mustafatoker
*/

/* ---------- Renk tokenları ---------- */
:root {
  --bg: #FAF9F5; --surface: #FFFFFF; --sub: #F5F4ED;
  --ink: #141413; --ink2: #3D3D3A; --muted: #5E5D59; --faint: #73726C;
  --line: rgba(31,30,29,.12); --line2: rgba(31,30,29,.24); --hover: rgba(115,114,108,.10);
  --accent: #D97757; --accent-text: #A15840; --accent-tint: rgba(217,119,87,.12);
  --tip-bg: rgba(120,140,93,.10); --tip-line: rgba(120,140,93,.35); --tip-icon: #5C6E45;
  --warn-bg: rgba(201,168,45,.12); --warn-line: rgba(201,168,45,.40); --warn-icon: #8A7118;
  --note-bg: rgba(106,155,204,.10); --note-line: rgba(106,155,204,.38); --note-icon: #3F6F9E;
  --code-line: rgba(31,30,29,.18); --scrim: rgba(20,20,19,.38);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Courier New', monospace;
  --wrap: 1120px; --read: 720px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #262624; --surface: #30302E; --sub: #1F1E1D;
    --ink: #FAF9F5; --ink2: #DEDCD1; --muted: #C2C0B6; --faint: #A3A198;
    --line: rgba(222,220,209,.12); --line2: rgba(222,220,209,.22); --hover: rgba(250,249,245,.06);
    --accent-text: #E49D86; --accent-tint: rgba(217,119,87,.16);
    --tip-bg: rgba(120,140,93,.14); --tip-line: rgba(160,184,128,.35); --tip-icon: #A9C08A;
    --warn-bg: rgba(201,168,45,.12); --warn-line: rgba(217,188,85,.35); --warn-icon: #D9BC55;
    --note-bg: rgba(106,155,204,.13); --note-line: rgba(143,181,219,.35); --note-icon: #8FB5DB;
    --code-line: rgba(222,220,209,.14); --scrim: rgba(10,10,9,.62);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #262624; --surface: #30302E; --sub: #1F1E1D;
  --ink: #FAF9F5; --ink2: #DEDCD1; --muted: #C2C0B6; --faint: #A3A198;
  --line: rgba(222,220,209,.12); --line2: rgba(222,220,209,.22); --hover: rgba(250,249,245,.06);
  --accent-text: #E49D86; --accent-tint: rgba(217,119,87,.16);
  --tip-bg: rgba(120,140,93,.14); --tip-line: rgba(160,184,128,.35); --tip-icon: #A9C08A;
  --warn-bg: rgba(201,168,45,.12); --warn-line: rgba(217,188,85,.35); --warn-icon: #D9BC55;
  --note-bg: rgba(106,155,204,.13); --note-line: rgba(143,181,219,.35); --note-icon: #8FB5DB;
  --code-line: rgba(222,220,209,.14); --scrim: rgba(10,10,9,.62);
  color-scheme: dark;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.lk:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.serif { font-family: var(--serif); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.hdr-left { display: flex; align-items: center; gap: 36px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; flex-shrink: 0; }
.mark { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #141413; font-family: var(--serif); font-size: 16px; font-weight: 600; font-style: italic; letter-spacing: -.02em; flex-shrink: 0; }
.mark.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a, .icon-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.site-nav a::before { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .current-menu-item > a::before, .site-nav .current_page_item > a::before, .site-nav a[aria-current="page"]::before { background: var(--accent); }
.site-nav a:hover, .icon-btn:hover, .nav-row:hover { background: var(--hover); }
.hdr-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn { border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; padding: 0 10px; }
.kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; font-family: var(--mono); font-size: 11px; }
.theme-btn { width: 40px; justify-content: center; padding: 0; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.pill { display: flex; align-items: center; height: 40px; margin-left: 8px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; }

/* ---------- Ana sayfa ---------- */
.hero { display: flex; flex-direction: column; gap: 28px; padding: 52px 0 64px; }
.hero-body .term { max-width: none; margin-top: 0; padding: 26px 32px 28px; }
.term-answer > p { max-width: 78ch; }
.term-answer + .tl-in { margin-top: 22px; }
.t-stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 18px; margin: 0; padding: 0 0 0 18px; list-style: none; color: #E3DACC; }
.t-stack-wrap { position: relative; }
.t-loader { position: absolute; top: 0; left: 18px; right: 0; display: flex; align-items: baseline; gap: 8px; color: #E49D86; }
.t-loader[hidden] { display: none; }
.t-loader .lsp { width: 1.1em; }
.t-loader .lw { color: #E3DACC; }
.t-loader .lt { color: #87867F; font-size: .92em; }
.t-stack li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.prompt { display: flex; align-items: center; gap: 10px; min-height: 28px; margin: 0; font-family: var(--mono); font-size: 14px; white-space: nowrap; overflow: hidden; }
.prompt .ps1 { flex-shrink: 0; color: var(--faint); }
.hero .prompt .cmd { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--accent-text); font-weight: 500; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero .prompt .cmd:hover, .hero .prompt .cmd:focus-visible { text-decoration-style: solid; }
.prompt .caret { flex-shrink: 0; width: 8px; height: 18px; margin-left: -6px; background: var(--accent); border-radius: 1px; }
.mt-anim .prompt .caret { animation: mt-blink 1.05s steps(1) infinite; }
.mt-anim .prompt.typing .caret { animation: none; }
@keyframes mt-blink { 50% { opacity: 0; } }
/* JS hazır olana kadar ilk komutu gizle; JS hiç çalışmazsa 1.5 sn sonra kendiliğinden görünür. */
.mt-anim .prompt:not(.ready) .cmd-text { opacity: 0; animation: mt-reveal 0s 1.5s forwards; }
@keyframes mt-reveal { to { opacity: 1; } }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 6vw, 60px); font-weight: 400; line-height: 1.05; }
.hero .lead { margin: 0; max-width: 660px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; }
.hero .lead strong { color: var(--accent-text); font-weight: 600; }
.hero .lead a, .hero .sub a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.hero .sub { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.term { display: flex; flex-direction: column; gap: 6px; max-width: 720px; margin-top: 4px; padding: 22px 26px 24px; border: 1px solid var(--code-line); border-radius: 16px; background: #1A1918; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #C2C0B6; }
.tl { min-height: 1.7em; }
.tl-in { margin-top: 12px; color: #FAF9F5; font-weight: 500; }
.tl-in:first-child { margin-top: 0; }
.tl-in .t-ps { color: #E49D86; }
.t-agents { display: grid; grid-template-columns: max-content max-content minmax(0,1fr); column-gap: 18px; padding-left: 18px; }
.a-role { color: #E3DACC; } .a-model { color: #8FB5DB; } .a-job { color: #87867F; }
.t-skills { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-left: 18px; }
.t-skills a { color: #E3DACC; text-decoration: underline dotted; text-underline-offset: 4px; }
.t-skills a:hover { color: #E49D86; text-decoration-style: solid; }
.t-skills span { color: #E3DACC; }
.tl-steps { padding-left: 18px; color: #A3A198; }
.tl-step .st { display: inline-block; width: 1.1em; color: #A9C08A; }
.tl-step .sf { color: #DEDCD1; }
.term-answer { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(250,249,245,.08); font-size: 15px; line-height: 1.75; color: #E8E6DC; }
.term-out { margin: 0; }
.term-out:last-child { color: #C2C0B6; }
.term-out strong { color: #E49D86; font-weight: 500; }
.term-out a { color: #E49D86; }
/* Animasyon: JS satırları sırayla açar. Yer baştan ayrılır, sayfa kaymaz. */
.mt-anim .term.playing .tl, .mt-anim .term.playing .term-answer { visibility: hidden; }
.mt-anim .term.playing .shown { visibility: visible; }
.mt-anim .term-answer.shown { animation: mt-line .35s ease-out; }
.tl-step.running .st { color: #E49D86; }
@keyframes mt-line { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--ink2); }

.layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; column-gap: 72px; align-items: start; padding-bottom: 104px; }
.layout.no-hero { padding-top: 64px; }
.featured { display: flex; flex-direction: column; gap: 14px; padding: 36px 36px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.card:hover, .featured:hover { border-color: rgba(217,119,87,.6); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.featured-title { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); font-weight: 400; line-height: 1.18; }
.featured-excerpt { font-size: 17px; line-height: 1.65; color: var(--muted); }
.read-more { display: flex; align-items: center; gap: 8px; padding-top: 4px; font-size: 15px; font-weight: 600; color: var(--accent-text); }
.list-title { margin: 0; padding-top: 56px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.list-title.first { padding-top: 0; }
.archive-desc { margin: 12px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.year { display: flex; align-items: center; gap: 14px; margin: 0; padding: 36px 0 4px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.year::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }
.post-row { display: grid; grid-template-columns: 116px minmax(0,1fr); column-gap: 28px; padding: 28px 0; }
.post-row + .post-row { border-top: 1px solid var(--line); }
.post-row .date { padding-top: 6px; font-size: 14px; color: var(--faint); }
.post-row .body { display: flex; flex-direction: column; gap: 8px; }
.post-row .t { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.3; }
.post-row p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.cat { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pager .btns { display: flex; gap: 8px; }
.btn-ghost { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 999px; color: var(--ink); font-weight: 600; }
.btn-ghost:hover { background: var(--hover); }
.empty { padding: 40px 0; font-size: 17px; color: var(--muted); }

/* ---------- Kenar çubuğu ---------- */
.sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.box { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.box h2 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.box-head { display: flex; align-items: baseline; justify-content: space-between; }
.box-head small { font-size: 12px; color: var(--faint); }
.now { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.now li { display: flex; gap: 10px; }
.now li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.nav-rows { display: flex; flex-direction: column; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin: 0 -10px; padding: 0 10px; border-radius: 8px; font-size: 15px; color: var(--ink2); }
.nav-row small { font-size: 13px; color: var(--faint); }
.box p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.btn-accent { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 4px; border-radius: 999px; background: var(--accent); color: #141413; font-size: 14px; font-weight: 600; }
.social { display: flex; gap: 16px; padding-top: 4px; font-size: 14px; }
.social a { display: flex; align-items: center; min-height: 36px; color: var(--ink2); }

/* ---------- Yazı sayfası ---------- */
.article { display: flex; flex-direction: column; gap: 22px; width: min(var(--read), 100% - 40px); margin-inline: auto; padding: 72px 0 40px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { display: flex; align-items: center; min-height: 32px; }
.crumbs .cur { color: var(--accent-text); font-weight: 600; }
.article h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5.4vw, 50px); font-weight: 400; line-height: 1.1; }
.article .dek { margin: 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline .who { display: flex; align-items: center; gap: 12px; }
.byline .who div { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.byline .name { font-weight: 600; }
.byline .when { color: var(--faint); }
.btn-outline { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; color: var(--ink2); font-family: var(--sans); font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-outline:hover { background: var(--hover); }
.toc { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border-radius: 14px; background: var(--sub); }
.toc > span { padding-bottom: 6px; font-size: 13px; font-weight: 600; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; color: var(--ink2); }
.toc a span { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }

/* İçerik tipografisi */
.entry { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.8; color: var(--ink2); overflow-wrap: break-word; }
.entry > * { margin: 0; }
.entry h2 { margin-top: 28px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.25; color: var(--ink); scroll-margin-top: 24px; }
.entry h3 { margin-top: 16px; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.3; color: var(--ink); scroll-margin-top: 24px; }
.entry h4 { font-size: 18px; font-weight: 600; color: var(--ink); }
.entry a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry strong { color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: 6px; }
.entry blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 20px; color: var(--ink); }
.entry blockquote p { margin: 0; }
.entry hr { width: 100%; height: 1px; border: 0; background: var(--line); }
.entry figure { display: flex; flex-direction: column; gap: 8px; }
.entry figcaption, .entry .wp-caption-text { font-size: 14px; line-height: 1.5; color: var(--faint); text-align: center; }
.entry img { border-radius: 12px; }
.entry .wp-caption { max-width: 100%; }
.entry :not(pre) > code { font-family: var(--mono); font-size: .8em; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--sub); color: var(--ink); }
.entry table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); font-size: 15px; line-height: 1.6; }
.entry th { padding: 12px 18px; background: var(--sub); border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 600; color: var(--ink); }
.entry td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry tr:last-child td { border-bottom: 0; }
.entry .wp-block-table { overflow-x: auto; }
.entry iframe, .entry video { max-width: 100%; }

/* Kod blokları: iki temada da koyu */
.code-wrap { position: relative; }
.entry pre { margin: 0; border: 1px solid var(--code-line); border-radius: 14px; background: #1A1918; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #E8E6DC; }
.entry pre code { font-family: inherit; font-size: inherit; padding: 0; border: 0; background: none; color: inherit; }
.copy-code { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(250,249,245,.08); color: #C2C0B6; font-family: var(--sans); font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.code-wrap:hover .copy-code, .copy-code:focus-visible { opacity: 1; }
@media (hover: none) { .copy-code { opacity: 1; } }
/* SyntaxHighlighter eklentisi: eklentinin seçili temasından bağımsız olarak koyu palet */
.entry .syntaxhighlighter { margin: 0 !important; padding: 14px 0 !important; border: 1px solid var(--code-line) !important; border-radius: 14px !important; overflow: auto !important; background: #1A1918 !important; font-size: 14px !important; }
.entry .syntaxhighlighter, .entry .syntaxhighlighter * { font-family: var(--mono) !important; }
.entry .syntaxhighlighter .line.alt1, .entry .syntaxhighlighter .line.alt2, .entry .syntaxhighlighter table, .entry .syntaxhighlighter td { background: #1A1918 !important; }
.entry .syntaxhighlighter .line.highlighted.alt1, .entry .syntaxhighlighter .line.highlighted.alt2 { background: rgba(217,119,87,.14) !important; }
.entry .syntaxhighlighter table td.code .line { padding: 0 20px 0 14px !important; line-height: 1.7 !important; }
.entry .syntaxhighlighter table td.gutter .line { padding: 0 10px 0 16px !important; border-right: 1px solid rgba(250,249,245,.08) !important; color: #6F6D66 !important; line-height: 1.7 !important; }
.entry .syntaxhighlighter .plain, .entry .syntaxhighlighter .plain a, .entry .syntaxhighlighter .script, .entry .syntaxhighlighter .variable, .entry .syntaxhighlighter code { color: #E8E6DC !important; }
.entry .syntaxhighlighter .keyword, .entry .syntaxhighlighter .preprocessor { color: #E08A6C !important; font-weight: 400 !important; }
.entry .syntaxhighlighter .string, .entry .syntaxhighlighter .string a { color: #A9C08A !important; }
.entry .syntaxhighlighter .comments, .entry .syntaxhighlighter .comments a { color: #87867F !important; font-style: italic !important; }
.entry .syntaxhighlighter .functions, .entry .syntaxhighlighter .color1, .entry .syntaxhighlighter .color1 a { color: #8FB5DB !important; }
.entry .syntaxhighlighter .value, .entry .syntaxhighlighter .constants, .entry .syntaxhighlighter .color2, .entry .syntaxhighlighter .color3 { color: #E3DACC !important; }
.entry .syntaxhighlighter .toolbar { display: none !important; }

/* Callout'lar */
.callout { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid; border-radius: 12px; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.callout .ic { display: flex; flex-shrink: 0; padding-top: 2px; }
.callout .tx > :first-child { margin-top: 0; } .callout .tx > :last-child { margin-bottom: 0; }
.callout.tip { border-color: var(--tip-line); background: var(--tip-bg); } .callout.tip .ic { color: var(--tip-icon); }
.callout.warn { border-color: var(--warn-line); background: var(--warn-bg); } .callout.warn .ic { color: var(--warn-icon); }
.callout.note { border-color: var(--note-line); background: var(--note-bg); } .callout.note .ic { color: var(--note-icon); }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; font-size: 14px; color: var(--faint); }
.tags a { padding: 4px 12px; border: 1px solid var(--line2); border-radius: 999px; color: var(--ink2); font-weight: 500; }
.author { display: grid; grid-template-columns: 56px minmax(0,1fr); column-gap: 18px; margin-top: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.author .in { display: flex; flex-direction: column; gap: 6px; }
.author .n { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.author p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.author .links { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 4px; font-size: 14px; font-weight: 600; }
.author .links a { display: flex; align-items: center; min-height: 36px; color: var(--accent-text); }
.adjacent { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; padding-top: 8px; }
.adjacent a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.adjacent a.next { align-items: flex-end; text-align: right; grid-column: 2; }
.adjacent small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.adjacent span { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.35; }
.comments-wrap { width: min(var(--read), 100% - 40px); margin: 0 auto 80px; }
.comments-wrap #disqus_thread { max-width: 100%; }
.comments-area h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.comments-area ol { padding-left: 0; list-style: none; }
.comments-area input[type=text], .comments-area input[type=email], .comments-area input[type=url], .comments-area textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.comments-area .submit { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Projeler ---------- */
.page-head { display: flex; flex-direction: column; gap: 14px; padding: 72px 0 40px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 50px); font-weight: 400; line-height: 1.1; }
.page-head p { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; padding-bottom: 104px; }
.project { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.project.featured-p { grid-column: 1 / -1; }
.project .kind { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.project .n { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.project p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.project .chips { justify-content: flex-start; padding-top: 6px; }
.page-body { padding-bottom: 104px; }
.projects:has(+ .past) { padding-bottom: 72px; }
.past { padding-bottom: 104px; }
.past h2 { margin: 0 0 20px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.2; }
.past-table { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.past-row { display: grid; grid-template-columns: 220px minmax(0,1fr); column-gap: 24px; padding: 16px 22px; font-size: 16px; line-height: 1.6; }
.past-row + .past-row { border-top: 1px solid var(--line); }
.past-area { font-weight: 600; color: var(--ink); }
.past-items { color: var(--ink2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--sub); }
.ft-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 48px 0 40px; }
.ft-about { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.ft-about .brand-name { font-size: 19px; }
.ft-about p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.ft-cols { display: flex; gap: 64px; font-size: 14px; }
.ft-cols nav { display: flex; flex-direction: column; }
.ft-cols .h { padding-bottom: 6px; font-size: 13px; font-weight: 600; }
.ft-cols a { display: flex; align-items: center; min-height: 34px; color: var(--muted); }
.ft-bot { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.ft-bot a { display: flex; align-items: center; min-height: 44px; }

/* ---------- ⌘K arama ---------- */
.palette { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: var(--scrim); }
.palette.open { display: flex; }
.palette-box { display: flex; flex-direction: column; width: min(640px, 100%); max-height: 70vh; overflow: hidden; border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 64px rgba(0,0,0,.28); }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-in input { flex-grow: 1; height: 58px; border: 0; background: transparent; color: var(--ink); font-family: var(--sans); font-size: 17px; }
.palette-in input:focus { outline: none; }
.palette-in input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.palette-in input::placeholder { color: var(--faint); }
.palette-in button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px; }
.palette-list { overflow-y: auto; padding: 8px; }
.palette-list .lbl { padding: 10px 12px 6px; font-size: 12px; font-weight: 600; color: var(--faint); }
.palette-list a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; font-size: 15px; color: var(--ink2); }
.palette-list a[aria-selected="true"] { background: var(--hover); color: var(--ink); }
.palette-list a svg { flex-shrink: 0; color: var(--faint); }
.palette-list .msg { padding: 18px 12px; font-size: 15px; color: var(--muted); }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--sub); font-size: 12px; color: var(--faint); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0,1fr); }
  .hero { padding: 56px 0 40px; }
  .chips { justify-content: flex-start; }
  .sidebar { position: static; padding-top: 56px; }
}
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 10px; }
  .hdr-left { display: contents; }
  .brand { order: 1; }
  .hdr-right { order: 2; margin-left: auto; }
  .site-nav { order: 3; width: calc(100% + 24px); overflow-x: auto; margin: 4px -12px 6px; }
  .brand-name { font-size: 19px; }
  .pill, .icon-btn .kbd { display: none; }
  .prompt { font-size: 13px; gap: 8px; }
  .prompt .ps1-long { display: none; }
  .term { padding: 18px 18px 20px; font-size: 13px; }
  .t-agents { grid-template-columns: max-content minmax(0,1fr); padding-left: 12px; }
  .a-job { display: none; }
  .t-skills, .tl-steps { padding-left: 12px; }
  .hero-body .term { padding: 18px 18px 20px; }
  .t-stack { grid-template-columns: repeat(2, minmax(0,1fr)); padding-left: 12px; }
  .t-stack li { white-space: normal; }
  .term-answer { font-size: 14px; }
  .post-row { grid-template-columns: minmax(0,1fr); row-gap: 4px; padding: 22px 0; }
  .post-row .date { padding-top: 0; }
  .featured { padding: 24px; }
  .projects, .adjacent { grid-template-columns: minmax(0,1fr); }
  .past-row { grid-template-columns: minmax(0,1fr); row-gap: 2px; }
  .adjacent a.next { grid-column: auto; }
  .article { padding-top: 40px; }
  .ft-cols { gap: 40px; }
}
.ft-cols li { list-style: none; }

/* ---------- Çerez onayı ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; width: min(760px, 100% - 32px); margin-inline: auto; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,.18); font-size: 14px; line-height: 1.55; color: var(--ink2); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 320px; margin: 0; }
.consent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.consent-btns { display: flex; gap: 8px; }
.consent-yes { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.article > .callout { margin-top: 2px; }
