/* ============================================================
   Blog — liste, kart ve yazı detayı
   Editorial katmanının tipografi ve renk değişkenlerini kullanır.
   ============================================================ */

/* ---------- Liste başlığı ---------- */
.blog-hero { padding-block: clamp(56px, 9vw, 120px) clamp(24px, 3vw, 40px); }
.blog-hero .eyebrow {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 22px;
}
.blog-h1 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 96, 'wght' 760;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 1.02; letter-spacing: -.025em;
  margin: 0 0 22px; text-wrap: balance;
}
.blog-lede {
  font: 400 clamp(16px, 1.5vw, 21px)/1.62 var(--f-body);
  color: var(--muted); max-width: 62ch; margin: 0; text-wrap: pretty;
}

.blog-filters { padding-block: clamp(20px, 3vw, 36px); }
.blog-filters .chip { text-decoration: none; }

.blog-empty { padding-block: 80px 120px; }
.blog-empty p, .blog-empty h1 { max-width: 60ch; }

/* ---------- Kartlar ---------- */
.blog-lead { padding-block: 8px 0; }
.blog-grid-wrap { padding-block: clamp(28px, 4vw, 52px) clamp(40px, 6vw, 80px); }

.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(28px, 3.4vw, 52px);
}

.bp-card { position: relative; }
.bp-link {
  display: grid; gap: 22px;
  color: inherit; text-decoration: none;
}
.bp-visual {
  display: block; position: relative;
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 18px;
  background: var(--bg-soft);
  display: grid; place-items: center;
}
.bp-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
.bp-link:hover .bp-visual img { transform: scale(1.045); }
.bp-initial {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 88, 'wght' 800;
  font-size: clamp(52px, 7vw, 96px);
  color: var(--brand); opacity: .5; text-transform: uppercase;
}

.bp-body { display: grid; gap: 12px; }
.bp-cat {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
}
.bp-title {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 100, 'wght' 660;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.16; letter-spacing: -.015em;
  margin: 0; text-wrap: balance;
}
.bp-link:hover .bp-title { color: var(--brand); }
.bp-ex {
  font: 400 15.5px/1.6 var(--f-body);
  color: var(--muted); max-width: 46ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  line-clamp: 3; overflow: hidden;
}
.bp-meta {
  display: flex; align-items: center; gap: 10px;
  font: 400 12.5px/1 var(--f-mono);
  color: var(--muted); letter-spacing: .04em;
}
.bp-meta i { font-style: normal; opacity: .5; }

/* Öne çıkan kart */
.bp-card--lead .bp-link {
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.bp-card--lead .bp-visual { aspect-ratio: 4 / 3; border-radius: 22px; }
.bp-card--lead .bp-title {
  font-size: clamp(28px, 3.6vw, 50px);
  font-variation-settings: 'wdth' 98, 'wght' 720;
  line-height: 1.06;
}
.bp-card--lead .bp-ex {
  font-size: clamp(16px, 1.35vw, 18.5px);
  -webkit-line-clamp: 4; line-clamp: 4; max-width: 54ch;
}

/* ---------- Liste alt çağrısı ---------- */
.blog-cta { padding-block: 0 clamp(60px, 8vw, 110px); }
.bcta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px; padding: clamp(30px, 4vw, 56px);
  border-radius: 22px; background: var(--bg-soft);
}
.bcta h2 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 98, 'wght' 700;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1; margin: 0 0 10px;
}
.bcta p { margin: 0; color: var(--muted); font: 400 16px/1.6 var(--f-body); max-width: 50ch; }

/* ============================================================
   Yazı detayı
   ============================================================ */
.post-head { padding-block: clamp(40px, 6vw, 84px) clamp(22px, 3vw, 38px); }
.post-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font: 400 12.5px/1 var(--f-mono); color: var(--muted);
  margin: 0 0 26px;
}
.post-crumbs a { color: var(--muted); text-decoration: none; }
.post-crumbs a:hover { color: var(--brand); }
.post-crumbs .current {
  max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-cat { margin: 0 0 16px; }
.post-cat a {
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--brand) 34%, transparent);
  border-radius: 999px; padding: 8px 14px; display: inline-block;
}
@supports not (color: color-mix(in oklab, red, blue)) {
  .post-cat a { border-color: var(--line); }
}
.post-cat a:hover { background: var(--brand); color: #fff; }

.post-h1 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 97, 'wght' 740;
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 1.05; letter-spacing: -.024em;
  margin: 0 0 22px; max-width: 22ch; text-wrap: balance;
}
.post-lede {
  font: 400 clamp(17px, 1.6vw, 22px)/1.58 var(--f-body);
  color: var(--muted); max-width: 62ch; margin: 0 0 26px; text-wrap: pretty;
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font: 400 13px/1 var(--f-mono); color: var(--muted);
  letter-spacing: .04em; margin: 0;
}
.post-meta i { font-style: normal; opacity: .5; }

.post-cover { margin: 0 auto; padding-block: 0 clamp(30px, 4vw, 56px); }
.post-cover img {
  width: 100%; height: auto; display: block;
  border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover;
}
.post-cover figcaption {
  font: 400 13px/1.5 var(--f-mono); color: var(--muted);
  margin-top: 12px; max-width: 70ch;
}

/* ---------- Gövde düzeni ---------- */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
  padding-block: 0 clamp(50px, 7vw, 96px);
}
.post-layout--full { grid-template-columns: minmax(0, 1fr); }
.post-layout--full .post-body { max-width: 74ch; margin-inline: auto; }
.post-toc { order: 2; position: sticky; top: calc(var(--wm-header-h, 88px) + 28px); }
.toc-inner {
  border-left: 1px solid var(--line); padding-left: 20px;
  max-height: calc(100vh - var(--wm-header-h, 88px) - 60px);
  overflow: auto;
}
.toc-title {
  font: 500 11px/1 var(--f-mono); letter-spacing: .2em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 16px;
}
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: toc; }
.post-toc li { counter-increment: toc; }
.post-toc a {
  display: block; text-decoration: none; color: var(--muted);
  font: 400 14px/1.45 var(--f-body);
  transition: color .25s ease;
}
.post-toc a::before {
  content: counter(toc, decimal-leading-zero) '  ';
  font-family: var(--f-mono); font-size: 11px; opacity: .55;
}
.post-toc a:hover, .post-toc a.is-current { color: var(--brand); }

.post-body { order: 1; max-width: 74ch; }
.post-body > h2 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 98, 'wght' 700;
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.14; letter-spacing: -.018em;
  margin: clamp(46px, 5vw, 72px) 0 18px;
  scroll-margin-top: calc(var(--wm-header-h, 88px) + 24px);
  text-wrap: balance;
}
.post-body > h2:first-child { margin-top: 0; }
.post-body > h3 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 100, 'wght' 640;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.2; margin: clamp(28px, 3vw, 40px) 0 12px;
}
.post-body p {
  font: 400 clamp(16px, 1.28vw, 18.5px)/1.72 var(--f-body);
  margin: 0 0 20px; text-wrap: pretty;
}
.post-body ul, .post-body ol { margin: 0 0 24px; padding-left: 1.35em; }
.post-body li {
  font: 400 clamp(16px, 1.28vw, 18.5px)/1.68 var(--f-body);
  margin-bottom: 11px;
}
.post-body li::marker { color: var(--brand); }
.post-body strong { font-weight: 640; }
.post-body a { color: var(--brand); text-underline-offset: 3px; }
.post-body blockquote {
  margin: clamp(28px, 3.4vw, 44px) 0;
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px);
  border-left: 3px solid var(--brand);
  background: var(--bg-soft); border-radius: 0 16px 16px 0;
}
.post-body blockquote p {
  margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55;
  font-weight: 500;
}

/* ---------- SSS ---------- */
.post-faq { margin-top: clamp(48px, 6vw, 80px); }
.post-faq h2 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 98, 'wght' 700;
  font-size: clamp(24px, 2.9vw, 36px);
  margin: 0 0 24px; line-height: 1.12;
  scroll-margin-top: calc(var(--wm-header-h, 88px) + 24px);
}
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  font: 600 clamp(16px, 1.4vw, 19px)/1.4 var(--f-body);
  transition: color .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--f-mono); font-size: 22px; line-height: 1;
  color: var(--brand); flex: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand); }
.faq-answer { padding: 0 0 24px; max-width: 68ch; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.68; }

/* ---------- Etiketler, güncelleme, çağrı ---------- */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: clamp(40px, 5vw, 60px) 0 18px; padding: 0;
}
.post-tags span {
  font: 400 12px/1 var(--f-mono); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px;
}
.post-updated {
  font: 400 12.5px/1 var(--f-mono); color: var(--muted);
  margin: 0 0 clamp(40px, 5vw, 64px); opacity: .8;
}
.post-cta {
  padding: clamp(28px, 3.4vw, 46px);
  border-radius: 22px; background: var(--bg-soft);
}
.post-cta h2 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 98, 'wght' 700;
  font-size: clamp(22px, 2.3vw, 31px); line-height: 1.12; margin: 0 0 10px;
}
.post-cta p { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- İlgili yazılar ---------- */
.post-related { padding-block: clamp(50px, 6vw, 84px) clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.post-related > h2 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 98, 'wght' 700;
  font-size: clamp(24px, 2.8vw, 38px); line-height: 1.1;
  margin: 0 0 clamp(28px, 3.4vw, 48px);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { order: 1; position: static; }
  .post-body { order: 2; max-width: none; }
  .toc-inner { max-height: none; border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .post-toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); display: grid; }
}
@media (max-width: 860px) {
  .bp-card--lead .bp-link { grid-template-columns: 1fr; }
  .bp-card--lead .bp-visual { aspect-ratio: 16 / 10; }
  .bcta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .bp-grid { grid-template-columns: 1fr; }
  .post-crumbs .current { max-width: 20ch; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-visual img, .faq-item summary::after { transition: none; }
}

/* ============================================================
   İletişim formu — bal küpü, bildirim ve hata alanları
   ============================================================ */

/* Bal küpü: display:none botlar tarafından tespit edilebildiği için
   alan ekran dışına taşınır. Klavye ve ekran okuyucudan da gizlidir. */
.wm-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
  pointer-events: none;
}

.form-notice {
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 26px;
  font: 400 15.5px/1.6 var(--f-body);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--wm-header-h, 88px) + 24px);
}
.form-notice strong { display: block; margin-bottom: 4px; font-weight: 640; }
.form-notice ul { margin: 8px 0 0; padding-left: 1.2em; }
.form-notice li { margin-bottom: 5px; }

.form-notice.is-ok {
  background: color-mix(in oklab, #1a9c5b 12%, transparent);
  border-color: color-mix(in oklab, #1a9c5b 34%, transparent);
}
.form-notice.is-error {
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  border-color: color-mix(in oklab, var(--brand) 38%, transparent);
}
@supports not (color: color-mix(in oklab, red, blue)) {
  .form-notice.is-ok    { background: #eaf7f0; border-color: #9ed5bb; }
  .form-notice.is-error { background: #fdeeeb; border-color: #f3a794; }
}

.contact-form .cf-turnstile { margin: 10px 0 6px; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
