/* =========================================================
   BLOG DETAY  (blog-detay.php ile eşleşir) — önek: bd-
   assets/blog-haberler.css ile BİRLİKTE yüklenir; hero, site haritası, kartlar,
   butonlar ve değişkenler (--bh-*) oradan gelir. Burada yalnızca detaya özel kısımlar var.
   ========================================================= */

/* ---------- okuma ilerleme çubuğu ---------- */
.bd-progress { position: fixed; z-index: 9999; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; background: rgba(11, 42, 74, .08); }
.bd-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #00cfff, #0a7fe0); box-shadow: 0 0 10px rgba(0, 217, 255, .8); }

/* ---------- hero: uzun başlıklar + künye ---------- */
.bd .bh-hero h1 { max-width: 26ch; font-size: clamp(30px, 4.8vw, 64px); line-height: 1.08; text-wrap: balance; }
.bd .bh-crumb ol { max-width: 100%; }
.bd .bh-crumb li:last-child { min-width: 0; }
.bd .bh-crumb li:last-child span { display: block; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: #dcebf6; animation: bhRise 1s var(--bh-ease) .22s both; }
.bd-meta li { display: inline-flex; align-items: center; gap: 8px; }
.bd-meta svg { width: 17px; height: 17px; flex: none; color: var(--bh-ice); }
.bd-chip a { display: inline-block; padding: 6px 14px; border-left: 3px solid var(--bh-ice); border-radius: 3px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .3s ease; }
.bd-chip a:hover { background: rgba(255, 255, 255, .26); }
.bd-chip a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.bd-preview { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: -10px 0 18px; padding: 9px 16px; border-left: 4px solid #ffb020; border-radius: 4px; background: rgba(255, 176, 32, .18); color: #fff3d6; font-size: 14px; font-weight: 500; }
.bd-preview b { color: #ffd37a; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

/* ---------- gövde yerleşimi ---------- */
.bd-sec { padding-block: clamp(48px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.bd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 4.4vw, 64px); align-items: start; }
.bd-main { min-width: 0; max-width: 820px; }

/* kapak resmi */
.bd-cover { position: relative; margin: 0 0 clamp(26px, 3vw, 40px); border: 1px solid var(--bh-line); border-left: 6px solid var(--bh-cyan); border-radius: 4px; overflow: hidden; background: #e6eef4; box-shadow: 0 30px 56px -34px rgba(11, 42, 74, .55); }
.bd-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.bd-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bh-neon); box-shadow: 0 0 12px var(--bh-neon); }

.bd-lead { margin: 0 0 22px; padding-left: 20px; border-left: 4px solid var(--bh-cyan); font-size: clamp(18px, 1.7vw, 21px); font-weight: 300; line-height: 1.7; color: var(--bh-ink); }
.bd-updated { margin: -6px 0 24px; font-size: 13px; font-weight: 600; color: var(--bh-mute); }

/* ---------- yazı metni ---------- */
.bd-body { font-size: 18px; line-height: 1.85; color: #2c3e50; overflow-wrap: break-word; }
.bd-body > *:first-child { margin-top: 0; }
.bd-body p { margin: 0 0 1.25em; }
.bd-body h2, .bd-body h3, .bd-body h4 { color: var(--bh-ink); text-wrap: balance; scroll-margin-top: calc(var(--hdr, 64px) + var(--subnav-h, 0px) + 24px); }
.bd-body h2 { position: relative; margin: 2em 0 .7em; padding-bottom: 14px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; }
.bd-body h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: linear-gradient(90deg, var(--bh-cyan), var(--bh-neon)); box-shadow: 0 0 10px rgba(0, 217, 255, .6); }
.bd-body h3 { margin: 1.7em 0 .5em; font-size: clamp(21px, 2vw, 25px); font-weight: 600; line-height: 1.3; }
.bd-body h4 { margin: 1.5em 0 .4em; font-size: 18px; font-weight: 700; }
.bd-body strong, .bd-body b { font-weight: 700; color: var(--bh-ink); }
.bd-body a { color: var(--bh-blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(10, 127, 224, .4); transition: color .25s ease, text-decoration-color .25s ease; }
.bd-body a:hover { color: var(--bh-ink); text-decoration-color: var(--bh-neon); }
.bd-body ul, .bd-body ol { margin: 0 0 1.35em; padding: 0; list-style: none; }
.bd-body ol { counter-reset: bdn; }
.bd-body li { position: relative; margin-bottom: .55em; padding-left: 32px; }
.bd-body ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border: 2px solid var(--bh-sky); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 8px rgba(10, 143, 232, .3); }
.bd-body ol > li { counter-increment: bdn; }
.bd-body ol > li::before { content: counter(bdn); position: absolute; left: 0; top: .22em; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: linear-gradient(135deg, #1aa7ff, #0a5fb8); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.bd-body li > ul, .bd-body li > ol { margin: .6em 0 0; }
.bd-body blockquote { margin: 1.8em 0; padding: 20px 24px 20px 26px; border-left: 5px solid var(--bh-cyan); border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #eaf6ff, #f6fbff); font-size: 1.08em; font-weight: 300; font-style: italic; line-height: 1.7; color: var(--bh-ink); }
.bd-body blockquote p:last-child { margin-bottom: 0; }
.bd-body hr { height: 1px; margin: 2.2em 0; border: 0; background: linear-gradient(90deg, var(--bh-cyan), rgba(37, 195, 253, 0)); }

/* etiketler */
.bd-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--bh-line); }
.bd-tags a { display: inline-block; padding: 7px 14px; border: 1px solid var(--bh-line); border-radius: 99px; background: #fff; color: var(--bh-blue); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.bd-tags a:hover { background: var(--bh-blue); border-color: var(--bh-blue); color: #fff; transform: translateY(-2px); }
.bd-tags a:focus-visible { outline: 2px solid var(--bh-blue); outline-offset: 3px; }

/* ---------- içindekiler ---------- */
.bd-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: bdt; }
.bd-toc li { margin: 0; }
.bd-toc a { position: relative; display: block; padding: 8px 12px 8px 14px; border-left: 2px solid var(--bh-line); color: var(--bh-text); font-size: 14.5px; font-weight: 500; line-height: 1.4; text-decoration: none; transition: color .25s ease, border-color .25s ease, background .25s ease; }
.bd-toc li.lv3 a { padding-left: 28px; font-size: 13.5px; color: var(--bh-mute); }
.bd-toc a:hover { color: var(--bh-blue); border-left-color: var(--bh-cyan); }
.bd-toc a.is-on { color: var(--bh-ink); font-weight: 700; border-left-color: var(--bh-neon); background: linear-gradient(90deg, rgba(0, 217, 255, .12), transparent); }
.bd-toc a:focus-visible { outline: 2px solid var(--bh-blue); outline-offset: -2px; }

/* mobilde: yazının başında açılır kutu; masaüstünde yan sütundaki kullanılır */
.bd-toc--inline { display: none; margin: 0 0 28px; padding: 18px 18px 10px; border: 1px solid var(--bh-line); border-left: 5px solid var(--bh-cyan); border-radius: 4px; background: #fff; }
.bd-toc--inline > b { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bh-blue); }

/* ---------- yan sütun ---------- */
.bd-aside { min-width: 0; }
.bd-aside-in { position: sticky; top: calc(var(--hdr, 64px) + var(--subnav-h, 0px) + 20px); display: grid; gap: 20px; }
.bd-card { padding: 22px 22px 22px 20px; border: 1px solid var(--bh-line); border-left: 5px solid var(--bh-cyan); border-radius: 4px; background: #fff; box-shadow: 0 20px 40px -28px rgba(11, 42, 74, .5); }
.bd-card-t { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bh-blue); }
.bd-toc.bd-card { max-height: calc(100vh - var(--hdr, 64px) - var(--subnav-h, 0px) - 260px); min-height: 120px; overflow-y: auto; scrollbar-width: thin; }
.bd-cta-card { border-left-color: var(--bh-neon); color: #fff; background: radial-gradient(70% 90% at 0% 0%, rgba(0, 217, 255, .26), transparent 70%), linear-gradient(120deg, #0c3b6e, #0a7fe0); border-color: rgba(255, 255, 255, .25); box-shadow: 0 24px 46px -24px rgba(10, 95, 184, .75); }
.bd-cta-card .bd-card-t { color: #fff; font-size: 15px; letter-spacing: .02em; text-transform: none; margin-bottom: 8px; }
.bd-cta-card p { margin: 0 0 18px; font-size: 14.5px; font-weight: 300; line-height: 1.65; color: #dcebf6; }
.bd-cta-card .bh-btn { background: #fff; color: var(--bh-ink); border-left-color: var(--bh-neon); box-shadow: none; }
.bd-cta-card .bh-btn:hover { background: #eaf8ff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }

/* ---------- paylaşım ---------- */
.bd-share { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-top: 36px; padding: 18px 20px; border: 1px solid var(--bh-line); border-left: 5px solid var(--bh-cyan); border-radius: 4px; background: #fff; }
.bd-share > b { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bh-blue); }
.bd-share-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bd-sh { position: relative; height: 42px; min-width: 42px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--bh-line); border-radius: 50%; background: #f3f8fc; color: var(--bh-ink); font: inherit; cursor: pointer; text-decoration: none; transition: transform .35s var(--bh-ease), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.bd-sh svg { width: 19px; height: 19px; flex: none; }
.bd-sh:hover, .bd-sh:focus-visible { transform: translateY(-4px); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .4); outline: none; }
.bd-sh:focus-visible { outline: 2px solid var(--bh-blue); outline-offset: 3px; }
.bd-sh--wa:hover, .bd-sh--wa:focus-visible { background: #1ebe5b; }
.bd-sh--fb:hover, .bd-sh--fb:focus-visible { background: #1877f2; }
.bd-sh--x:hover,  .bd-sh--x:focus-visible  { background: #000; }
.bd-sh--in:hover, .bd-sh--in:focus-visible { background: #0a66c2; }
.bd-sh--cp:hover, .bd-sh--cp:focus-visible { background: var(--bh-blue); }
.bd-sh-txt { font-size: 13px; font-weight: 700; }
.bd-sh-txt:empty { display: none; }
.bd-sh--cp:has(.bd-sh-txt:not(:empty)) { border-radius: 99px; background: var(--bh-blue); color: #fff; }

/* ---------- galeri + videolar ---------- */
.bd-block { margin-top: clamp(44px, 5vw, 72px); }
.bd-block .bh-headrow { margin-bottom: clamp(22px, 2.6vw, 34px); }
.bd-block h2 { font-size: clamp(24px, 2.8vw, 36px); }

.bd-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bd-gal li { min-width: 0; }
.bd-shot { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--bh-line); border-left: 4px solid var(--bh-cyan); border-radius: 4px; overflow: hidden; background: #e6eef4; cursor: zoom-in; box-shadow: 0 16px 32px -22px rgba(11, 42, 74, .5); transition: transform .5s var(--bh-ease), box-shadow .5s ease; }
.bd-shot .bh-img { position: absolute; inset: 0; }
.bd-shot:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -24px rgba(0, 150, 255, .55); }
.bd-shot:hover .bh-img img { transform: scale(1.07); filter: saturate(1.08); }
.bd-shot:hover .bh-scan { transform: scaleX(1); }
.bd-shot:focus-visible { outline: 2px solid var(--bh-blue); outline-offset: 3px; }
.bd-shot-ic { position: absolute; z-index: 3; right: 10px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--bh-blue); opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .4s var(--bh-ease); }
.bd-shot-ic svg { width: 16px; height: 16px; }
.bd-shot:hover .bd-shot-ic, .bd-shot:focus-visible .bd-shot-ic { opacity: 1; transform: none; }

.bd-vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bd-vcard { margin: 0; min-width: 0; border: 1px solid var(--bh-line); border-left: 5px solid var(--bh-cyan); border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -28px rgba(11, 42, 74, .5); }
.bd-vbox { position: relative; aspect-ratio: 16 / 9; background: #0b2a4a; overflow: hidden; }
.bd-vbox img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1s var(--bh-ease), opacity .4s ease; }
.bd-vcard:hover .bd-vbox img { transform: scale(1.05); opacity: 1; }
.bd-vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.bd-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; display: grid; place-items: center; margin: -34px 0 0 -34px; padding: 0 0 0 4px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #1aa7ff, #0a5fb8); color: #fff; cursor: pointer; box-shadow: 0 0 0 8px rgba(255, 255, 255, .22), 0 14px 30px -8px rgba(0, 150, 255, .8); transition: transform .4s var(--bh-ease), box-shadow .4s ease; }
.bd-play svg { width: 26px; height: 26px; }
.bd-play:hover, .bd-play:focus-visible { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(255, 255, 255, .26), 0 18px 36px -8px rgba(0, 200, 255, .9); outline: none; }
.bd-vbox--ig { display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(70% 90% at 30% 20%, rgba(0, 217, 255, .25), transparent 70%), linear-gradient(135deg, #0c3b6e, #0a5fb8); }
.bd-vbox--ig .bd-play { position: static; margin: 0 0 14px; }
.bd-ig-txt { font-size: 14px; font-weight: 600; color: #dcebf6; }
.bd-vbox--ig.is-live { display: block; aspect-ratio: auto; min-height: 520px; background: #fff; }
.bd-vcard figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 14px; }
.bd-vcard figcaption b { min-width: 0; font-weight: 700; color: var(--bh-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-vcard figcaption a { flex: none; font-weight: 600; color: var(--bh-blue); text-decoration: none; }
.bd-vcard figcaption a:hover { text-decoration: underline; }

/* ---------- önceki / sonraki ---------- */
.bd-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.bd-pn-link { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 22px; border: 1px solid var(--bh-line); border-left: 5px solid var(--bh-cyan); border-radius: 4px; background: #fff; color: var(--bh-ink); text-decoration: none; transition: transform .4s var(--bh-ease), box-shadow .4s ease, border-color .3s ease; }
.bd-pn-link small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bh-blue); }
.bd-pn-link b { font-size: 16.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-pn-link:hover { transform: translateY(-4px); border-left-color: var(--bh-neon); box-shadow: 0 22px 40px -24px rgba(0, 150, 255, .55); }
.bd-pn-link:focus-visible { outline: 2px solid var(--bh-blue); outline-offset: 3px; }
.bd-pn-link--next { grid-column: 2; text-align: right; border-left-width: 1px; border-right: 5px solid var(--bh-cyan); }
.bd-pn-link--next:hover { border-right-color: var(--bh-neon); }
.bd-pn > span:first-child:empty { display: none; }

/* ---------- benzer yazılar / 404 ---------- */
.bd-related { margin-top: clamp(56px, 6vw, 96px); }
.bd-related .bh-headrow { align-items: flex-end; }
.bd-all { flex: none; }
.bd-oneri { margin-top: clamp(28px, 3.4vw, 44px); }

/* ---------- lightbox ---------- */
.bd-lb { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(4, 18, 36, .94); opacity: 0; transition: opacity .25s ease; }
.bd-lb[hidden] { display: none; }
.bd-lb.is-open { opacity: 1; }
.bd-lb-stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 76px 78px; }
.bd-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.97); transition: opacity .35s ease, transform .45s var(--bh-ease, ease); }
.bd-lb-img.is-in { opacity: 1; transform: none; }
.bd-lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .25s ease, transform .3s ease; }
.bd-lb-btn svg { width: 22px; height: 22px; }
.bd-lb-btn:hover, .bd-lb-btn:focus-visible { background: rgba(0, 217, 255, .35); outline: none; }
.bd-lb-btn:focus-visible { box-shadow: 0 0 0 3px #00d9ff; }
.bd-lb-close { top: 18px; right: 18px; }
.bd-lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.bd-lb-next { right: 18px; top: 50%; margin-top: -26px; }
.bd-lb-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px 20px; color: #dcebf6; font-size: 14px; font-weight: 600; background: linear-gradient(0deg, rgba(4, 18, 36, .9), transparent); }
.bd-lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-lb-cnt { flex: none; color: #7ae7ff; font-variant-numeric: tabular-nums; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
    .bd-layout { grid-template-columns: 1fr; }
    .bd-main { max-width: none; }
    .bd-aside-in { position: static; }
    .bd-aside .bd-toc { display: none; }                 /* yan sütundaki içindekiler gizlenir… */
    .bd-toc--inline { display: block; }                  /* …yazının başındaki gösterilir */
    .bd-aside { order: 2; }
    .bd-cta-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; }
    .bd-cta-card .bd-card-t, .bd-cta-card p { grid-column: 1; margin-bottom: 0; }
    .bd-cta-card .bh-btn { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
    .bd .bh-crumb li:last-child span { max-width: 20ch; }
    .bd-meta { gap: 8px 16px; font-size: 13.5px; }
    .bd-sec { padding-top: 40px; }
    .bd-body { font-size: 17px; line-height: 1.8; }
    .bd-body li { padding-left: 28px; }
    .bd-gal { grid-template-columns: 1fr 1fr; gap: 10px; }
    .bd-vgrid { grid-template-columns: 1fr; }
    .bd-vbox--ig.is-live { min-height: 480px; }
    .bd-pn { grid-template-columns: 1fr; }
    .bd-pn-link--next { grid-column: 1; }
    .bd-share { flex-direction: column; align-items: flex-start; }
    .bd-cta-card { display: block; }
    .bd-cta-card p { margin-bottom: 16px; }
    .bd-related .bh-headrow { align-items: flex-start; flex-direction: column; }
    .bd-lb-stage { padding: 64px 12px 74px; }
    .bd-lb-prev, .bd-lb-next { top: auto; bottom: 14px; margin-top: 0; width: 46px; height: 46px; }
    .bd-lb-prev { left: 14px; }
    .bd-lb-next { right: 14px; }
    .bd-lb-bar { justify-content: center; padding-bottom: 28px; }
    .bd-lb-name { display: none; }
}
@media (hover: none) {
    .bd-shot:hover, .bd-pn-link:hover, .bd-sh:hover { transform: none; }
    .bd-shot-ic { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bd *, .bd *::before, .bd *::after { transition-duration: .01ms !important; animation: none !important; }
    .bd-lb, .bd-lb-img { transition: none; }
}