/* ==========================================================================
   BLOG (siteniz.com/blog) — app.css'in ÜZERİNE yüklenir, oradaki değişkenleri
   (--accent, --surface, --text vb.) kullanır. Yalnızca blog sayfalarında
   (blog/home.php, blog/post.php) <link> ile çağrılır.
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.blog-hero { padding: 8px 0 8px; text-align: center; }
.blog-hero h1 { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -.02em; margin: 0 0 10px; }
.blog-hero p { color: var(--text-2); font-size: 16px; max-width: 56ch; margin: 0 auto; }

/* ── Kategori çipleri ─────────────────────────────────────────────────── */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 6px; }
.blog-cats a {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 650;
  background: var(--surface-2); color: var(--text-2); text-decoration: none;
  border: 1px solid transparent; transition: border-color .15s var(--ease), color .15s var(--ease);
}
.blog-cats a:hover, .blog-cats a.is-active { border-color: var(--accent); color: var(--accent); }

/* ── Yazı kartları ────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 32px 0 48px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.post-card__cover { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__cover--empty { display: grid; place-items: center; color: var(--text-3); }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.post-card__title { font-size: 17.5px; font-weight: 750; line-height: 1.35; color: var(--text); margin: 0; }
.post-card__excerpt { font-size: 13.5px; color: var(--text-2); line-height: 1.6; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.post-card__meta span:not(:last-child)::after { content: "·"; margin-left: 8px; }

/* ── Tekil yazı sayfası ───────────────────────────────────────────────── */
.article-head { max-width: 74ch; margin: 20px auto 0; text-align: center; }
.article-head__cat { display: inline-block; margin-bottom: 14px; }
.article-head h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 16px; }
.article-head__meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--text-3); flex-wrap: wrap; }
.article-head__meta span:not(:last-child)::after { content: "·"; margin-left: 8px; }

.article-cover { max-width: 920px; margin: 32px auto; border-radius: var(--radius-lg); overflow: hidden; }
.article-cover img { width: 100%; display: block; }

.article-body { max-width: 74ch; margin: 0 auto 56px; }
.article-body h2 {
  font-size: 24px; letter-spacing: -.01em; color: var(--text);
  margin: 1.6em 0 .6em; scroll-margin-top: 90px;
}
.article-body p { margin: 0 0 1.1em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 16px 20px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-2);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-share { display: flex; align-items: center; gap: 10px; max-width: 74ch; margin: 0 auto 48px; }
.article-share a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--text-2);
  font-size: 13px; font-weight: 650; text-decoration: none; transition: border-color .15s var(--ease), color .15s var(--ease);
}
.article-share a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Boş durum ────────────────────────────────────────────────────────── */
.blog-empty { text-align: center; padding: 60px 20px; color: var(--text-3); }

/* Yazıda bağlantısı geçen ürünler (güncel fiyat/stokla kartlar) */
.article-products { max-width: 960px; margin: 0 auto 36px; }
