/* ==========================================================================
   Blog (/blog, /blog/category/{slug}, /blog/{slug}); site.css'in üzerine
   ========================================================================== */

.blog-head { padding-bottom: 8px; }
.blog-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.blog-crumbs a { color: var(--brand); }
.blog-crumbs span { color: var(--muted); }
.blog-crumbs .ti { font-size: 14px; color: var(--muted); }

/* Kartlar */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #0b7cbf, #39b2e4); }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-cover img { transform: scale(1.04); }
.post-card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 44px; }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 19px; line-height: 1.3; }
.post-card h3 a { color: var(--ink); }
.post-card h3 .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-cat { position: relative; z-index: 2; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.post-card-meta { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; font-size: 13px; color: var(--muted); }

.blog-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.blog-pages a, .blog-pages span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 14px; }
.blog-pages a:hover { border-color: var(--brand); color: var(--brand); }
.blog-pages span[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Yazı sayfası */
.blog-preview-bar { background: var(--accent-50); border-bottom: 1px solid #f3d7a6; color: #7a4d00; font-size: 14px; font-weight: 600; padding: 10px 0; }
.post-narrow { max-width: 768px; }
.post-wide { max-width: 1040px; }
.post-head { padding: 48px 0 28px; background: radial-gradient(900px 400px at 85% -10%, rgba(2,121,187,.08), transparent 60%), #fff; }
.post-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; margin: 10px 0 16px; }
.post-head .lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-cover { margin: 0 0 40px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 18px 22px; margin: 0 0 32px; }
.post-toc-title { font: 700 14px var(--font-head); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.post-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }

.post-body { font-size: 18px; line-height: 1.75; color: #233849; }
.post-body > * + * { margin-top: 0; }
.post-body p { margin: 0 0 1.25em; }
.post-body h2 { font-size: 28px; margin: 1.8em 0 .6em; scroll-margin-top: calc(var(--header-h) + 16px); }
.post-body h3 { font-size: 22px; margin: 1.5em 0 .5em; scroll-margin-top: calc(var(--header-h) + 16px); }
.post-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body ul, .post-body ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.post-body li + li { margin-top: .4em; }
.post-body blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--brand); font: 600 21px/1.5 var(--font-head); color: var(--ink); }
.post-body blockquote p { margin: 0; }
.post-body blockquote cite { display: block; margin-top: 10px; font: 500 15px var(--font-body); font-style: normal; color: var(--muted); }
.post-body blockquote cite::before { content: "– "; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-figure { margin: 1.8em 0; }
.post-figure img { width: 100%; height: auto; border-radius: 12px; }
.post-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.post-cta { margin: 1.6em 0; }
.post-cta a.btn { text-decoration: none; }

.post-event { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; margin: 2em 0; }
.post-event-img img { width: 100%; height: 100%; object-fit: cover; }
.post-event-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.post-event-body h3 { font-size: 20px; margin: 0; }
.post-event-body h3 a { color: var(--ink); text-decoration: none; }
.post-event-meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.post-event .btn { margin-top: 6px; text-decoration: none; }

.post-share { display: flex; align-items: center; gap: 8px; margin: 36px 0 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.post-share span { margin-right: 4px; }
.post-share a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 18px; }
.post-share a:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-head { padding-top: 32px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 24px; }
  .post-event { grid-template-columns: 1fr; }
  .post-event-img { aspect-ratio: 16 / 9; }
  .post-cover { border-radius: 12px; margin-bottom: 28px; }
}
