/* ============================================================
   assets/css/blog.css — Memur Kahvesi Blog Public Stilleri
   ============================================================ */

/* ── Blog section wrapper ────────────────────────────────── */
.blog-section-wrap { width: min(100% - (var(--page-gutter, 1.25rem) * 2), var(--content-max, 1220px)); max-width: none; margin: 0 auto; padding: 0; }
.blog-section-title {
    font-size: 1.05rem; font-weight: 700; color: #1e293b;
    display: flex; align-items: center; gap: .5rem;
    margin: 0 0 1.1rem;
}
.blog-live-dot {
    display: inline-block; width: 10px; height: 10px;
    background: #ef4444; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(239,68,68,.15);
    animation: bldot 2s infinite; flex-shrink: 0;
}
.blog-live-dot.blog-live-dot-blue { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
@keyframes bldot { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }

.blog-eyebrow {
    display: inline-block;
    background: rgba(59,130,246,0.18);
    border: 1px solid rgba(59,130,246,0.35);
    color: #93c5fd; font-size: .75rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .28rem .85rem; border-radius: 999px; margin-bottom: .9rem;
}

/* ── Kategori şeridi ─────────────────────────────────────── */
.blog-cat-strip {
    background: #fff;
    border-bottom: 2px solid #f1f5f9;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.blog-cat-strip-inner {
    width: min(100% - (var(--page-gutter, 1.25rem) * 2), var(--content-max, 1220px)); max-width: none; margin: 0 auto; padding: 0;
    display: flex; gap: .35rem;
    overflow-x: auto; scrollbar-width: none;
}
.blog-cat-strip-inner::-webkit-scrollbar { display: none; }
.blog-cat-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .65rem .85rem; font-size: .82rem; font-weight: 600;
    color: #64748b; text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap; transition: all .15s;
    border-left: none; border-right: none; border-top: none;
}
.blog-cat-chip:hover { color: #1e293b; }
.blog-cat-chip.active-chip, .blog-cat-chip:hover { border-bottom-color: #3b82f6; color: #2563eb; }
.blog-cat-chip-count {
    background: #f1f5f9; color: #94a3b8;
    font-size: .68rem; font-weight: 600;
    padding: 1px 6px; border-radius: 999px;
}

/* ── Öne çıkan section ───────────────────────────────────── */
.blog-featured-section { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 2rem 0; }
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}
@media(max-width:768px) { .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; } }
.featured-card { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: box-shadow .2s, transform .2s; }
.featured-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.featured-main { grid-row: span 2; }
.featured-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.featured-img-wrap { position: relative; overflow: hidden; }
.featured-main .featured-img-wrap { aspect-ratio: 16/9; }
.featured-side .featured-img-wrap { aspect-ratio: 2/1; }
.featured-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-card:hover .featured-img-wrap img { transform: scale(1.04); }
.featured-img-ph {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
    font-size: 2.5rem; color: rgba(255,255,255,.7);
}
.featured-img-wrap.has-image .featured-img-ph,
.post-thumb.has-image .featured-img-ph,
.sidebar-recent-thumb.has-image .sidebar-recent-placeholder {
    display: none;
}

.featured-img-wrap.is-image-missing .featured-img-ph,
.post-thumb.is-image-missing .featured-img-ph,
.sidebar-recent-thumb.is-image-missing .sidebar-recent-placeholder {
    display: flex;
}
.featured-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.featured-body h3 {
    font-size: 1.1rem; font-weight: 700; color: #1e293b;
    line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-side .featured-body h3 { font-size: .95rem; }
.featured-body p { font-size: .85rem; color: #64748b; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Post card hover renk ────────────────────────────────── */
.post-card:hover h3 { color: #2563eb; }
.post-card h3 { transition: color .15s; }

/* ── Sidebar son yazılar ─────────────────────────────────── */
.sidebar-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.sidebar-recent-list li a { display: flex; gap: .65rem; text-decoration: none; color: inherit; transition: opacity .15s; }
.sidebar-recent-list li a:hover { opacity: .8; }
.sidebar-recent-thumb { width: 58px; height: 58px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-info { display: flex; flex-direction: column; gap: .2rem; justify-content: center; }
.sidebar-recent-title { font-size: .82rem; font-weight: 600; color: #1e293b; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-recent-date { font-size: .72rem; color: #94a3b8; }

/* ── Sidebar CTA butonları ───────────────────────────────── */
.sidebar-cta .btn-cta { display: block; margin-top: .5rem; }

/* ── Blog main layout ────────────────────────────────────── */
.blog-main-layout { padding-top: 2rem; padding-bottom: 3rem; }



/* ── Container ───────────────────────────────────────────── */
.bh-container {
    width: min(100% - (var(--page-gutter, 1.25rem) * 2), var(--content-max, 1220px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

/* ── HERO ─────────────────────────────────────────────────── */
.bh-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%);
    color: #fff;
    padding: 3.5rem 1.25rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.15), transparent);
    pointer-events: none;
}
.bh-hero-inner { max-width: 680px; margin: 0 auto; position: relative; }
.bh-eyebrow {
    display: inline-block;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.35);
    color: #93c5fd;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.bh-hero h1 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.18;
    margin: 0 0 .75rem;
    background: linear-gradient(135deg, #fff 40%, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bh-hero p { font-size: 1rem; color: #94a3b8; margin: 0 0 1.75rem; line-height: 1.6; }

/* ── Hero Search ─────────────────────────────────────────── */
.bh-search {
    display: flex; gap: .5rem;
    max-width: 500px; margin: 0 auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: .35rem .35rem .35rem .75rem;
}
.bh-search input {
    flex: 1; background: transparent; border: none; outline: none;
    color: #f1f5f9; font-size: .95rem; font-family: inherit;
}
.bh-search input::placeholder { color: #64748b; }
.bh-search button {
    background: #3b82f6; color: #fff; border: none;
    padding: .55rem 1.25rem; border-radius: 8px;
    font-weight: 600; font-size: .9rem; cursor: pointer;
    transition: background .15s; white-space: nowrap;
}
.bh-search button:hover { background: #2563eb; }

/* ── Kategori Şeridi ─────────────────────────────────────── */
.bh-cat-strip {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.bh-cat-strip-inner {
    width: min(100% - (var(--page-gutter, 1.25rem) * 2), var(--content-max, 1220px)); max-width: none; margin: 0 auto;
    padding: 0;
    display: flex; gap: .25rem;
    overflow-x: auto; scrollbar-width: none;
    -ms-overflow-style: none;
}
.bh-cat-strip-inner::-webkit-scrollbar { display: none; }
.bh-cat-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .7rem .9rem;
    font-size: .82rem; font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all .15s;
    white-space: nowrap;
}
.bh-cat-pill:hover { color: #1e293b; border-bottom-color: #cbd5e1; }
.bh-cat-pill.active { color: #2563eb; border-bottom-color: #3b82f6; }
.bh-cat-pill[style*="--cat-color"]:hover {
    color: var(--cat-color);
    border-bottom-color: var(--cat-color);
}
.bh-cat-pill.bh-cat-all.active { color: #2563eb; }
.bh-cat-pill em {
    font-style: normal;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: .7rem;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 500;
}

/* ── Section Header ──────────────────────────────────────── */
.bh-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}
.bh-section-header h2 {
    font-size: 1.05rem; font-weight: 700; color: #1e293b;
    display: flex; align-items: center; gap: .5rem;
    margin: 0;
}
.bh-dot {
    display: inline-block;
    width: 10px; height: 10px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(239,68,68,.15);
    animation: bh-pulse 2s infinite;
    flex-shrink: 0;
}
.bh-dot.bh-dot-blue { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
@keyframes bh-pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.2); opacity: .8; }
}
.bh-page-info { font-size: .82rem; color: #94a3b8; }

/* ── Öne Çıkan Yazılar ───────────────────────────────────── */
.bh-featured-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
}
.bh-featured-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    margin-top: 1rem;
}
@media (max-width: 768px) { .bh-featured-grid { grid-template-columns: 1fr; } }

.bh-featured-card { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: box-shadow .2s, transform .2s; }
.bh-featured-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.bh-featured-main { grid-row: span 2; }
.bh-featured-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.bh-featured-img { position: relative; overflow: hidden; }
.bh-featured-main .bh-featured-img { aspect-ratio: 16/9; }
.bh-featured-side .bh-featured-img { aspect-ratio: 2/1; }
.bh-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bh-featured-card:hover .bh-featured-img img { transform: scale(1.04); }

.bh-img-placeholder {
    width: 100%; height: 100%; min-height: 200px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(255,255,255,.7);
}
.bh-thumb-ph { min-height: 180px; }

.bh-cat-badge {
    position: absolute; top: .7rem; left: .7rem;
    color: #fff; font-size: .7rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 999px;
    backdrop-filter: blur(4px);
}
.bh-featured-body { padding: 1.1rem 1.2rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.bh-featured-body h3 {
    font-size: 1.15rem; font-weight: 700; color: #1e293b;
    line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bh-featured-side .bh-featured-body h3 { font-size: .98rem; -webkit-line-clamp: 2; }
.bh-featured-body p {
    font-size: .87rem; color: #64748b; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Meta ────────────────────────────────────────────────── */
.bh-meta {
    display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
    font-size: .76rem; color: #94a3b8; margin-top: auto; padding-top: .3rem;
}
.bh-meta-sep { color: #cbd5e1; }
.bh-author-chip {
    display: flex; align-items: center; gap: .3rem;
    color: #64748b; font-weight: 500;
}
.bh-author-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff; font-size: .65rem; font-weight: 700;
}

/* ── Ana İçerik + Sidebar Layout ────────────────────────── */
.bh-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    align-items: start;
}
@media (max-width: 960px) { .bh-main-layout { grid-template-columns: 1fr; } }

/* ── Post Grid ───────────────────────────────────────────── */
.bh-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 640px) { .bh-post-grid { grid-template-columns: 1fr; } }

.bh-post-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bh-post-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transform: translateY(-3px);
    border-color: #e2e8f0;
}
.bh-post-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.bh-post-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.bh-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bh-post-card:hover .bh-post-thumb img { transform: scale(1.05); }
.bh-post-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.bh-post-body h3 {
    font-size: 1rem; font-weight: 700; color: #1e293b;
    line-height: 1.45; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .15s;
}
.bh-post-card:hover .bh-post-body h3 { color: #2563eb; }
.bh-post-excerpt {
    font-size: .83rem; color: #64748b; line-height: 1.55; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Sayfalama ────────────────────────────────────────────── */
.bh-pagination {
    display: flex; gap: .35rem; justify-content: center;
    margin-top: 1.5rem;
}
.bh-page-btn {
    padding: .5rem .9rem; border-radius: 8px;
    border: 1px solid #e2e8f0; font-size: .85rem;
    text-decoration: none; color: #475569;
    font-weight: 500; transition: all .15s;
    background: #fff;
}
.bh-page-btn:hover { background: #f1f5f9; border-color: #cbd5e1; color: #1e293b; }
.bh-page-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 700; }

/* ── Boş durum ────────────────────────────────────────────── */
.bh-empty {
    text-align: center; padding: 3rem 1rem; color: #94a3b8;
    background: #f8fafc; border-radius: 12px; border: 1px dashed #e2e8f0;
}
.bh-empty span { font-size: 2.5rem; display: block; margin-bottom: .75rem; }

/* ── Sidebar Widgets ─────────────────────────────────────── */
.bh-sidebar { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 1.25rem; }
.bh-widget {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    padding: 1.2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.bh-widget-title {
    font-size: .88rem; font-weight: 700; color: #1e293b;
    margin: 0 0 .9rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #f1f5f9;
    letter-spacing: -.01em;
}

/* Kategori listesi */
.bh-cat-list { list-style: none; margin: 0; padding: 0; }
.bh-cat-list li { border-bottom: 1px solid #f8fafc; }
.bh-cat-list li:last-child { border: none; }
.bh-cat-list a {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem 0; text-decoration: none;
    font-size: .85rem; color: #374151;
    transition: color .12s;
}
.bh-cat-list a:hover { color: #2563eb; }
.bh-cat-icon-box {
    width: 28px; height: 28px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; flex-shrink: 0;
}
.bh-cat-name { flex: 1; font-weight: 500; }
.bh-cat-count {
    background: #f1f5f9; color: #6b7280;
    font-size: .7rem; font-weight: 600;
    padding: 2px 7px; border-radius: 999px;
}

/* Son yazılar listesi */
.bh-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.bh-recent-list li a {
    display: flex; gap: .7rem; text-decoration: none; color: inherit;
    transition: opacity .15s;
}
.bh-recent-list li a:hover { opacity: .85; }
.bh-recent-img {
    width: 60px; height: 60px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0;
}
.bh-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.bh-recent-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: rgba(255,255,255,.7);
}
.bh-recent-info { display: flex; flex-direction: column; gap: .25rem; justify-content: center; }
.bh-recent-title {
    font-size: .82rem; font-weight: 600; color: #1e293b;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bh-recent-date { font-size: .73rem; color: #94a3b8; }

/* CTA Widget */
.bh-cta-widget {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: rgba(255,255,255,.08) !important;
    text-align: center; padding: 1.5rem 1.2rem !important;
}
.bh-cta-widget.bh-cta-member {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e1b4b 100%) !important;
}
.bh-cta-icon { font-size: 2rem; margin-bottom: .6rem; }
.bh-cta-widget h3 { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 .4rem; }
.bh-cta-widget p { color: rgba(255,255,255,.7); font-size: .8rem; line-height: 1.5; margin: 0 0 1rem; }
.bh-cta-btn {
    display: block; text-align: center;
    background: #3b82f6; color: #fff;
    padding: .6rem 1rem; border-radius: 8px;
    text-decoration: none; font-size: .85rem; font-weight: 600;
    margin-bottom: .4rem; transition: background .15s;
}
.bh-cta-btn:hover { background: #2563eb; }
.bh-cta-btn-alt { background: linear-gradient(135deg, #2563eb, #7c3aed) !important; margin-bottom: 0; }
.bh-cta-btn-alt:hover { opacity: .9; }

/* Responsive */
@media (max-width: 960px) {
    .bh-sidebar { position: static; }
}
@media (max-width: 640px) {
    .bh-hero { padding: 2.5rem 1rem 2rem; }
    .bh-featured-section { padding: 1.5rem 0; }
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Blog layout wrapper ─────────────────────────────────── */
.blog-wrap { max-width: 100%; overflow-x: hidden; }

/* ── Hero başlıkları ─────────────────────────────────────── */
.blog-hero, .cat-hero, .tag-hero, .search-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 3rem 1rem 2.5rem;
    text-align: center;
}
.blog-hero-inner { max-width: 720px; margin: 0 auto; }
.blog-hero h1, .cat-hero h1, .tag-hero h1, .search-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800; margin: 0 0 .75rem;
    letter-spacing: -.02em; line-height: 1.2;
}
.blog-hero p { font-size: 1rem; color: #94a3b8; margin: 0 0 1.5rem; }

/* ── Arama kutusu ─────────────────────────────────────────── */
.blog-search {
    display: flex; gap: .5rem; max-width: 500px; margin: 0 auto;
}
.blog-search input {
    flex: 1; padding: .7rem 1rem; border: 2px solid #334155;
    border-radius: 8px; background: #1e293b; color: #f1f5f9;
    font-size: .95rem; outline: none; transition: border .15s;
    caret-color: #fff;
}
.blog-search input,
.blog-search input:focus,
.blog-search input:active {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc;
}
.blog-search input:focus { border-color: #3b82f6; }
.blog-search input::placeholder { color: #cbd5e1; opacity: .85; }
.blog-search button {
    padding: .7rem 1.5rem; background: #3b82f6; color: #fff;
    border: none; border-radius: 8px; font-size: .95rem;
    font-weight: 600; cursor: pointer; transition: background .15s;
    white-space: nowrap;
}
.blog-search button:hover { background: #2563eb; }
.blog-search.big input { font-size: 1.05rem; padding: .85rem 1.15rem; }
.blog-search.big button { padding: .85rem 1.75rem; font-size: 1.05rem; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
    display: flex; align-items: center; gap: .4rem;
    font-size: .82rem; color: #94a3b8; margin-bottom: .75rem; flex-wrap: wrap;
}
.breadcrumb a { color: #cbd5e1; text-decoration: none; transition: color .1s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb.light a { color: rgba(255,255,255,.7); }
.breadcrumb.light a:hover { color: #fff; }
.breadcrumb .current { color: #f1f5f9; font-weight: 500; }
.breadcrumb span { color: #64748b; }

/* ── Post grid + kart ─────────────────────────────────────── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04);
    overflow: hidden; transition: box-shadow .2s, transform .15s;
    display: flex; flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12), 0 12px 32px rgba(0,0,0,.06);
    transform: translateY(-2px);
}
.post-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; height: 100%; }
.post-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.post-thumb { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb .featured-img-ph {
    min-height: 100%;
}
.post-body { padding: 1.2rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.post-cat {
    display: inline-block; color: #fff;
    padding: 3px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; width: fit-content; margin-bottom: .25rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.post-cat:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(127, 29, 29, .18);
}
.post-card h3 {
    font-size: 1.15rem; font-weight: 700; color: #1e293b;
    line-height: 1.4; margin: .25rem 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-title-anchor {
    color: inherit;
    text-decoration: none;
}
.post-title-anchor:hover {
    color: #2563eb;
}
.post-excerpt {
    font-size: .9rem; color: #475569; line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
    display: flex; gap: .5rem; flex-wrap: wrap;
    font-size: .8rem; color: #94a3b8; padding-top: .5rem;
}
.post-author {
    color: #475569;
    font-weight: 800;
    text-decoration: none;
}
.post-author:hover {
    color: #2563eb;
    text-decoration: underline;
}
.read-more-link {
    font-size: .85rem; font-weight: 700; color: #3b82f6;
    display: inline-flex; align-items: center; transition: color .15s, transform .15s;
    text-decoration: none;
}
.post-card:hover .read-more-link { color: #1d4ed8; transform: translateX(3px); }


/* ── Öne çıkan yazılar grid (hero altı) ───────────────────── */
.featured-section { max-width: 1200px; margin: -2rem auto 0; padding: 0 1rem; }
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) { .featured-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .featured-grid { grid-template-columns: 1fr; } }

/* ── Blog main layout (list + sidebar) ───────────────────── */
.blog-main-layout {
    max-width: 1200px; margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 900px) { .blog-main-layout { grid-template-columns: 1fr; } }

/* ── Sidebar ──────────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 80px; }
.sidebar-card {
    background: #fff; border-radius: 12px;
    padding: 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,.07);
    margin-bottom: 1.25rem;
}
.sidebar-card h3 {
    font-size: .9rem; font-weight: 700; color: #1e293b;
    margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid #f1f5f9;
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid #f8fafc; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
    display: flex; align-items: center; gap: .5rem;
    padding: .55rem 0; color: #334155; text-decoration: none;
    font-size: .875rem; transition: color .12s;
}
.cat-list a:hover { color: #2563eb; }
.cat-list .cat-icon { font-size: 1rem; width: 1.25rem; text-align: center; }
.cat-list .cat-count {
    margin-left: auto; background: #f1f5f9;
    color: #64748b; font-size: .72rem; font-weight: 600;
    padding: 1px 7px; border-radius: 999px;
}
.sidebar-cta {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    color: #fff; border-radius: 12px; padding: 1.25rem;
    text-align: center; margin-bottom: 1.25rem;
}
.sidebar-cta h3 { font-size: 1rem; margin: 0 0 .5rem; color: #fff; border: none; padding: 0; }
.sidebar-cta p  { font-size: .82rem; color: rgba(255,255,255,.8); margin: 0 0 1rem; }
.sidebar-cta .btn-cta {
    display: block; background: #fff; color: #1d4ed8;
    padding: .55rem 1rem; border-radius: 7px; text-decoration: none;
    font-size: .875rem; font-weight: 700; transition: opacity .15s;
}
.sidebar-cta .btn-cta:hover { opacity: .9; }

/* ── Sayfalama ────────────────────────────────────────────── */
.pagination {
    display: flex; gap: .35rem; justify-content: center;
    margin: 2rem 0 1rem;
}
.pagination a, .pagination span {
    padding: .45rem .85rem; border-radius: 7px;
    font-size: .875rem; text-decoration: none;
    border: 1px solid #e2e8f0; color: #334155;
    transition: all .12s;
}
.pagination a:hover { background: #f1f5f9; border-color: #cbd5e1; }
.pagination a.active { background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 600; }

/* ── Boş durum ────────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 3rem 1rem; color: #64748b;
}
.empty-state p { font-size: 1rem; margin: 0 0 1rem; }
.btn-primary {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #2563eb; color: #fff; border: none;
    padding: .6rem 1.25rem; border-radius: 8px;
    font-size: .875rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: background .15s;
}
.btn-primary:hover { background: #1d4ed8; }

/* ════════════════════════════════════════════════════════════
   BLOG YAZISI (blog-post.php)
   ════════════════════════════════════════════════════════════ */

/* ── Post hero ─────────────────────────────────────────────── */
.post-hero {
    background: #fff;
    padding: 2.5rem 1rem 0;
    max-width: 800px; margin: 0 auto;
}
.post-hero .post-cat { margin-bottom: .75rem; }
.post-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800; color: #0f172a;
    line-height: 1.25; margin: 0 0 1rem;
    letter-spacing: -.02em;
}
.post-byline {
    display: flex; align-items: center; gap: .75rem;
    flex-wrap: wrap; color: #64748b; font-size: .875rem;
    padding-bottom: 1.25rem; border-bottom: 1px solid #f1f5f9;
}
.byline-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; border: 2px solid #e2e8f0;
}
.byline-avatar-placeholder {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff; font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
}
.byline-sep { color: #cbd5e1; }
.byline-stat { display: flex; align-items: center; gap: .25rem; }

/* ── Featured image ────────────────────────────────────────── */
.post-featured-img {
    max-width: 800px; margin: 1.5rem auto 0;
    padding: 0 1rem;
}
.post-featured-img img {
    width: 100%; max-height: 480px; object-fit: cover;
    border-radius: 12px;
}
.post-featured-img figcaption {
    text-align: center; font-size: .78rem; color: #94a3b8; margin-top: .5rem;
}

/* ── Reading progress bar ──────────────────────────────────── */
#reading-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    width: var(--reading-progress, 0%); z-index: 9999; transition: width .1s;
}

/* ── Post layout (içerik + TOC) ────────────────────────────── */
.post-layout {
    max-width: 1060px; margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 860px) { .post-layout { grid-template-columns: 1fr; } }

/* ── TOC ───────────────────────────────────────────────────── */
.post-toc {
    position: sticky; top: 80px;
    background: #f8fafc; border-radius: 10px;
    padding: 1rem 1.1rem; border: 1px solid #e2e8f0;
    font-size: .82rem;
}
.post-toc h4 {
    font-size: .78rem; font-weight: 700;
    color: #64748b; text-transform: uppercase;
    letter-spacing: .08em; margin: 0 0 .75rem;
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: .35rem; }
.toc-list a { color: #475569; text-decoration: none; line-height: 1.4; display: block; }
.toc-list a:hover, .toc-list a.active { color: #2563eb; }
.toc-list .toc-h3 { padding-left: .9rem; font-size: .78rem; }
.toc-list .toc-h4 { padding-left: 1.6rem; font-size: .75rem; }

/* ── Makale içeriği (Markdown render) ────────────────────── */
.post-content {
    font-size: 1.05rem; line-height: 1.8;
    color: #1e293b; font-family: 'Georgia', 'Cambria', serif;
}
.post-content h2 {
    font-size: 1.5rem; font-weight: 800;
    color: #0f172a; margin: 2.25rem 0 .75rem;
    padding-bottom: .5rem; border-bottom: 2px solid #f1f5f9;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -.01em;
}
.post-content h3 {
    font-size: 1.2rem; font-weight: 700;
    color: #1e293b; margin: 1.75rem 0 .6rem;
    font-family: 'Inter', system-ui, sans-serif;
}
.post-content h4 {
    font-size: 1rem; font-weight: 700;
    color: #334155; margin: 1.25rem 0 .4rem;
    font-family: 'Inter', system-ui, sans-serif;
}
.post-content p { margin: 0 0 1.1rem; }
.post-content ul, .post-content ol {
    margin: 0 0 1.1rem 1.5rem; padding: 0;
}
.post-content li { margin-bottom: .3rem; }
.post-content a { color: #2563eb; text-decoration: underline; text-decoration-thickness: 1px; }
.post-content a:hover { color: #1d4ed8; }
.post-content strong { font-weight: 700; color: #0f172a; }
.post-content em { font-style: italic; }
.post-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: .75rem 1.25rem;
    margin: 1.25rem 0; background: #f0f9ff;
    border-radius: 0 8px 8px 0;
    color: #334155; font-style: italic;
}
.post-content code {
    background: #f1f5f9; color: #e11d48;
    padding: 2px 6px; border-radius: 4px;
    font-size: .88em; font-family: 'Fira Code', 'Consolas', monospace;
}
.post-content pre {
    background: #0f172a; color: #e2e8f0;
    padding: 1.25rem 1.5rem; border-radius: 10px;
    overflow-x: auto; margin: 1.25rem 0; font-size: .88rem;
    line-height: 1.65; border: 1px solid #1e293b;
}
.post-content pre code {
    background: none; color: inherit;
    padding: 0; font-size: inherit; border-radius: 0;
}
.post-content img {
    display: block;
    width: min(100%, 680px);
    height: clamp(200px, 34vw, 340px);
    object-fit: contain;
    border-radius: 12px;
    margin: 1.5rem auto;
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(15,23,42,.12);
}
.post-content table {
    width: 100%; border-collapse: collapse; font-size: .9rem;
    margin: 1.25rem 0; overflow-x: auto; display: block;
}
.post-content th {
    background: #f1f5f9; padding: .6rem .85rem;
    text-align: left; font-size: .8rem;
    font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 2px solid #e2e8f0;
}
.post-content td { padding: .6rem .85rem; border-bottom: 1px solid #f1f5f9; }
.post-content hr { border: none; border-top: 2px solid #f1f5f9; margin: 2rem 0; }

/* ── Etiket ve paylaşım alanı ─────────────────────────────── */
.post-footer-section { max-width: 800px; margin: 0 auto; padding: 0 1rem 2rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.post-tags a {
    background: #f1f5f9; color: #475569;
    padding: 4px 12px; border-radius: 999px;
    font-size: .8rem; font-weight: 500; text-decoration: none;
    border: 1px solid #e2e8f0; transition: all .12s;
}
.post-tags a:hover { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.share-bar {
    display: flex; align-items: center; gap: .5rem;
    padding: 1rem 1.25rem; background: #f8fafc;
    border-radius: 10px; border: 1px solid #e2e8f0; flex-wrap: wrap;
}
.share-bar span { font-size: .82rem; font-weight: 600; color: #64748b; margin-right: .25rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .4rem .9rem; border-radius: 7px;
    font-size: .8rem; font-weight: 600; text-decoration: none;
    transition: opacity .15s; cursor: pointer; border: none;
}
.share-btn:hover { opacity: .85; }
.share-twitter   { background: #000; color: #fff; }
.share-whatsapp  { background: #25d366; color: #fff; }
.share-facebook  { background: #1877f2; color: #fff; }
.share-copy      { background: #f1f5f9; color: #334155; }

/* ── Related posts ────────────────────────────────────────── */
.related-section {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1rem 3rem;
}
.related-section h2 {
    font-size: 1.1rem; font-weight: 700; margin: 0 0 1.25rem;
    color: #1e293b;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

/* ── Yorumlar bölümü ──────────────────────────────────────── */
.comments-section {
    max-width: 800px; margin: 0 auto;
    padding: 0 1rem 3rem;
}
.comments-section h2 {
    font-size: 1.1rem; font-weight: 700;
    margin: 0 0 1.5rem; padding-bottom: .75rem;
    border-bottom: 2px solid #f1f5f9; color: #1e293b;
}
.comment-form-card {
    background: #f8fafc; border-radius: 12px;
    padding: 1.25rem; margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}
.comment-form-card h3 { font-size: .95rem; font-weight: 700; margin: 0 0 1rem; }
.comment-form-card textarea {
    width: 100%; padding: .75rem; border: 1px solid #cbd5e1;
    border-radius: 8px; font-size: .9rem; resize: vertical;
    min-height: 120px; font-family: inherit; box-sizing: border-box;
    transition: border .15s;
}
.comment-form-card textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.comment-form-card .char-count { font-size: .75rem; color: #94a3b8; text-align: right; margin-top: .25rem; }
.comment-form-card .char-count.is-over-limit { color: #ef4444; }
.comment-login-note {
    text-align: center; padding: 1.5rem;
    background: #f8fafc; border-radius: 12px;
    border: 1px dashed #cbd5e1; margin-bottom: 2rem;
}
.comment-login-note p { color: #64748b; font-size: .9rem; margin: 0 0 .75rem; }
.comment-list { display: flex; flex-direction: column; gap: .75rem; }
.comment-item {
    background: #fff; border-radius: 10px;
    padding: 1rem 1.1rem; border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.comment-item.reply { margin-left: 2rem; background: #fafafa; }
.comment-meta {
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .5rem; flex-wrap: wrap;
}
.comment-author { font-weight: 700; font-size: .875rem; color: #1e293b; }
.comment-date   { font-size: .78rem; color: #94a3b8; }
.comment-body   { font-size: .9rem; color: #334155; line-height: 1.6; }
.comment-reply-btn {
    font-size: .78rem; color: #3b82f6; cursor: pointer;
    background: none; border: none; padding: 0; margin-top: .4rem;
    font-weight: 500;
}
.comment-reply-btn:hover { color: #2563eb; text-decoration: underline; }

/* ── Kategori sayfası özel ────────────────────────────────── */
.cat-hero .cat-icon-big { font-size: 3rem; display: block; margin: 0 0 .5rem; }
.cat-hero .cat-stats { font-size: .9rem; color: rgba(255,255,255,.7); margin-top: .5rem; }

/* ── Etiket sayfası ────────────────────────────────────────── */
.tag-hero { background: linear-gradient(135deg, #0f172a, #1e293b); }

/* ── Responsive fine-tuning ───────────────────────────────── */
@media (max-width: 640px) {
    .blog-hero, .cat-hero, .tag-hero, .search-hero { padding: 2rem 1rem 2rem; }
    .featured-section { margin-top: 1.5rem; }
    .post-hero { padding: 1.5rem 1rem 0; }
    .post-layout { padding: 1.5rem 1rem; }
    .share-bar { justify-content: flex-start; }
    .comment-item.reply { margin-left: 1rem; }
}

/* ── Dark mode temel ──────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .post-content { color: #e2e8f0; }
    .post-content h2, .post-content h3, .post-content h4 { color: #f1f5f9; }
    .post-content blockquote { background: #1e293b; color: #cbd5e1; }
    .post-content code { background: #1e293b; color: #f87171; }
    .post-card { background: #1e293b; }
    .post-card h3 { color: #f1f5f9; }
    .post-excerpt { color: #94a3b8; }
}

/* Public cleanup layer: removes old inline styles from blog templates. */
.featured-img-ph {
    background: linear-gradient(135deg, #1e293b 0%, #7f1d1d 100%);
}

.featured-img-ph--card {
    min-height: 160px;
    font-size: 2rem;
}

.post-cat {
    background: #7f1d1d;
}

.post-card-readmore {
    margin-top: auto;
    padding-top: 1rem;
}

.cat-list .cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 1.55rem;
    padding: 2px 5px;
    border-radius: 6px;
    background: #fef2f2;
    color: #7f1d1d;
}

.sidebar-recent-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
    color: #fff;
    font-size: .9rem;
}

.sidebar-cta .btn-cta-alt {
    margin-top: .4rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.blog-list {
    width: min(100% - (var(--page-gutter, 1.25rem) * 2), var(--content-max, 1220px));
    max-width: none;
    margin: 2rem auto;
    padding: 0;
}

.blog-post-wrap {
    width: min(100% - (var(--page-gutter, 1.25rem) * 2), 920px) !important;
    max-width: 920px !important;
    margin: 2rem auto 3rem;
    padding: 0;
}

.blog-post {
    width: 100%;
    margin: 0 auto;
}

.blog-post .breadcrumb {
    margin-bottom: 1.25rem;
    color: #64748b;
    font-size: .9rem;
}

.blog-post .breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.post-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.post-title {
    margin: .75rem 0 .75rem;
    color: #0f172a;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: 0;
}

.post-lede {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.7;
}

.byline-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.byline-author img,
.avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
    color: #fff;
    font-weight: 900;
}

.byline-author strong {
    display: block;
    color: #1e293b;
    font-weight: 850;
}

.byline-author-link {
    display: inline-block;
    color: #1e293b;
    font-weight: 850;
    text-decoration: none;
}

.byline-author-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.byline-author small {
    display: block;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.5;
}

.post-feature {
    width: min(100%, 760px);
    margin: 1.5rem auto;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

.post-feature img {
    width: 100%;
    height: clamp(220px, 32vw, 360px);
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.blog-post-wrap .post-content,
.blog-post-wrap .post-tags,
.blog-post-wrap .post-share,
.blog-post-wrap .related,
.blog-post-wrap .comments {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.blog-empty-shell {
    width: min(100% - 2rem, 600px);
    margin: 4rem auto;
    padding: 1rem;
    text-align: center;
}

.comment-guest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.comment-guest-grid + textarea {
    margin-top: .5rem;
}

.blog-copy-fallback {
    position: fixed;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.share-copy.is-copied,
[data-copy].is-copied {
    background: #10b981 !important;
    color: #fff !important;
}

.inline-reply-form {
    margin-top: 1rem;
}

.post-content pre {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    border: 0;
    border-radius: 5px;
    background: #334155;
    color: #cbd5e1;
    padding: 3px 10px;
    font: .75rem sans-serif;
    cursor: pointer;
}

.code-copy-btn.is-copied {
    background: #10b981;
    color: #fff;
}

img.is-load-error {
    display: none;
}

.post-share,
.related,
.comments {
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.post-share {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.post-share a,
.post-share button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: .45rem .8rem;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.post-share a:hover,
.post-share button:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.related h2,
.comments h2 {
    margin: 0 0 1rem;
    color: #1e293b;
    font-size: 1.1rem;
}

.related-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: .8rem;
    padding: .8rem;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.related-card img {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.related-card h3 {
    margin: 0 0 .35rem;
    font-size: .95rem;
    color: #1e293b;
}

.related-card small {
    color: #64748b;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: .75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.comment-form-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: .75rem;
}

.comment-login,
.comment-empty {
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
}

.comment {
    padding: 1rem;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #fff;
}

.comment + .comment {
    margin-top: .75rem;
}

.comment header {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-bottom: .5rem;
    color: #64748b;
    font-size: .85rem;
}

.comment header strong {
    color: #1e293b;
}

.comment-body {
    color: #334155;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .blog-post-wrap {
        width: min(100% - 1rem, 920px) !important;
        margin-top: 1rem;
    }

    .post-feature {
        width: 100%;
        margin: 1rem auto;
    }

    .post-feature img,
    .post-content img {
        height: clamp(180px, 58vw, 280px);
    }

    .comment-guest-grid,
    .related-card {
        grid-template-columns: 1fr;
    }

    .post-share a,
    .post-share button,
    .comment-form-foot button {
        width: 100%;
    }
}

/* Blog butunluk katmani: ana sayfa, kategori ve tekil yazi ayni ritmi kullanir. */
.blog-category-layout,
.blog-post-layout {
    align-items: start;
}

.blog-category-layout .blog-wrap,
.blog-post-layout .blog-post-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blog-category-layout .cat-hero {
    width: 100%;
    min-height: 260px;
    margin: 0 0 2rem;
    padding: 2.25rem;
    text-align: left;
}

.blog-category-layout .blog-hero-inner {
    max-width: 720px;
    margin: 0;
}

.blog-category-layout .blog-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

.blog-category-layout .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.blog-post-layout .blog-post {
    width: 100%;
    max-width: none;
    margin: 0;
}

.blog-post-layout .blog-post .breadcrumb,
.blog-post-layout .post-header,
.blog-post-layout .post-feature,
.blog-post-layout .post-content,
.blog-post-layout .post-tags,
.blog-post-layout .post-share,
.blog-post-layout .related,
.blog-post-layout .comments {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-layout .post-header {
    margin-top: 0;
}

.blog-post-layout .post-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.blog-post-layout .post-feature {
    width: min(100%, 760px);
}

.blog-post-layout .blog-sidebar,
.blog-category-layout .blog-sidebar {
    top: 96px;
}

.blog-category-page > .cat-hero {
    width: min(100% - (var(--page-gutter, 1.25rem) * 2), 1400px);
    min-height: 260px;
    margin: 2rem auto 0;
    padding: 2.5rem;
    text-align: left;
}

.blog-category-page > .cat-hero .blog-hero-inner {
    max-width: 760px;
    margin: 0;
}

@media (max-width: 900px) {
    .blog-category-layout .cat-hero {
        min-height: auto;
        padding: 2rem 1.25rem;
    }

    .blog-category-page > .cat-hero {
        width: min(100% - 1rem, 1400px);
        min-height: auto;
        padding: 2rem 1.25rem;
    }
}

/* Blog liste hizasi: hero ile post listesi ayni sol/sag aksa oturur. */
.blog-main-layout.blog-section-wrap {
    width: min(100% - (var(--page-gutter, 1.25rem) * 2), 1400px);
    max-width: none;
    margin: 2rem auto 3rem;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
}

.blog-main-layout .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.blog-main-layout .blog-section-title {
    margin-left: 0;
}

@media (max-width: 900px) {
    .blog-main-layout.blog-section-wrap {
        width: min(100% - 1rem, 1400px);
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Blog hero standardi: ana blog, kategori ve tekil yazi ayni olcude. */
.site-main :where(.blog-hero, .blog-category-page > .cat-hero, .post-hero),
.blog-hero,
.blog-category-page > .cat-hero,
.post-hero {
    width: min(100% - 2rem, 1400px) !important;
    min-height: clamp(150px, 15vw, 190px) !important;
    margin: 0 auto 1.25rem !important;
    padding: clamp(1.35rem, 3vw, 2.25rem) !important;
    display: grid !important;
    align-items: center !important;
    text-align: left !important;
}

.blog-category-page > .cat-hero .blog-hero-inner,
.post-hero .blog-hero-inner {
    width: min(100%, 900px) !important;
    max-width: 900px !important;
    margin: 0 !important;
    text-align: left !important;
}

.post-hero .breadcrumb,
.blog-category-page > .cat-hero .breadcrumb {
    margin: 0 0 .85rem;
}

.post-hero .post-title {
    color: #fff;
    margin: 0 0 .65rem;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.12;
}

.post-hero .post-lede {
    color: rgba(255, 255, 255, .82);
    margin: 0 0 1rem;
    max-width: 780px;
}

.post-hero .byline-author strong,
.post-hero .byline-author-link {
    color: #fff;
}

.post-hero .byline-author small {
    color: rgba(255, 255, 255, .72);
}

.post-hero .post-author:hover {
    color: #bfdbfe;
}

.blog-post-layout {
    margin-top: 2rem !important;
}

@media (max-width: 900px) {
    .site-main :where(.blog-hero, .blog-category-page > .cat-hero, .post-hero),
    .blog-hero,
    .blog-category-page > .cat-hero,
    .post-hero {
        width: min(100% - 1rem, 1400px) !important;
        min-height: auto !important;
    }
}
