/* =====================================================================
   Muna Flow — Blog (/blog/). Yalnız blog sayfalarında, style.css'ten sonra
   yüklenir; style.css'in renk ve yazı değişkenlerini kullanır.
   Sayfalar tool/web_blog.py ile üretilir. Tasarım taslağı: docs/design/blog*.html
   ===================================================================== */

/* Kategori renkleri: .c-red .c-green .c-lav .c-sky .c-teal style.css'te var; eksik ikisi */
.c-amber { --bg: var(--amber-bg); --fg: var(--amber-fg); --cc: var(--ovulation); }
.c-pink  { --bg: #FFE3F6; --fg: #6E0F59; --cc: var(--pink); }

/* ================= Blog liste: başlık satırı ================= */
.blog-top { padding-top: calc(var(--nav-h) + 48px); }
.blog-intro { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.blog-intro h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); letter-spacing: -.035em; }
.blog-intro p { color: var(--text-2); font-size: 17px; line-height: 1.5; max-width: 48ch; margin-top: 12px; }
.blog-intro .tool-search { width: min(100%, 380px); }

/* ================= Öne çıkan yazılar slider'ı ================= */
.bs { --dur: 7s; position: relative; }
.bs-viewport { position: relative; height: clamp(420px, 36vw, 500px); border-radius: var(--r-big); overflow: hidden; isolation: isolate; background: var(--night); touch-action: pan-y; }
.bs-slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 72px); padding-bottom: clamp(88px, 7vw, 96px); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s;
}
.bs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .8s var(--ease); }
.bs-violet { background: radial-gradient(60% 70% at 0% 0%, rgba(243, 85, 208, .5), transparent 70%), radial-gradient(60% 70% at 100% 100%, rgba(168, 152, 255, .5), transparent 70%), #5A33F6; }
.bs-rose   { background: radial-gradient(55% 70% at 100% 0%, rgba(255, 157, 230, .55), transparent 70%), radial-gradient(60% 70% at 0% 100%, rgba(110, 10, 60, .55), transparent 70%), #C3306C; }
.bs-green  { background: radial-gradient(55% 70% at 100% 10%, rgba(150, 235, 190, .45), transparent 70%), radial-gradient(60% 70% at 0% 100%, rgba(4, 55, 38, .6), transparent 70%), #16865A; }
.bs-night  { background: radial-gradient(50% 70% at 85% 35%, rgba(99, 64, 255, .6), transparent 70%), radial-gradient(40% 60% at 5% 100%, rgba(243, 85, 208, .28), transparent 70%), #15121E; }

/* Metin: her geçişte sırayla yukarı kayarak gelir */
.bs-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.bs-copy > * { opacity: 0; transform: translateY(18px); }
.bs-slide.is-active .bs-copy > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.bs-slide.is-active .bs-copy > :nth-child(2) { transition-delay: .08s; }
.bs-slide.is-active .bs-copy > :nth-child(3) { transition-delay: .16s; }
.bs-slide.is-active .bs-copy > :nth-child(4) { transition-delay: .24s; }
.bs-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; }
.bs-kicker b { padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--plum); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bs-copy h2 { font-size: clamp(2rem, 1.2rem + 2.7vw, 3.75rem); letter-spacing: -.035em; line-height: 1.04; max-width: 15ch; text-wrap: balance; }
.bs-copy h2 a { color: inherit; }
.bs-copy p { font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 44ch; font-weight: 500; }
.bs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.bs-foot .btn { background: #fff; color: var(--plum); min-height: 52px; }
.bs-foot .btn:hover { background: var(--lav); }
.bs-foot .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.bs-foot .btn:hover svg { transform: translateX(3px); }
.bs-foot .post-meta { color: rgba(255, 255, 255, .78); font-size: 14px; }

/* Görsel: halkalar içinde 3D çizim */
.bs-art { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.bs-art::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 70%); }
.bs-art::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 44px transparent, 0 0 0 44px rgba(255, 255, 255, .04); }
.bs-art img { position: relative; width: 74%; filter: drop-shadow(0 30px 34px rgba(10, 0, 40, .4)); opacity: 0; transform: translateY(24px) scale(.9) rotate(-8deg); }
.bs-slide.is-active .bs-art img { opacity: 1; transform: none; transition: opacity .7s var(--ease) .1s, transform 1s var(--ease) .1s; animation: drift 8s ease-in-out 1.1s infinite; }

/* Okla ve sayaçla gezinme */
.bs-nav { position: absolute; z-index: 3; inset-inline-end: clamp(20px, 3vw, 32px); bottom: clamp(20px, 3vw, 28px); display: flex; align-items: center; gap: 10px; color: #fff; }
.bs-count { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; margin-inline-end: 6px; font-variant-numeric: tabular-nums; }
.bs-count span { opacity: .55; }
.bs-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); color: #fff; transition: background-color .2s, transform .18s var(--ease); }
.bs-btn:hover { background: rgba(255, 255, 255, .28); }
.bs-btn:active { transform: scale(.94); }
.bs-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .bs-btn svg { transform: scaleX(-1); }

/* Alt sekmeler: süre çubuğu dolunca sonraki yazıya geçer */
.bs-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.bs-tab { display: flex; flex-direction: column; gap: 6px; text-align: start; padding: 14px 4px 4px; position: relative; color: var(--text-3); transition: color .2s; }
.bs-tab::before, .bs-tab i { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; border-radius: 3px; }
.bs-tab::before { background: rgba(23, 20, 31, .1); }
.bs-tab i { background: var(--violet-deep); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .bs-tab i { transform-origin: right; }
.bs-tab small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bs-tab strong { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-tab:hover { color: var(--text-2); }
.bs-tab[aria-selected="true"] { color: var(--text); }
.bs-tab[aria-selected="true"] small { color: var(--violet-deep); }
.bs-tab[aria-selected="true"] i { animation: bs-fill var(--dur) linear forwards; }
.bs.is-paused .bs-tab i { animation-play-state: paused; }
@keyframes bs-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .bs-tab[aria-selected="true"] i { animation: none; transform: scaleX(1); }
  .bs-slide, .bs-copy > *, .bs-art img { transition: none !important; animation: none !important; }
}

@media (max-width: 760px) {
  .bs-viewport { height: 600px; }
  .bs-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 8px; padding: 24px 22px 84px; }
  .bs-art { order: -1; width: 150px; justify-self: start; }
  .bs-copy h2 { font-size: 1.875rem; }
  .bs-copy p { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bs-foot .post-meta { display: none; }
  .bs-art::after { display: none; }
  .bs-copy { gap: 14px; }
  .bs-tabs { gap: 6px; margin-top: 12px; }
  .bs-tab { padding: 0; height: 3px; }
  .bs-tab small, .bs-tab strong { display: none; }
}

/* ================= Konular (küçük, yatay) ================= */
.blog-sec { padding-top: clamp(56px, 6vw, 88px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); letter-spacing: -.03em; }
.sec-head .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--violet-deep); }
.sec-head .more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btopic-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.btopic { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--card); transition: transform .2s var(--ease), box-shadow .2s; min-width: 0; }
.btopic:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(30, 10, 90, .4); }
.btopic-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; }
.btopic-ic img { width: 38px; height: 38px; transition: transform .3s var(--ease); }
.btopic:hover .btopic-ic img { transform: rotate(-8deg) scale(1.08); }
.btopic strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.btopic small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--text-3); }
@media (max-width: 1180px) {
  .btopic-row { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; }
  .btopic-row::-webkit-scrollbar { display: none; }
  .btopic { flex: none; scroll-snap-align: start; }
}

/* Kategori hapı ve okuma bilgisi (kart, makale) */
.cat-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 12px 3px 10px; border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 13px; font-weight: 700; width: fit-content; }
.cat-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ================= Son yazılar: dergi düzeni ================= */
.mag { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 960px) { .mag { grid-template-columns: 1fr; } }
.mag-lead .post-cover { aspect-ratio: 16 / 10; }
.mag-lead .post-cover img { width: 34%; }
.mag-lead .post-body { padding: 24px 28px 28px; }
.mag-lead h3 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); }
.mag-list { display: grid; gap: 12px; align-content: start; }
/* Geniş ekranda sağdaki üç satır, soldaki büyük kartın üst ve alt kenarına hizalanır. */
@media (min-width: 961px) {
  .mag-lead .post-cover { aspect-ratio: 16 / 9; }
  .mag-list { grid-template-rows: repeat(3, minmax(0, 1fr)); align-content: stretch; }
  .mag-list .post-row { align-items: stretch; }
  .mag-list .post-row .thumb { aspect-ratio: auto; min-height: 128px; }
  .mag-list .post-row > span:last-child { justify-content: center; }
}
.post-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--card); border-radius: 24px; padding: 10px; padding-inline-end: 18px; transition: transform .2s var(--ease), box-shadow .2s; }
.post-row:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(30, 10, 90, .35); }
.post-row .thumb { aspect-ratio: 1; border-radius: 18px; background: var(--bg); display: grid; place-items: center; }
.post-row .thumb img { width: 66%; filter: drop-shadow(0 10px 12px rgba(40, 10, 60, .2)); transition: transform .35s var(--ease); }
.post-row:hover .thumb img { transform: rotate(-6deg) scale(1.06); }
.post-row > span:last-child { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-row h3 { font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.22; }
@media (max-width: 480px) { .post-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mag + .post-grid { margin-top: 16px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-card); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(30, 10, 90, .35); }
.post-cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.post-cover::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.post-cover img { position: relative; width: 38%; filter: drop-shadow(0 16px 20px rgba(40, 10, 60, .22)); transition: transform .45s var(--ease); }
.post-card:hover .post-cover img { transform: rotate(-6deg) scale(1.06); }
.post-cover .cat-pill { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255, 255, 255, .82); }
.post-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { font-size: 1.3125rem; letter-spacing: -.02em; line-height: 1.2; }
.post-body p { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.post-body .post-meta { margin-top: auto; padding-top: 6px; }

.more-row { display: flex; justify-content: center; margin-top: 28px; }
.btn-ghost { background: var(--card); color: var(--text); }
.btn-ghost:hover { background: var(--lav); color: var(--violet-ink); }

/* ================= En çok okunanlar + Okurken hesapla ================= */
.duo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 960px) { .duo { grid-template-columns: 1fr; } }
.aside-card { background: var(--card); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); }
.aside-card h2 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); letter-spacing: -.025em; margin-bottom: 16px; }
.top-list { counter-reset: top; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { .top-list { grid-template-columns: 1fr; } }
.top-list li { counter-increment: top; }
.top-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--inset); align-items: start; }
.top-list a::before { content: counter(top, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--lilac); }
.top-list strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.top-list a:hover strong { color: var(--violet-deep); }
.top-list small { display: block; margin-top: 4px; font-size: 13px; color: var(--text-3); font-weight: 600; }

.aside-tools { background: var(--plum); color: #fff; position: relative; overflow: hidden; }
.aside-tools > img { position: absolute; width: 128px; top: -6px; inset-inline-end: -10px; transform: rotate(10deg); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .4)); }
.aside-tools h2 { padding-inline-end: 96px; } /* sağ üstteki görselin altına girmesin */
.aside-tools p { color: rgba(255, 255, 255, .75); font-size: 15px; margin: -6px 0 18px; max-width: 26ch; }
.aside-tools ul { display: grid; gap: 8px; }
.aside-tools a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-weight: 600; transition: background-color .2s; }
.aside-tools a:hover { background: rgba(255, 255, 255, .16); }
.aside-tools a svg, .tool-cta .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ================= Makale: başlık ================= */
.article-hero { padding: calc(var(--nav-h) + 72px) 0 clamp(150px, 14vw, 200px); position: relative; overflow: hidden; }
.article-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .78); margin-bottom: 22px; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
[dir="rtl"] .crumbs svg { transform: scaleX(-1); }
.crumbs [aria-current] { color: #fff; }
.article-hero .cat-pill { background: rgba(255, 255, 255, .92); margin-bottom: 18px; }
.article-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.5rem); letter-spacing: -.035em; max-width: 17ch; }
.article-hero .lead { margin-top: 20px; max-width: 54ch; color: rgba(255, 255, 255, .88); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.byline-who { display: flex; align-items: center; gap: 12px; }
.byline-avatar { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.byline-avatar svg { width: 40px; height: 40px; }
.byline-who strong { display: block; font-weight: 700; }
.byline-who small { display: block; font-size: 14px; color: rgba(255, 255, 255, .78); font-weight: 500; }
.byline .post-meta { color: rgba(255, 255, 255, .86); font-size: 14px; }
.article-cover { position: relative; width: clamp(200px, 22vw, 320px); aspect-ratio: 1; margin-inline-end: clamp(0px, 3vw, 48px); display: grid; place-items: center; }
.article-cover::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.article-cover img { position: relative; width: 78%; filter: drop-shadow(0 24px 30px rgba(30, 8, 120, .35)); animation: drift 8s ease-in-out infinite; }
@media (max-width: 820px) {
  .article-hero-inner { grid-template-columns: 1fr; }
  .article-cover { display: none; }
}

/* ================= Makale: gövde kartı ================= */
.article-wrap { margin-top: calc(-1 * clamp(100px, 10vw, 140px)); position: relative; }
.article-card {
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px);
  background: var(--card); border-radius: var(--r-big); padding: clamp(24px, 4.5vw, 64px);
  box-shadow: 0 40px 80px -40px rgba(30, 10, 90, .3);
}
@media (max-width: 980px) { .article-card { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* İçindekiler */
.toc-col { position: relative; }
.toc { position: sticky; top: calc(var(--nav-h) + 40px); }
.toc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; text-align: start; pointer-events: none; }
.toc-toggle::after { content: ""; display: none; }
.toc-list { display: grid; gap: 2px; border-inline-start: 2px solid var(--inset); }
.toc-list a { display: block; padding-block: 7px; padding-inline: 16px 0; margin-inline-start: -2px; border-inline-start: 2px solid transparent; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--text-2); transition: color .2s, border-color .2s; }
.toc-list a:hover { color: var(--text); }
.toc-list a.is-active { color: var(--violet-deep); border-color: var(--violet-deep); font-weight: 600; }
.toc-share { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--inset); }
.toc-share p { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.share-row { display: flex; align-items: center; gap: 8px; }
.share-btn { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--inset); display: grid; place-items: center; color: var(--text-2); transition: background-color .2s, color .2s; }
.share-btn:hover { background: var(--lav); color: var(--violet-ink); }
.share-btn svg { display: block; width: 20px; height: 20px; }
@media (max-width: 980px) {
  /* Mobilde kapalı başlar (betik yalnız açıp kapatır; yüklenirken kayma olmaz) */
  .toc { position: static; background: var(--inset); border-radius: var(--r-tile); padding: 0 20px; }
  .toc-toggle { min-height: 56px; margin: 0; cursor: pointer; pointer-events: auto; }
  .toc-toggle::after { display: block; width: 10px; height: 10px; border-right: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
  .toc.is-open .toc-toggle::after { transform: rotate(-135deg) translateY(-3px); }
  .toc-list { display: none; margin-bottom: 18px; }
  .toc.is-open .toc-list { display: grid; }
  .toc-share { display: none; }
}

/* Okunabilir metin */
.prose { max-width: 70ch; font-size: 18px; line-height: 1.72; color: #2A2633; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -.025em; line-height: 1.12; color: var(--text); margin-top: 2.2em; scroll-margin-top: calc(var(--nav-h) + 32px); }
.prose h3 { font-size: 1.375rem; letter-spacing: -.015em; line-height: 1.2; color: var(--text); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose p a, .prose li a { color: var(--violet-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--violet-deep) 35%, transparent); }
.prose p a:hover, .prose li a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul:not([class]), .prose ol:not([class]) { padding-inline-start: 1.3em; }
.prose ul:not([class]) { list-style: disc; }
.prose ol:not([class]) { list-style: decimal; }
.prose ul:not([class]) li::marker { color: var(--violet); }
.prose li + li { margin-top: .4em; }
.prose sup a { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-inline-start: 2px; border-radius: 999px; background: var(--lav); color: var(--violet-ink); font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; vertical-align: 2px; }

/* Kısaca kutusu */
.tldr { background: var(--lav); color: var(--violet-ink); border-radius: var(--r-tile); padding: 24px 28px; }
.tldr h2 { font-size: 1.25rem; margin: 0 0 12px; color: var(--violet-ink); display: flex; align-items: center; gap: 10px; }
.tldr h2 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tldr ul { display: grid; gap: 10px; }
.tldr li { position: relative; padding-inline-start: 32px; font-size: 17px; line-height: 1.5; font-weight: 500; }
.tldr li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--violet-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.prose .tldr li + li { margin-top: 0; }

/* Bilgi / uyarı kutuları */
.callout { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; border-radius: var(--r-tile); padding: 22px 24px; background: var(--bg); color: var(--fg); }
.callout-ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.callout-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.callout strong { display: block; font-family: var(--display); font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 6px; color: inherit; }
.callout p, .callout li { font-size: 16px; line-height: 1.55; }
.callout ul { list-style: disc; padding-inline-start: 1.2em; margin-top: 6px; }
.callout li + li { margin-top: 4px; }

/* Yazı içi hesaplama aracı çağrısı */
.tool-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--plum); color: #fff; border-radius: var(--r-card); padding: 20px 24px 20px 20px; }
.tool-cta img { width: 88px; height: 88px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }
.tool-cta strong { display: block; font-family: var(--display); font-size: 1.375rem; letter-spacing: -.015em; line-height: 1.15; color: #fff; }
.tool-cta span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.tool-cta .btn { min-height: 48px; padding: 0 20px; background: #fff; color: var(--plum); white-space: nowrap; }
.tool-cta .btn:hover { background: var(--lav); }
@media (max-width: 640px) {
  .tool-cta { grid-template-columns: auto minmax(0, 1fr); }
  .tool-cta img { width: 64px; height: 64px; }
  .tool-cta .btn { grid-column: 1 / -1; }
}

/* Tablo */
.table-wrap { overflow-x: auto; border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--inset); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.prose th { text-align: start; background: var(--inset); font-weight: 700; color: var(--text); padding: 14px 18px; white-space: nowrap; }
.prose td { padding: 14px 18px; border-top: 1px solid var(--inset); vertical-align: top; }
.prose td:first-child { font-weight: 700; color: var(--text); white-space: nowrap; }
.dot-cell { display: inline-flex; align-items: center; gap: 8px; }
.dot-cell i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* Uygulama tanıtımı (yazı içi) */
.app-figure { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: clamp(20px, 3vw, 40px); align-items: center; padding: 26px clamp(22px, 3vw, 34px) 0; border-radius: var(--r-card); background: radial-gradient(120% 140% at 100% 100%, var(--lav) 0%, #F7F5FF 45%, #fff 100%); box-shadow: inset 0 0 0 1px rgba(99, 64, 255, .12); overflow: hidden; }
.app-copy { padding-bottom: 26px; }
.prose .app-copy > * + * { margin-top: 0; }
.app-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--violet-deep); }
.app-kicker img { width: 22px; height: 22px; border-radius: 6px; }
.app-figure strong { display: block; margin-top: 10px; font-family: var(--display); font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.2; color: var(--text); }
.app-figure p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 46ch; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.prose .app-copy > .app-actions { margin-top: 16px; }
.app-figure .btn { min-height: 44px; padding: 0 20px; font-size: 15px; text-decoration: none; }
.app-stores { font-size: 13px; color: var(--text-2); }
.app-shot { align-self: end; height: 236px; overflow: hidden; }
.app-shot img { display: block; width: 100%; border: 6px solid #0F0D14; border-bottom: 0; border-radius: 30px 30px 0 0; box-shadow: 0 24px 40px -20px rgba(30, 10, 90, .45); }
/* Mobil: metin tam genişlik, telefon sağ altta butonun yanından görünür. */
@media (max-width: 560px) {
  .app-figure { grid-template-columns: minmax(0, 1fr); padding: 20px 20px 0; }
  .app-copy { padding-bottom: 24px; }
  .app-figure p { font-size: 14px; }
  .app-actions { flex-direction: column; align-items: flex-start; gap: 8px; padding-inline-end: 112px; }
  .app-stores { font-size: 12px; white-space: nowrap; }
  .app-shot { position: absolute; inset-inline-end: 18px; bottom: 0; width: 100px; height: 104px; }
  .app-shot img { border-width: 4px; border-radius: 20px 20px 0 0; }
}
@media (max-width: 340px) { .app-shot { display: none; } .app-actions { padding-inline-end: 0; } }

/* Makale SSS (kart içinde) */
.prose .faq-list { margin-top: 18px; }
.prose .faq-item { background: var(--inset); }
.prose .faq-item summary { font-size: 18px; min-height: 64px; }
.prose .faq-body { font-size: 16px; line-height: 1.6; }

/* Kaynaklar ve tıbbi not */
/* Kaynaklar: ayrı bölüm, ilk üçü açık, gerisi açılır */
.sources { margin-top: 2.6em; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--inset); }
.sources-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sources-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--violet-deep); display: grid; place-items: center; }
.sources-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.prose .sources h2 { margin: 0; font-size: 1.375rem; }
.sources-count { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.src-list { counter-reset: src var(--start, 0); display: grid; gap: 8px; }
.prose .src-list li + li { margin-top: 0; }
.src-list li { counter-increment: src; position: relative; padding: 12px 14px 12px 50px; padding-inline: 50px 14px; border-radius: 14px; background: var(--card); font-size: 14px; line-height: 1.5; color: var(--text-2); scroll-margin-top: calc(var(--nav-h) + 32px); transition: box-shadow .3s; }
.src-list li::before { content: counter(src); position: absolute; inset-inline-start: 12px; top: 11px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--lav); color: var(--violet-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.src-list li:target { box-shadow: inset 0 0 0 2px var(--violet); }
.src-list a { color: var(--violet-deep); font-weight: 600; word-break: break-word; }
.src-list em { font-style: italic; }
.src-more { margin-top: 8px; }
.src-more summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 700; color: var(--violet-deep); cursor: pointer; transition: background-color .2s; }
.src-more summary::-webkit-details-marker { display: none; }
.src-more summary:hover { background: var(--lav); }
.src-more summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.src-more[open] summary svg { transform: rotate(180deg); }
.src-more[open] summary .when-closed, .src-more:not([open]) summary .when-open { display: none; }
.src-more .src-list { margin-top: 8px; }
.med-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-tile); background: var(--inset); font-size: 14px; line-height: 1.55; color: var(--text-2); }
.med-note svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--text-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.med-note strong { color: var(--text); }

/* Önceki / sonraki yazı */
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pn { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; padding-inline-end: 24px; border-radius: var(--r-card); background: var(--card); transition: transform .2s var(--ease), box-shadow .2s; }
.pn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(30, 10, 90, .35); }
.pn-thumb { aspect-ratio: 1; border-radius: 18px; background: var(--bg); display: grid; place-items: center; }
.pn-thumb img { width: 68%; filter: drop-shadow(0 8px 10px rgba(40, 10, 60, .2)); }
.pn-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pn-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pn strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.22; }
.pn:hover strong { color: var(--violet-deep); }
.pn--next { grid-template-columns: minmax(0, 1fr) 88px; padding-inline: 24px 14px; text-align: end; }
.pn--next .pn-thumb { order: 2; }
.pn--next .pn-label { justify-content: flex-end; }
.post-nav--one .pn--next { grid-column: 2; }
[dir="rtl"] .pn-label svg { transform: scaleX(-1); }
@media (max-width: 720px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav--one .pn--next { grid-column: auto; }
  .pn, .pn--next { grid-template-columns: 64px minmax(0, 1fr); padding-inline: 12px 18px; text-align: start; }
  .pn--next .pn-thumb { order: 0; }
  .pn--next .pn-label { justify-content: flex-start; }
}

/* İlgini çekebilir: masaüstünde 3 sütun, mobilde yana kayan şerit */
.related { padding-top: clamp(64px, 7vw, 104px); }
.related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.related-head .tools-h2 { margin-bottom: 0; }
.related-head .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--violet-deep); }
.related-head .more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.related .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .related .post-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 8px; }
  .related .post-grid::-webkit-scrollbar { display: none; }
  .related .post-card { flex: none; width: min(78vw, 320px); scroll-snap-align: start; }
}

/* ================= Üretici durumları (tool/web_blog.py) ================= */
/* Tek öne çıkan yazı: sekme, ok ve süre çubuğu yok */
.bs--single .bs-slide { padding-bottom: clamp(28px, 5vw, 72px); }
@media (max-width: 760px) { .bs--single .bs-viewport { height: 560px; } .bs--single .bs-slide { padding-bottom: 28px; } }
.blog-intro form.tool-search { margin: 0; }
.blog-tail { padding-bottom: clamp(72px, 8vw, 120px); }
.duo--single { grid-template-columns: minmax(0, 1fr); }
.duo--single .aside-tools ul { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Arama sonuçları */
.blog-results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .blog-results-list { grid-template-columns: 1fr; } }

/* Konu sayfası */
.blog-cat .crumbs { color: var(--text-2); }
.blog-cat .crumbs a:hover { color: var(--violet-deep); text-decoration: none; }
.blog-cat .crumbs [aria-current] { color: var(--text); }
.blog-cat .blog-intro { align-items: center; margin-bottom: 32px; }
.blog-cat .blog-intro h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4rem); }
.blog-cat-art { width: clamp(96px, 12vw, 160px); height: auto; filter: drop-shadow(0 20px 24px rgba(30, 10, 90, .25)); animation: drift 8s ease-in-out infinite; }
@media (max-width: 560px) { .blog-cat-art { display: none; } }

/* Makale başlığındaki konu hapı bağlantıdır */
a.cat-pill { transition: background-color .2s; }
.article-hero a.cat-pill:hover { background: #fff; }
.share-btn.is-done { background: var(--green-bg); color: var(--green-fg); }
.callout p { margin-top: 10px; font-weight: 600; }
.blog-results { padding-bottom: clamp(72px, 8vw, 120px); }

/* ================= Kategori tonları (content/blog/categories.json "tone") ================= */
.c-peach { --bg: #FFE6DA; --fg: #6A2610; --cc: #FF8A5C; }
.c-lilac { --bg: #F2E6FF; --fg: #4B1B7A; --cc: #B27BF2; }

/* ================= Fotoğraflı kapak (meta.json "image" bir dosyaysa) ================= */
.post-cover--photo::before, .bs-art--photo::before, .bs-art--photo::after, .article-cover--photo::before { display: none; }
.post-cover--photo img, .thumb--photo img, .pn-thumb--photo img {
  width: 100%; height: 100%; object-fit: cover; filter: none; transform: none !important;
}
.thumb--photo, .pn-thumb--photo { overflow: hidden; }
.post-card:hover .post-cover--photo img { transform: scale(1.04) !important; }
.post-cover--photo .cat-pill { z-index: 1; }
.bs-art--photo { aspect-ratio: 4 / 5; width: min(100%, 360px); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(10, 0, 40, .5); }
.bs-art--photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.bs-slide.is-active .bs-art--photo img { animation: none; }
.article-cover--photo { aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(10, 0, 40, .5); }
.article-cover--photo img { width: 100%; height: 100%; object-fit: cover; filter: none; animation: none; }
@media (max-width: 760px) { .bs-art--photo { width: 150px; aspect-ratio: 1; } }

/* Uzun bileşik kelimeler (Almanca vb.) ve adresler dar ekranda taşmasın */
.prose, .article-hero h1, .bs-copy h2, .post-body h3, .pn strong { overflow-wrap: break-word; hyphens: auto; }
.src-list li { overflow-wrap: anywhere; }

/* Slider yüksekliği içeriğe göre: slaytlar aynı ızgara hücresinde üst üste durur, en uzun slayt yüksekliği
   belirler; uzun başlık ya da özet "Yazıyı oku" düğmesini kesmez. */
.bs-viewport { display: grid; height: auto; min-height: clamp(420px, 36vw, 500px); }
.bs-slide { position: relative; inset: auto; grid-area: 1 / 1; }
@media (max-width: 760px) {
  .bs-viewport, .bs--single .bs-viewport { height: auto; min-height: 520px; }
}
@media (max-width: 760px) { .bs-slide { padding-bottom: 96px; } .bs--single .bs-slide { padding-bottom: 28px; } }

.nobr { white-space: nowrap; }
