/* blog.css — Blog Bankası (blog-bankasi.php) ve yazı sayfası (blog-yazi.php) */
.bg { --bg-navy: #0b1b33; --bg-text: #0f1f38; --bg-muted: #64748b; --bg-line: #e4e8ef; --bg-soft: #f4f6fa; --bg-red: #dc2626; background: #f7f8fb; padding-bottom: 60px; }

/* ---------- Başlık ---------- */
.bg-head { background: #fff; border-bottom: 1px solid var(--bg-line); padding: 24px 0 0; position: relative; overflow: hidden; }
.bg-head::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 260px at 8% 0%, rgba(37, 99, 235, .08), transparent 70%), radial-gradient(520px 260px at 95% 20%, rgba(220, 38, 38, .06), transparent 70%); }
.bg-head .container { position: relative; }
.bg-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; font-weight: 700; color: #94a3b8; margin-bottom: 12px; }
.bg-crumb a { color: var(--bg-navy); text-decoration: none; }
.bg-crumb a:hover { color: var(--bg-red); }
.bg-crumb b { color: var(--bg-muted); }
.bg-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bg-kicker { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--bg-red); display: flex; align-items: center; gap: 6px; }
.bg-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--bg-navy); letter-spacing: -.02em; margin: 6px 0 6px; }
.bg-lead { margin: 0; color: #475569; max-width: 640px; line-height: 1.55; }
.bg-search { position: relative; display: flex; flex: 0 1 380px; min-width: 260px; }
.bg-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.bg-search input { flex: 1; min-width: 0; height: 46px; border: 1px solid #d5dbe3; border-right: 0; border-radius: 12px 0 0 12px; padding: 0 12px 0 40px; font: inherit; font-size: .95rem; }
.bg-search input:focus { outline: 0; border-color: var(--bg-navy); box-shadow: 0 0 0 3px rgba(11, 27, 51, .1); }
.bg-search button { height: 46px; padding: 0 18px; border: 0; border-radius: 0 12px 12px 0; background: var(--bg-navy); color: #fff; font-weight: 700; cursor: pointer; }
.bg-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; padding-bottom: 14px; }
.bg-cats::-webkit-scrollbar { display: none; }
.bg-cats a { --c: var(--bg-navy); flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bg-line); background: #fff; color: var(--bg-text); font-weight: 650; font-size: .88rem; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.bg-cats a i { color: var(--c); }
.bg-cats a span { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--bg-soft); color: var(--bg-muted); }
.bg-cats a:hover { border-color: var(--c); }
.bg-cats a.is-on { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }
.bg-cats a.is-on i { color: #fff; }
.bg-cats a.is-on span { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Düzen ---------- */
.bg-govde { padding-top: 26px; }
.bg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.bg-sec { font-size: 1.15rem; font-weight: 800; color: var(--bg-navy); margin: 28px 0 14px; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

/* ---------- Kart ---------- */
.bg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bg-line); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.bg-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 27, 51, .09); border-color: #d5dbe5; }
.bg-card__img { --c: #2563eb; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, #fff), color-mix(in srgb, var(--c) 34%, #fff)); }
.bg-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bg-card:hover .bg-card__img img { transform: scale(1.04); }
.bg-card__ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; color: color-mix(in srgb, var(--c) 80%, #000); opacity: .75; }
.bg-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bg-cat { --c: #2563eb; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); text-decoration: none; }
.bg-cat:hover { color: var(--c); background: color-mix(in srgb, var(--c) 18%, #fff); }
.bg-card__t { font-size: 1.08rem; font-weight: 750; line-height: 1.35; margin: 0; }
.bg-card__t a { color: var(--bg-text); text-decoration: none; }
.bg-card__t a:hover { color: var(--bg-red); }
.bg-card__p { margin: 0; color: var(--bg-muted); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bg-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; color: #94a3b8; font-weight: 600; }

/* Öne çıkan: kapak kendi oranında (1200×630) kartın içinde çerçeveli durur — kırpılmaz */
.bg-card--featured { flex-direction: row; align-items: center; padding: 16px; gap: 8px; }
.bg-card--featured .bg-card__img { flex: 0 0 56%; aspect-ratio: 1200 / 630; border-radius: 14px; }
.bg-card--featured .bg-card__body { padding: 12px 16px 12px 20px; justify-content: center; gap: 12px; }
.bg-card--featured .bg-card__t { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.01em; }
.bg-card--featured .bg-card__p { -webkit-line-clamp: 4; font-size: .98rem; }
.bg-card--featured .bg-meta { margin-top: 0; }

.bg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--bg-red); background: var(--bg-red); color: #fff; font-weight: 750; font-size: .9rem; text-decoration: none; align-self: flex-start; transition: background-color .15s; }
.bg-btn:hover { background: #b91c1c; color: #fff; }
.bg-btn--line { background: #fff; color: var(--bg-navy); border-color: #cfd6e1; }
.bg-btn--line:hover { background: var(--bg-navy); color: #fff; }
.bg-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.bg-btn--ghost:hover { background: #fff; color: var(--bg-navy); }

.bg-empty { text-align: center; padding: 48px 22px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 18px; }
.bg-empty > i { font-size: 2.4rem; color: #94a3b8; }
.bg-empty h2 { font-size: 1.3rem; font-weight: 800; color: var(--bg-navy); margin: 10px 0 6px; }
.bg-empty p { color: var(--bg-muted); max-width: 480px; margin: 0 auto 16px; }
.bg-empty__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.bg-empty__btns .bg-btn { align-self: center; }

.bg-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.bg-pager a { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; border: 1px solid var(--bg-line); background: #fff; color: var(--bg-text); font-weight: 700; text-decoration: none; }
.bg-pager a:hover { border-color: var(--bg-navy); }
.bg-pager a.is-on { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }

/* ---------- Kenar çubuğu ---------- */
.bg-side { display: grid; gap: 16px; position: sticky; top: 124px; }
.bg-box { background: #fff; border: 1px solid var(--bg-line); border-radius: 18px; padding: 20px; }
.bg-box h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; color: var(--bg-navy); margin: 0 0 12px; }
.bg-box h2 i { color: var(--bg-red); }
.bg-pop { list-style: none; margin: 0; padding: 0; counter-reset: pop; display: grid; gap: 12px; }
.bg-pop li { counter-increment: pop; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; }
.bg-pop li::before { content: counter(pop); grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); color: var(--bg-navy); font-weight: 800; font-size: .82rem; display: grid; place-items: center; }
.bg-pop a { color: var(--bg-text); font-weight: 700; font-size: .9rem; line-height: 1.35; text-decoration: none; }
.bg-pop a:hover { color: var(--bg-red); }
.bg-pop small { color: #94a3b8; font-size: .74rem; font-weight: 600; }
.bg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bg-tags a, .bp-tags a { padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); color: #334155; font-size: .82rem; font-weight: 650; text-decoration: none; transition: background-color .15s, color .15s; }
.bg-tags a:hover, .bg-tags a.is-on, .bp-tags a:hover { background: var(--bg-navy); color: #fff; }
.bg-box--cta { background: var(--bg-navy); border-color: var(--bg-navy); color: #cbd5e1; }
.bg-box--cta h2 { color: #fff; }
.bg-box--cta p { font-size: .88rem; margin: 0 0 14px; }
.bg-box--cta .bg-btn { width: 100%; margin-bottom: 8px; }
.bg-rss { display: inline-flex; align-items: center; gap: 8px; color: #ea580c; font-weight: 700; font-size: .88rem; text-decoration: none; justify-self: start; }
.bg-rss:hover { color: #c2410c; }

/* ============ Yazı sayfası ============ */
.bp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; pointer-events: none; }
.bp-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bp-c1, #dc2626), #f97316); }
.bp-preview { background: #fef3c7; border-bottom: 1px solid #fde68a; color: #92400e; font-size: .9rem; padding: 10px 0; }
.bp-preview a { color: #92400e; font-weight: 800; }

.bp-head { background: #fff; border-bottom: 1px solid var(--bg-line); padding: 24px 0 0; }
.bp-narrow { max-width: 860px; }
.bp-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--bg-navy); margin: 14px 0 12px; }
.bp-lead { font-size: 1.15rem; line-height: 1.6; color: #475569; margin: 0 0 18px; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: .86rem; color: var(--bg-muted); font-weight: 600; padding-bottom: 22px; }
.bp-meta i { margin-right: 4px; color: #94a3b8; }
.bp-yazar { display: inline-flex; align-items: center; gap: 8px; color: var(--bg-text); font-weight: 700; }
.bp-av { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.bp-cover { max-width: 1100px; margin: 0 auto -1px; padding-bottom: 0; }
.bp-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 20px 20px 0 0; display: block; }

.bp-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 40px; justify-content: center; padding-top: 34px; }
.bp-side { position: sticky; top: 124px; align-self: start; display: grid; gap: 16px; }
.bp-toc { background: #fff; border: 1px solid var(--bg-line); border-radius: 16px; padding: 14px 16px; }
.bp-toc summary { list-style: none; cursor: pointer; font-weight: 800; color: var(--bg-navy); font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.bp-toc summary::-webkit-details-marker { display: none; }
.bp-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.bp-toc a { display: block; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; color: var(--bg-muted); font-size: .84rem; line-height: 1.35; text-decoration: none; }
.bp-toc a:hover { color: var(--bg-text); background: var(--bg-soft); }
.bp-toc a.is-on { color: var(--bg-red); border-left-color: var(--bg-red); background: #fff5f5; font-weight: 700; }
.bp-toc__h3 a { padding-left: 22px; font-size: .8rem; }
.bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bp-share span { width: 100%; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.bp-share a, .bp-share button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--bg-line); background: #fff; color: var(--bg-navy); display: grid; place-items: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.bp-share a:hover, .bp-share button:hover { background: var(--bg-navy); color: #fff; }

/* Makale tipografisi */
.bp-content { font-size: 1.08rem; line-height: 1.8; color: #1e293b; word-wrap: break-word; }
.bp-content > *:first-child { margin-top: 0; }
.bp-content p { margin: 0 0 1.15em; }
.bp-content h2 { font-size: 1.6rem; font-weight: 800; color: var(--bg-navy); letter-spacing: -.01em; margin: 1.8em 0 .6em; scroll-margin-top: 130px; }
.bp-content h3 { font-size: 1.25rem; font-weight: 750; color: var(--bg-navy); margin: 1.5em 0 .5em; scroll-margin-top: 130px; }
.bp-content h4 { font-size: 1.08rem; font-weight: 700; margin: 1.3em 0 .4em; }
.bp-content a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bp-content a:hover { color: var(--bg-red); }
.bp-content ul, .bp-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.bp-content li { margin-bottom: .45em; }
.bp-content li::marker { color: var(--bg-red); font-weight: 700; }
.bp-content blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--bg-red); background: #fff; border-radius: 0 14px 14px 0; font-size: 1.12rem; color: #334155; font-style: italic; box-shadow: 0 8px 22px rgba(11, 27, 51, .05); }
.bp-content blockquote p:last-child { margin: 0; }
.bp-content img { max-width: 100%; height: auto; border-radius: 14px; margin: .6em 0; }
.bp-content figure { margin: 1.5em 0; }
.bp-content figcaption { text-align: center; font-size: .86rem; color: var(--bg-muted); margin-top: 6px; }
.bp-content pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 18px; overflow: auto; font-size: .9rem; line-height: 1.6; }
.bp-content code { font-size: .9em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.bp-content pre code { background: none; padding: 0; color: inherit; }
.bp-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.bp-content th, .bp-content td { border: 1px solid var(--bg-line); padding: 10px 12px; text-align: left; }
.bp-content th { background: var(--bg-soft); font-weight: 700; }
.bp-content hr { border: 0; border-top: 1px solid var(--bg-line); margin: 2em 0; }

.bp-faq { margin-top: 2.2em; scroll-margin-top: 130px; }
.bp-faq h2 { font-size: 1.5rem; font-weight: 800; color: var(--bg-navy); margin: 0 0 14px; }
.bp-faq details { background: #fff; border: 1px solid var(--bg-line); border-radius: 14px; margin-bottom: 10px; }
.bp-faq details[open] { border-color: #cbd5e1; box-shadow: 0 8px 22px rgba(11, 27, 51, .05); }
.bp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 18px; font-weight: 700; color: var(--bg-text); }
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary i { color: var(--bg-muted); transition: transform .2s; }
.bp-faq details[open] summary i { transform: rotate(180deg); }
.bp-faq details p { margin: 0; padding: 0 18px 16px; color: #475569; line-height: 1.7; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--bg-line); }

.bp-cta { margin-top: 2em; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, #0b1b33, #1b3560); color: #cbd5e1; }
.bp-cta b { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.bp-cta p { margin: 0; font-size: .92rem; }
.bp-cta__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-cta .bg-btn { align-self: center; }

.bp-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2em; }
.bp-nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--bg-line); background: #fff; text-decoration: none; transition: border-color .15s; }
.bp-nav a:hover { border-color: var(--bg-navy); }
.bp-nav a.is-next { text-align: right; }
.bp-nav small { color: #94a3b8; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.bp-nav b { color: var(--bg-text); font-size: .95rem; line-height: 1.35; }
.bp-related { padding-top: 40px; }
.bp-404 { text-align: left; max-width: 420px; margin: 0 auto 18px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1199.98px) {
  .bg-layout { grid-template-columns: 1fr; }
  .bg-side { position: static; grid-template-columns: 1fr 1fr; }
  .bp-layout { grid-template-columns: 1fr; gap: 20px; }
  .bp-side { position: static; }
  .bp-share span { width: auto; margin-right: 4px; }
}
@media (max-width: 991.98px) {
  .bg-head__row { flex-direction: column; align-items: stretch; }
  .bg-search { flex-basis: auto; min-width: 0; }
  .bg-card--featured { flex-direction: column; align-items: stretch; padding: 0; gap: 0; }
  .bg-card--featured .bg-card__img { flex: none; border-radius: 0; }
  .bg-card--featured .bg-card__body { padding: 20px; }
}
@media (max-width: 575.98px) {
  .bg-side { grid-template-columns: 1fr; }
  .bg-grid { grid-template-columns: 1fr; }
  .bp-content { font-size: 1.02rem; }
  .bp-content h2 { font-size: 1.35rem; }
  .bp-cover img { border-radius: 14px 14px 0 0; }
  .bp-nav { grid-template-columns: 1fr; }
  .bp-cta { padding: 20px; }
  .bp-cta__btns, .bp-cta__btns .bg-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bg-card, .bg-card__img img { transition: none; } }
