/* ==========================================================================
   Menaks Blog — ortak stil
   Tasarım sistemi frontend/landing/home.html ile BİREBİR aynıdır:
   aynı font (Bricolage Grotesque + sistem body fontu), aynı :root değişkenleri,
   aynı buton/başlık/footer stilleri. Burayı değiştirirsen home.html'den kopan
   bir görünüm oluşur — token'lara dokunma, sadece blog bölümlerini düzenle.

   Servis yolu: /blog/style.css  (StaticFiles mount, gerçek dosya — symlink DEĞİL)
   ========================================================================== */

/* ── 1. Tasarım token'ları (home.html :root ile aynı) ───────────────────── */
:root {
  --bg: #ffffff; --surface: #f6f6f7; --surface-2: #eef0f3; --border: #e3e5e9;
  --text: #14161a; --muted: #5b616b;
  --brand: #059669; --brand-2: #34d399; --brand-ink: #065f46;
  --accent: #34d399; --accent-ink: #047857;
  --grad: linear-gradient(120deg, #047857 0%, #10b981 50%, #6ee7b7 100%);
  --grad-soft: linear-gradient(120deg, rgba(5,150,105,.12), rgba(52,211,153,.12));
  --shadow-sm: 0 1px 2px rgba(20,22,26,.06), 0 1px 3px rgba(20,22,26,.05);
  --shadow-md: 0 8px 30px rgba(20,22,26,.08);
  --shadow-lg: 0 24px 60px -12px rgba(4,120,87,.22);
  --r: 16px; --r-sm: 11px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
  /* blog'a özel: uzun metin okunabilirliği */
  --measure: 580px;         /* ölçüldü: 19px gövdede satır başına ~70 karakter */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── 2. Reset / temel ───────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--body); color: var(--text); background: var(--bg);
  line-height: 1.6; font-size: 17px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-ink);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ── 3. Butonlar (home.html ile aynı) ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display);
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -4px rgba(5,150,105,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(5,150,105,.55); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }

/* ── 4. Header (home.html ile aynı) ─────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand-logo { display: inline-flex; align-items: center; gap: 11px; }
.mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: url('/landing/favicon.svg') center/cover no-repeat;
  border: 1px solid rgba(5,150,105,.16);
  font-size: 0; line-height: 0;
  box-shadow: 0 4px 12px -2px rgba(5,150,105,.35);
}
.brand-name { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ── 5. Yazı kolonu + kırıntı (breadcrumb) ─────────────────────────────── */
/* Tüm yazı içeriği tek, ortalanmış okuma kolonunda durur; header/footer
   home.html'deki tam genişlikte kalır. */
main article, .kirinti ol { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.kirinti { padding: 22px 0 0; }
.kirinti ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: 13.5px; color: var(--muted);
}
.kirinti li { display: inline-flex; align-items: center; gap: 10px; }
.kirinti li + li::before { content: "/"; color: var(--border); }
.kirinti a:hover { color: var(--brand-ink); }
.kirinti [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ── 6. Yazı başlığı ────────────────────────────────────────────────────── */
.yazi-head { padding: 26px 0 34px; max-width: var(--measure); margin: 0 auto; }
.yazi-head h1 {
  font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; margin: 12px 0 18px;
  overflow-wrap: break-word;
}
.yazi-ozet { font-size: 19.5px; color: var(--muted); line-height: 1.55; }

/* yazar + tarih şeridi (E-E-A-T) */
.yazi-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}
.yazi-meta .yazar { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.yazi-meta .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0;
}
.yazi-meta .ayrac { color: var(--border); }
.yazi-meta time { white-space: nowrap; }
.yazi-meta .guncel { color: var(--brand-ink); font-weight: 600; }

/* ── 7. Gövde tipografisi (.prose) ──────────────────────────────────────── */
.prose { max-width: var(--measure); margin: 0 auto; font-size: 19px; line-height: 1.75; padding-bottom: 8px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(24px, 3.2vw, 31px); line-height: 1.18;
  margin-top: 2.1em; margin-bottom: .55em; scroll-margin-top: 90px;
}
.prose h3 {
  font-size: clamp(19px, 2.2vw, 22px); line-height: 1.25;
  margin-top: 1.7em; margin-bottom: .45em; scroll-margin-top: 90px;
}
.prose h4 { font-size: 18px; margin-top: 1.5em; margin-bottom: .4em; }
.prose p { overflow-wrap: break-word; }
.prose strong { font-weight: 700; color: var(--text); }
.prose a {
  color: var(--brand-ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(5,150,105,.35);
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .15s, color .15s;
}
.prose a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.35em; display: grid; gap: .55em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5em; }
.prose ul > li::before {
  content: ""; position: absolute; left: .35em; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
.prose ol > li::marker { font-family: var(--display); font-weight: 700; color: var(--brand-ink); }
.prose li > ul, .prose li > ol { margin-top: .5em; }
.prose blockquote {
  border-left: 3px solid var(--accent); background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px; color: var(--muted); font-size: 18px;
}
.prose blockquote p + p { margin-top: .8em; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose code {
  font-family: var(--mono); font-size: .88em; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px;
  overflow-wrap: break-word;
}
.prose pre {
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 16px 18px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; }
.prose figure { margin-top: 1.8em; }
.prose figure img, .prose > img {
  display: block; width: 100%; border-radius: var(--r-sm); border: 1px solid var(--border);
}
.prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* tablo — mobilde yatay kaydırma sarmalayıcı içinde kalır, sayfa kaymaz */
.tablo-kaydir { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-sm); border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.prose thead th {
  background: var(--surface); font-family: var(--display); font-weight: 700;
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.prose tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: none; }

/* ── 8. Kutular: özet, not, kanıt ───────────────────────────────────────── */
.ozet-kutu {
  max-width: var(--measure); margin-left: auto; margin-right: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.ozet-kutu h2, .ozet-kutu h3 { font-size: 15px !important; margin: 0 0 12px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.ozet-kutu ul { margin-top: 0; font-size: 16px; }
.not-kutu {
  background: var(--grad-soft); border: 1px solid transparent; border-radius: var(--r);
  padding: 18px 22px; font-size: 16px; color: var(--brand-ink);
}
.not-kutu strong { color: var(--brand-ink); }
.kaynak { font-size: 14px; color: var(--muted); }

/* ── 9. İçindekiler ─────────────────────────────────────────────────────── */
.icindekiler {
  max-width: var(--measure); background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 24px; margin: 30px auto 4px; box-shadow: var(--shadow-sm);
}
.icindekiler > span { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.icindekiler ol { list-style: none; counter-reset: ic; display: grid; gap: 9px; margin-top: 14px; }
.icindekiler li { counter-increment: ic; font-size: 15.5px; display: flex; gap: 10px; }
.icindekiler li::before { content: counter(ic) "."; color: var(--brand-ink); font-family: var(--display); font-weight: 700; flex: none; }
.icindekiler a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── 10. SSS (home.html details.faq ile aynı) ───────────────────────────── */
.sss { max-width: var(--measure); margin: 56px auto 0; }
.sss > h2 { font-size: clamp(24px, 3.2vw, 31px); margin-bottom: 20px; scroll-margin-top: 90px; }
details.faq { border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 12px; background: var(--bg); overflow: hidden; transition: box-shadow .2s; }
details.faq[open] { box-shadow: var(--shadow-sm); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 19px 22px; font-family: var(--display);
  font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { transition: transform .2s; color: var(--muted); flex: none; }
details.faq[open] summary .chev { transform: rotate(45deg); color: var(--brand); }
details.faq .ans { padding: 0 22px 20px; color: var(--muted); font-size: 16px; line-height: 1.7; }
details.faq .ans p + p { margin-top: .8em; }

/* ── 11. Yazar kartı (E-E-A-T) ──────────────────────────────────────────── */
.yazar-kart {
  max-width: var(--measure); margin: 56px auto 0; display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 26px;
}
.yazar-kart .avatar-lg {
  width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px;
}
.yazar-kart .ad { font-family: var(--display); font-weight: 700; font-size: 17px; }
.yazar-kart .unvan { font-size: 14px; color: var(--muted); margin-top: 2px; }
.yazar-kart .bio { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.65; }
.yazar-kart .tarihler { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* ── 12. CTA kartı (home.html .final-card ile aynı) ─────────────────────── */
.cta-kart {
  max-width: var(--measure); margin: 56px auto 0; text-align: center; color: #fff;
  background: var(--grad); border-radius: 24px; padding: 48px 36px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-kart::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 120%, rgba(255,255,255,.25), transparent); }
.cta-kart h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; position: relative; }
.cta-kart p { font-size: 17px; opacity: .93; margin: 0 auto 26px; max-width: 46ch; position: relative; }
.cta-kart .btn-primary { background: #fff; color: var(--brand-ink); position: relative; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-kart .btn-primary:hover { background: #fff; }
.cta-kart .alt-not { font-size: 13.5px; opacity: .85; margin: 16px 0 0; position: relative; }

/* ── 13. Alt gezinme (blog'a / ana sayfaya dönüş) ───────────────────────── */
.alt-gez {
  max-width: var(--measure); margin: 44px auto 0; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 15px;
}
.alt-gez a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-ink); }
.alt-gez a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 14. Footer (home.html ile aynı) ────────────────────────────────────── */
footer { padding: 56px 0 40px; border-top: 1px solid var(--border); margin-top: 72px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 24px; font-size: 14.5px; color: var(--muted); }
.foot-links a:hover { color: var(--brand-ink); }
.foot-copy { font-size: 13.5px; color: var(--muted); }
.foot .mark { width: 30px; height: 30px; border-radius: 8px; }
.foot .brand-name { font-size: 18px; }

/* ── 15. Duyarlı (mobil) ────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .yazi-head { padding: 22px 0 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }          /* mobilde 16px yan boşluk */
  .prose { font-size: 17px; line-height: 1.72; }
  .prose h2 { margin-top: 1.9em; }
  .brand-name { font-size: 17px; }
  .mark { width: 32px; height: 32px; }
  .nav { gap: 9px; }
  .nav-right { gap: 8px; }
  .nav-right .btn-primary { padding: 9px 14px; font-size: 13px; }
  .yazi-head h1 { font-size: 29px; }
  .yazi-ozet { font-size: 17.5px; }
  .yazar-kart { flex-direction: column; gap: 14px; padding: 22px; }
  .cta-kart { padding: 36px 22px; border-radius: 20px; }
  .ozet-kutu, .icindekiler { padding: 18px; }
  details.faq summary { padding: 16px 18px; font-size: 15.5px; }
  details.faq .ans { padding: 0 18px 18px; font-size: 15.5px; }
  .foot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
