/* ==========================================================================
   Veri Merkezi — yazi.css
   Yalnız rehber yazı sayfalarında (rehber/*.html) ek_head ile yüklenir.
   site.css bileşenlerini (page-hero, breadcrumb, prose, faq, post) tamamlar;
   renkler site.css değişkenlerinden gelir.
   ========================================================================== */

/* Üst bölüm: kategori, başlık, yazar / tarih / okuma süresi */
.yazi-hero { padding-bottom: 32px; }
.yazi-hero .inner { max-width: 860px; }
.yazi-bilgi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; color: var(--ink-60); }
.yazi-bilgi > span { display: inline-flex; align-items: center; gap: 6px; }
.yazi-bilgi b { font-weight: 500; color: var(--ink-80); }
.yazi-bilgi svg { width: 16px; height: 16px; color: var(--ink-40); flex: none; }

/* Üst bölüm (12.10.2026): kart içinde iki sütun — solda başlık ve bilgiler, sağda kapak (yoksa sabit site görseli) */
.yazi-ust { padding: 28px 0 8px; }
.yazi-ust-kart { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; background: var(--surface); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-soft); }
.yazi-ust-metin { display: grid; gap: 16px; align-content: center; padding: 14px 10px 6px; min-width: 0; }
.yazi-ust .breadcrumb { min-width: 0; }
.yazi-ust .breadcrumb > span[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; display: inline-block; vertical-align: bottom; }
.yazi-ust .tag { justify-self: start; }
.yazi-ust h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.yazi-ust .lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-60); max-width: 60ch; }
.yazi-ust .yazi-bilgi { padding-top: 14px; border-top: 1px solid var(--line); }
.yazi-yazar { gap: 8px !important; }
.yazi-yazar-ic { width: 28px; height: 28px; border-radius: 999px; background: var(--deep); color: var(--on-dark); font-size: 11px; font-weight: 700; letter-spacing: .02em; display: inline-grid; place-items: center; }
.yazi-ust-gorsel { margin: 0; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: var(--canvas); min-height: 220px; }
.yazi-ust-gorsel img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
@media (min-width: 1000px) {
  .yazi-ust { padding-top: 40px; }
  .yazi-ust-kart { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px; padding: 18px; }
  .yazi-ust-metin { padding: 26px 8px 22px 26px; }
  .yazi-ust-gorsel img { aspect-ratio: auto; min-height: 100%; }
}
.yazi-ust + .section { padding-top: 32px !important; }

/* Kapak görseli (statik tohum yazılar) */
.yazi-kapak { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.yazi-kapak img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 720px) { .yazi-kapak img { aspect-ratio: 21 / 9; } }

/* Düzen: solda içindekiler (masaüstünde yapışkan), sağda metin */
.yazi-duzen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1000px) {
  .yazi-duzen { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
  .yazi-yan { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.yazi-yan { display: grid; gap: 14px; min-width: 0; }
.yazi-kutu { background: var(--surface); border-radius: var(--r-card); padding: 20px; display: grid; gap: 12px; }
.yazi-kutu > b, .yazi-kutu > h2 { font-family: var(--font); font-weight: 500; font-size: 14px; letter-spacing: 0; line-height: 1.4; color: var(--ink-60); }
.yazi-icindekiler { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-60); }
.yazi-icindekiler a { color: var(--ink-80); }
.yazi-icindekiler a:hover { color: var(--blue); }
.yazi-urun p { font-size: 14px; line-height: 1.5; color: var(--ink-60); }
.yazi-urun a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--blue); }
.yazi-urun a:hover { text-decoration: underline; text-underline-offset: 3px; }
.yazi-urun a svg { width: 14px; height: 14px; }

/* Metin */
.yazi-metin { min-width: 0; max-width: none; background: var(--surface); border-radius: var(--r-lg); padding: 28px 20px; overflow-wrap: break-word; }
@media (min-width: 640px) { .yazi-metin { padding: 44px 48px; } }
.yazi-metin h2 { scroll-margin-top: calc(var(--nav-h) + 24px); }
.yazi-metin > p:first-child { font-size: 18px; color: var(--ink); }
.yazi-metin strong { font-weight: 500; color: var(--ink); }
.yazi-metin ol { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; }
.yazi-metin ul { gap: 10px; }
.yazi-metin li { padding-left: 2px; }
.yazi-metin li::marker { color: var(--ink-30); }

/* Tablo: dar ekranda kendi kabında kayar */
.yazi-tablo { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.yazi-tablo table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.yazi-tablo th, .yazi-tablo td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.yazi-tablo thead th { font-weight: 500; font-size: 13.5px; color: var(--ink-60); background: var(--surface-2); }
.yazi-tablo tbody th { font-weight: 500; color: var(--ink); }
.yazi-tablo tbody tr:last-child > * { border-bottom: 0; }
.yazi-tablo caption { caption-side: top; text-align: left; padding: 12px 16px 0; font-size: 13.5px; color: var(--ink-60); }

/* Örnek mesaj / şablon kutusu */
.yazi-metin .yazi-ornek { background: var(--canvas); border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; padding: 16px 18px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.yazi-metin .yazi-ornek--kotu { border-left-color: var(--ink-30); }

/* Vurgulu not (formül, özet) */
.yazi-not { background: var(--blue-08); border-radius: var(--r-md); padding: 18px 20px; color: var(--ink); }
.yazi-not p { color: var(--ink); }

/* Yazı içindeki SSS */
.yazi-metin .faq { margin-top: 20px; }
.yazi-metin .faq details { background: var(--canvas); }
.yazi-metin .faq summary { font-size: 16.5px; padding: 18px 20px; }
.yazi-metin .faq .answer { padding: 0 20px 20px; }
.yazi-metin .faq .answer p { font-size: 16px; }

/* İlgili rehberler */
.yazi-ilgili .head { margin-bottom: 28px; }
.yazi-ilgili .post .cover img { aspect-ratio: 16 / 9; }
.yazi-ilgili .post { align-content: start; }

/* Yazı içi tablolar (17.10.2026): karşılaştırma tabloları stilsizdi ve telefonda taşıyordu → yana kaydırılabilir, satır çizgili */
.yazi-metin table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; font-size: 14.5px; margin: 22px 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card, 12px); }
.yazi-metin th, .yazi-metin td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); min-width: 130px; line-height: 1.5; }
.yazi-metin thead th { font-weight: 500; font-size: 13.5px; color: var(--ink-60); background: var(--surface-2, transparent); white-space: nowrap; }
.yazi-metin tbody tr:last-child td { border-bottom: 0; }
.yazi-metin tbody td:first-child { font-weight: 500; color: var(--ink); }
