/* Blog: liste ve yazı sayfaları (yalnız blog sayfalarında yüklenir).
   app.css değişkenleri ve sınıfları üzerine kurulur. Yönler mantıksal özelliklerle yazıldı (ar, ur sağdan sola);
   375 px genişlikte yatay kaydırma olmamalı. */

.blog-head h1,
.post-head h1 { overflow-wrap: break-word; hyphens: auto; }
.blog-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.post-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; }
.post-head .lead { margin-bottom: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--faint); font-size: .9rem; }
.post-meta time { color: var(--muted); }

/* Yazı listesi: kartın tamamı tıklanır (başlık bağlantısı kartı kaplar). */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.post-card {
  position: relative;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.post-card:hover { border-color: var(--accent); }
.post-card h2 { margin: 0 0 8px; font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.3; overflow-wrap: break-word; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card .post-meta { margin-bottom: 10px; }
.post-summary { margin: 0; color: var(--muted); overflow-wrap: break-word; }
.blog-feed { margin: 22px 0 0; font-size: .9rem; }
.blog-feed a { color: var(--muted); }
.blog-feed a:hover { color: var(--text); }
.blog-empty p { color: var(--muted); }
.blog-empty p + p { margin-top: 10px; }
.blog-empty a { margin-inline-end: 12px; }

/* Yazı gövdesi */
.post-body { font-size: 1.06rem; line-height: 1.75; overflow-wrap: break-word; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { margin: 1.9em 0 .55em; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.25; }
.post-body h3 { margin: 1.5em 0 .45em; font-size: 1.12rem; line-height: 1.35; }
.post-body ul,
.post-body ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.post-body li { margin: .45em 0; }
.post-body li::marker { color: var(--accent); }
.post-body ol > li::marker { font-weight: 700; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a { text-decoration: underline; text-decoration-color: rgba(167, 139, 250, .45); text-underline-offset: .2em; }
.post-body a:hover { text-decoration-color: currentColor; }

/* İlgili yazılar: boş sütun bırakmadan genişlesin. */
.related-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Uzun çevirilerde düğme metni sarabilsin (app.css'te nowrap). */
.blog-cta .btn { flex-shrink: 0; max-width: 100%; height: auto; min-height: 50px; padding-block: 12px; white-space: normal; text-align: center; }

/* Arap harfli yazılar: harf aralığı bitişik harfleri bozmasın; Urduca (Nestalik) daha yüksek satır ister. */
:is(:lang(ar), :lang(ur)) :is(.eyebrow, .blog-head h1, .post-head h1, .post-body h2, .post-body h3, .post-card h2, .section-title) { letter-spacing: 0; }
:lang(ar) .post-body { line-height: 1.9; }
:lang(ur) .post-body { line-height: 2.1; }
:lang(ur) :is(.blog-head h1, .post-head h1, .post-body h2, .post-body h3, .post-card h2) { line-height: 1.6; }

@media (max-width: 720px) {
  .post-card { padding: 18px; }
  .post-body { font-size: 1rem; }
}
