/* ===================================================================
   Blog Detay — editorial makale sayfası
   =================================================================== */
/* Accent ARTIK site primary'sine bağlı (sabit mint değil) — tüm sayfa tema rengiyle uyumlu.
   --bd-rgb, head'de basılan --wsell-primary-rgb'den gelir (rgba kullanımları için). */
.bd-page { display: block;
  --bd: var(--wsell-primary, #4DD4AC);
  --bd-deep: color-mix(in srgb, var(--wsell-primary, #4DD4AC) 82%, #000);
  --bd-soft: color-mix(in srgb, var(--wsell-primary, #4DD4AC) 12%, #fff);
  --bd-rgb: var(--wsell-primary-rgb, 77,212,172);
  /* Arka plan deseni ortak .wsell-swirl-bg sınıfından gelir (blog-detay.php'de eklendi). */
  background: #ffffff;
}
.bd-page .container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.bd-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- in-column header ---------- */
.bd-head { margin-bottom: 34px; }
.bd-body { padding: 46px 0 30px; }

/* ---------- HERO / masthead ---------- */
.bd-hero { position: relative; padding: 44px 0 40px; overflow: hidden;
  background: linear-gradient(180deg, var(--bd-soft) 0%, var(--c-bg) 100%); }
.bd-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(var(--bd-rgb), .16) 1.4px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 72%); opacity: .6; }
.bd-hero .bd-wrap { position: relative; z-index: 1; }

.bd-crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--c-muted); margin-bottom: 20px; flex-wrap: wrap; }
.bd-crumb a { color: var(--c-ink-soft); font-weight: 600; }
.bd-crumb a:hover { color: var(--bd-deep); }
.bd-crumb svg { width: 14px; height: 14px; opacity: .6; }
.bd-crumb span { color: var(--c-ink); font-weight: 700; }

.bd-cat { display: inline-flex; align-items: center; gap: 7px; background: var(--bd); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.bd-title { font-size: 38px; line-height: 1.13; letter-spacing: -.03em; font-weight: 800; color: var(--c-ink); margin: 0 0 16px; text-wrap: balance; }
.bd-excerpt { font-size: 18px; color: var(--c-ink-soft); margin: 0 0 26px; line-height: 1.6; text-wrap: pretty; }

.bd-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bd-author { display: flex; align-items: center; gap: 11px; }
.bd-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.bd-author b { display: block; font-size: 14.5px; font-weight: 800; color: var(--c-ink); }
.bd-author span { font-size: 13px; color: var(--c-muted); }
.bd-meta-sep { width: 1px; height: 30px; background: var(--c-line-2); }
.bd-meta-i { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--c-ink-soft); font-weight: 600; }
.bd-meta-i svg { width: 16px; height: 16px; color: var(--bd-deep); }

/* ---------- cover (in-column) ---------- */
.bd-cover { margin: 26px 0 0; }
.bd-cover img { display: block; width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- article body + sidebar layout ---------- */
.bd-layout { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 52px; align-items: start; }
.bd-main { min-width: 0; }
.bd-article { font-size: 17.5px; line-height: 1.78; color: var(--c-ink-soft); }
.bd-article > p { margin: 0 0 22px; text-wrap: pretty; }
.bd-article > p:first-child::first-letter { font-size: 62px; font-weight: 800; float: left; line-height: .82; padding: 6px 12px 0 0; color: var(--bd-deep); }
.bd-article h2 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: var(--c-ink); margin: 42px 0 16px; scroll-margin-top: 90px; }
.bd-article h3 { font-size: 20px; font-weight: 800; color: var(--c-ink); margin: 32px 0 12px; }
.bd-article strong { color: var(--c-ink); font-weight: 700; }
.bd-article a { color: var(--bd-deep); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(var(--bd-rgb), .4); text-underline-offset: 3px; }
.bd-article ul, .bd-article ol { margin: 0 0 24px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bd-article ul li { display: flex; align-items: flex-start; gap: 12px; }
.bd-article ul li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 6px; color: #fff; background: var(--bd); border-radius: 50%; padding: 3px; box-sizing: content-box; }
.bd-article ol { counter-reset: bdol; }
.bd-article ol li { display: flex; align-items: flex-start; gap: 14px; counter-increment: bdol; }
.bd-article ol li::before { content: counter(bdol); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bd-soft); color: var(--bd-deep); font-size: 14px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }

.bd-quote { margin: 34px 0; padding: 26px 30px; border-left: 4px solid var(--bd); background: var(--bd-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.bd-quote p { font-size: 20px; font-weight: 700; font-style: italic; color: var(--c-ink); margin: 0 0 8px; line-height: 1.5; }
.bd-quote cite { font-style: normal; font-size: 13.5px; color: var(--c-muted); font-weight: 600; }

.bd-callout { display: flex; gap: 16px; margin: 34px 0; padding: 22px 24px; background: var(--c-surface); border: 1px solid transparent; border-radius: var(--radius-lg); box-shadow: var(--ws-shadow); }
.bd-callout svg { width: 26px; height: 26px; color: var(--bd-deep); flex-shrink: 0; margin-top: 2px; }
.bd-callout div b { display: block; font-size: 15px; color: var(--c-ink); margin-bottom: 4px; }
.bd-callout div p { margin: 0; font-size: 14.5px; }

.bd-fig { margin: 34px 0; }
.bd-fig img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.bd-fig figcaption { text-align: center; font-size: 13px; color: var(--c-muted); margin-top: 10px; }

/* ---------- tags + share ---------- */
.bd-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0; margin-top: 12px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.bd-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.bd-tag { font-size: 13px; font-weight: 700; color: var(--c-ink-soft); background: var(--c-bg-2); padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.bd-tag:hover { background: var(--bd-soft); color: var(--bd-deep); }
.bd-share { display: flex; align-items: center; gap: 9px; }
.bd-share span { font-size: 13.5px; font-weight: 700; color: var(--c-ink); }
.bd-share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c-bg-2); color: var(--c-ink-soft); transition: background .2s, color .2s, transform .2s; }
.bd-share a svg { width: 17px; height: 17px; }
.bd-share a:hover { background: var(--bd); color: #fff; transform: translateY(-2px); }

/* ---------- author box ---------- */
.bd-authorbox { display: flex; gap: 20px; align-items: center; margin: 40px 0 0; padding: 26px; background: var(--c-bg-2); border-radius: var(--radius-lg); }
.bd-authorbox img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--c-surface); box-shadow: var(--shadow-sm); }
.bd-authorbox b { font-size: 17px; font-weight: 800; color: var(--c-ink); }
.bd-authorbox .role { font-size: 13px; color: var(--bd-deep); font-weight: 700; margin: 2px 0 8px; }
.bd-authorbox p { font-size: 14.5px; color: var(--c-ink-soft); margin: 0; line-height: 1.6; }

/* ---------- newsletter ---------- */
.bd-news { padding: 20px 0 60px; }
.bd-news-inner { position: relative; overflow: hidden; max-width: 900px; margin: 0 auto; text-align: center; border-radius: var(--radius-xl); padding: 52px 40px; color: #fff;
  background: linear-gradient(135deg, var(--bd-deep) 0%, var(--bd) 100%); box-shadow: 0 26px 60px rgba(var(--bd-rgb), .32); }
.bd-news-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.bd-news-deco.a { top: -60px; right: -40px; width: 200px; height: 200px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 70%); }
.bd-news-deco.b { bottom: -70px; left: -30px; width: 220px; height: 220px; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.14), transparent 70%); }
.bd-news-inner h2 { position: relative; z-index: 1; font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.bd-news-inner p { position: relative; z-index: 1; font-size: 15.5px; opacity: .92; margin: 0 auto 24px; max-width: 460px; }
.bd-news-form { position: relative; z-index: 1; display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.bd-news-form input { flex: 1; border: none; border-radius: 12px; padding: 14px 18px; font-size: 15px; font-family: inherit; outline: none; color: var(--c-ink); }
.bd-news-form button { border: none; border-radius: 12px; padding: 14px 24px; font-size: 15px; font-weight: 800; background: #fff; color: var(--bd-deep); cursor: pointer; transition: transform .18s; }
.bd-news-form button:hover { transform: translateY(-2px); }

/* ---------- related ---------- */
.bd-related { padding: 60px 0 74px; background: var(--c-bg-2); }
.bd-rel-head { text-align: center; margin-bottom: 40px; }
.bd-rel-head span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bd-deep); }
.bd-rel-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--c-ink); margin: 8px 0 0; }
.bd-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bd-rel-card { display: block; background: var(--c-surface); border: 1px solid transparent; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--ws-shadow); transition: transform .2s, box-shadow .2s; }
.bd-rel-card:hover { transform: translateY(var(--ws-lift)); box-shadow: var(--ws-shadow-hover); }
.bd-rel-card .thumb { position: relative; overflow: hidden; }
.bd-rel-card .thumb img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform .4s; }
.bd-rel-card:hover .thumb img { transform: scale(1.05); }
.bd-rel-card .thumb .c { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--c-ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.bd-rel-card .b { padding: 20px 22px 22px; }
.bd-rel-card .b h3 { font-size: 17px; font-weight: 800; color: var(--c-ink); margin: 0 0 10px; line-height: 1.35; }
.bd-rel-card .b .m { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--c-muted); font-weight: 600; }
.bd-rel-card .b .m svg { width: 14px; height: 14px; }

/* ---------- reading progress ---------- */
.bd-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--bd); z-index: 60; transition: width .1s linear; }

/* ---------- SIDEBAR ---------- */
.bd-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.bd-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.bd-side-h { font-size: 15px; font-weight: 800; color: var(--c-ink); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); position: relative; }
.bd-side-h::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 38px; height: 3px; border-radius: 2px; background: var(--bd); }

/* search */
.bd-side-search { padding: 8px; }
.bd-side-search form { display: flex; align-items: center; gap: 8px; }
.bd-side-search span { flex-shrink: 0; padding-left: 10px; color: var(--c-muted); display: grid; place-items: center; }
.bd-side-search span svg { width: 18px; height: 18px; }
.bd-side-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 14.5px; color: var(--c-ink); padding: 10px 0; }
.bd-side-search input::placeholder { color: var(--c-muted); }
.bd-side-search button { flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 10px; background: var(--bd); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .18s, background .18s; }
.bd-side-search button:hover { background: var(--bd-deep); transform: translateX(1px); }
.bd-side-search button svg { width: 17px; height: 17px; transform: rotate(180deg); }

/* popular posts */
.bd-pop-list { display: flex; flex-direction: column; gap: 16px; }
.bd-pop { display: flex; gap: 13px; align-items: center; }
.bd-pop-img { flex-shrink: 0; width: 66px; height: 66px; border-radius: 12px; overflow: hidden; }
.bd-pop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bd-pop:hover .bd-pop-img img { transform: scale(1.08); }
.bd-pop-tx b { display: block; font-size: 14px; font-weight: 700; color: var(--c-ink); line-height: 1.35; margin-bottom: 5px; transition: color .18s; }
.bd-pop:hover .bd-pop-tx b { color: var(--bd-deep); }
.bd-pop-tx span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--c-muted); font-weight: 600; }
.bd-pop-tx span svg { width: 13px; height: 13px; }

/* categories */
.bd-cat-list { display: flex; flex-direction: column; }
.bd-catrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 4px; font-size: 14.5px; font-weight: 600; color: var(--c-ink-soft); border-bottom: 1px solid var(--c-line); transition: color .18s, padding .18s; }
.bd-cat-list .bd-catrow:last-child { border-bottom: none; }
.bd-catrow:hover { color: var(--bd-deep); padding-left: 8px; }
.bd-catrow i { flex-shrink: 0; font-style: normal; font-size: 12px; font-weight: 800; color: var(--bd-deep); background: var(--bd-soft); border-radius: 999px; padding: 3px 10px; }

/* tag cloud */
.bd-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* side CTA */
.bd-side-cta { position: relative; overflow: hidden; color: #fff; border: none; background: linear-gradient(140deg, var(--bd-deep), var(--bd)); box-shadow: 0 16px 34px rgba(var(--bd-rgb), .3); }
.bd-side-cta-deco { position: absolute; top: -40px; right: -30px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.bd-side-cta h4 { position: relative; font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.bd-side-cta p { position: relative; font-size: 13.5px; opacity: .92; margin: 0 0 16px; line-height: 1.55; }
.bd-side-cta-btn { position: relative; display: inline-block; background: #fff; color: var(--bd-deep); font-size: 13.5px; font-weight: 800; padding: 11px 20px; border-radius: 10px; transition: transform .18s; }
.bd-side-cta-btn:hover { transform: translateY(-2px); }

/* ---------- dark ---------- */
html[data-theme="dark"] .bd-hero { background: linear-gradient(180deg, rgba(var(--bd-rgb),.08) 0%, var(--c-bg) 100%); }
html[data-theme="dark"] .bd-cover img,
html[data-theme="dark"] .bd-author img { border-color: var(--c-surface); }
html[data-theme="dark"] .bd-rel-card .thumb .c { background: rgba(30,36,52,.88); color: #fff; }
html[data-theme="dark"] .bd-news-form input { background: var(--c-surface); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .bd-layout { grid-template-columns: 1fr; gap: 40px; }
  .bd-side { position: static; }
}
@media (max-width: 900px) {
  .bd-cover img { height: 340px; }
  .bd-rel-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .bd-title { font-size: 27px; }
  .bd-excerpt { font-size: 16px; }
  .bd-meta-sep { display: none; }
  .bd-cover img { height: 200px; }
  .bd-body { padding: 36px 0 20px; }
  .bd-article { font-size: 16.5px; }
  .bd-article > p:first-child::first-letter { font-size: 50px; }
  .bd-article h2 { font-size: 23px; }
  .bd-foot { flex-direction: column; align-items: flex-start; }
  .bd-authorbox { flex-direction: column; text-align: center; }
  .bd-news-inner { padding: 40px 22px; }
  .bd-news-form { flex-direction: column; }
  .bd-news-inner h2 { font-size: 23px; }
  .bd-related { padding: 44px 0 54px; }
}
