/* ==========================================================
   Blog — liste (blog.php) + yazı (blog-post.php)
   ========================================================== */
.blog-hero { position: relative; overflow: hidden; padding-bottom: 26px; }
.blog-hero::before {
    content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(123,94,167,.12), rgba(184,51,106,.06) 50%, transparent 70%); pointer-events: none;
}
.blog-hero .container { position: relative; }
.blog-hero .eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-top: 10px; }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.blog-tags a {
    font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
    color: var(--text); text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.blog-tags a:hover { border-color: var(--brand-light); color: var(--brand); }
.blog-tags a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 575px) {
    .blog-tags { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
    .blog-tags::-webkit-scrollbar { display: none; }
    .blog-tags a { white-space: nowrap; }
}

.blog-list { padding: 32px 0 60px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); }
.blog-meta i { color: var(--brand); margin-right: 5px; }
.blog-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--rose-soft), var(--lav-soft)); color: var(--brand); font-size: 34px; }

/* Öne çıkan */
.blog-featured {
    display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--border);
    border-radius: 24px; overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow-sm);
}
@media (min-width: 992px) { .blog-featured { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.bf-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rose-soft); }
@media (min-width: 992px) { .bf-media { aspect-ratio: auto; min-height: 380px; } }
.bf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.blog-featured:hover .bf-media img { transform: scale(1.035); }
.bf-body { padding: 26px 24px 28px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 992px) { .bf-body { padding: 40px 44px; } }
.blog-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lavender); margin-bottom: 10px; }
.bf-body h2 { font-family: 'Playfair Display', serif; font-size: clamp(23px, 2.6vw, 32px); line-height: 1.25; margin: 0 0 12px; }
.bf-body h2 a { color: var(--ink); text-decoration: none; }
.bf-body h2 a:hover { color: var(--brand); }
.bf-body p { color: var(--text-muted); margin: 0 0 14px; line-height: 1.65; }
.bf-body .btn { align-self: flex-start; }

/* Kart ızgarası */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } .blog-grid.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
    .blog-grid.is-pair .blog-card { flex-direction: row; }
    .blog-grid.is-pair .bc-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 230px; }
}
.blog-card {
    background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bc-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rose-soft); }
.bc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.blog-card:hover .bc-media img { transform: scale(1.05); }
.bc-tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.bc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.bc-body h2 { font-family: 'Playfair Display', serif; font-size: 19px; line-height: 1.35; margin: 8px 0 8px; }
.bc-body h2 a { color: var(--ink); text-decoration: none; }
.bc-body h2 a:hover { color: var(--brand); }
.bc-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-more { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.bc-more i { transition: transform .2s; font-size: 12px; }
.bc-more:hover i { transform: translateX(3px); }

.blog-pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.blog-pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; }
.blog-pager a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.blog-empty i { color: var(--brand); }

/* ---------------- Yazı ---------------- */
.post-head { padding: 30px 0 22px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.post-head .crumbs { justify-content: center; }
.post-head .crumbs span:last-child { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 0 10px; }
.post-tags a { font-size: 12.5px; font-weight: 600; color: var(--lavender); background: var(--lav-soft); padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.post-tags a:hover { color: var(--brand); background: var(--rose-soft); }
.post-head h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.18; max-width: 860px; margin: 0 auto 14px; }
.post-lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-muted); max-width: 720px; margin: 0 auto 16px; line-height: 1.6; }
.post-meta { justify-content: center; }

.post-cover { margin: 8px auto 0; max-width: 1180px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; background: var(--rose-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575px) { .post-cover { border-radius: 18px; margin-left: -4px; margin-right: -4px; } }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 860px; margin: 36px auto 0; }
@media (min-width: 992px) { .post-layout { grid-template-columns: 56px minmax(0, 740px); gap: 40px; max-width: 840px; } }
.post-main { min-width: 0; }
.post-body { font-size: 17px; line-height: 1.85; }
.post-body > p:first-child::first-letter {
    font-family: 'Playfair Display', serif; float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; color: var(--brand);
}
@media (max-width: 575px) { .post-body { font-size: 16px; } }

.post-share { display: flex; gap: 10px; }
.post-share a, .post-share button {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border);
    background: #fff; color: var(--ink); text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; padding: 0;
}
.post-share a:hover, .post-share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.post-share .ps-wa:hover { background: #25d366; border-color: #25d366; }
.ps-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
@media (min-width: 992px) {
    aside.post-share { flex-direction: column; align-items: center; position: sticky; top: 120px; align-self: start; }
}
@media (max-width: 991px) {
    aside.post-share { align-items: center; justify-content: center; }
    aside.post-share .ps-label { margin-right: 4px; }
}

.post-end { margin-top: 34px; padding: 22px; border-radius: 20px; background: linear-gradient(140deg, var(--rose-soft), var(--lav-soft)); position: relative; }
.post-end-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.post-end-share strong { color: var(--ink); font-size: 15.5px; }
.ps-toast { position: absolute; right: 18px; bottom: -14px; background: var(--ink); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 10px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.ps-toast.on { opacity: 1; transform: none; }

.post-nav { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav .pn { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.post-nav .pn:hover { border-color: var(--brand-light); box-shadow: var(--shadow-sm); }
.post-nav .pn small { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.post-nav .pn strong { color: var(--ink); font-family: 'Playfair Display', serif; font-size: 16.5px; line-height: 1.35; font-weight: 600; }
.post-nav .pn.next { text-align: right; }
@media (min-width: 640px) { .post-nav .pn.next { grid-column: 2; } }

.post-related { padding-top: 54px; }

/* ---------- Gece modu ---------- */
html[data-theme="dark"] .post-head { background: linear-gradient(180deg, var(--bg, #17142b) 0%, var(--cream) 100%); }
html[data-theme="dark"] .blog-tags a,
html[data-theme="dark"] .blog-featured,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .blog-pager a,
html[data-theme="dark"] .post-nav .pn,
html[data-theme="dark"] .post-share a,
html[data-theme="dark"] .post-share button { background: var(--surface, #211d3b); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .blog-tags a.active { background: var(--brand-fill, #c4457c); border-color: var(--brand-fill, #c4457c); color: #fff; }
html[data-theme="dark"] .blog-pager a.active { background: var(--brand-fill, #c4457c); border-color: var(--brand-fill, #c4457c); color: #fff; }
html[data-theme="dark"] .bc-tag { background: rgba(23,20,43,.85); color: var(--text); }
html[data-theme="dark"] .post-end { background: linear-gradient(140deg, #2e1f3d, #252046); }
html[data-theme="dark"] .post-share a:hover, html[data-theme="dark"] .post-share button:hover { background: var(--brand-fill, #c4457c); color: #fff; }
html[data-theme="dark"] .ps-toast { background: var(--raised, #2d2856); }
html[data-theme="dark"] .post-cover, html[data-theme="dark"] .bf-media img, html[data-theme="dark"] .bc-media img { filter: brightness(.92); }
