/* ==========================================================================
   Moda Kreatif — alt sayfalar (hizmetler, referanslar, hakkımızda, yasal metinler, 404)
   style.css'ten sonra yüklenir; renk değişkenleri, logo, menü butonu, menü katmanı,
   buton sistemi ve gren oradan gelir. Bu dosya yalnızca alt sayfa düzenini ekler.
   Tipografi kuralı: monospace yok, büyük harfli etiket stili yok, harf aralığı hep normal.
   ========================================================================== */

/* style.css ana sayfa için sayfayı kilitler; alt sayfalar normal kayar. */
html.page, html.page body { height: auto; }
html.page body { overflow: visible; overflow-x: clip; overscroll-behavior: auto; min-height: 100vh; display: flex; flex-direction: column; }
html.page { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html.page { scroll-behavior: auto; } }

.page em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--purple); }

/* Arka plan: ana sayfadaki degradenin sakin hali */
.pbg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 46% at 88% 6%, rgba(122, 77, 255, .20), transparent 70%),
    radial-gradient(30% 34% at 96% 30%, rgba(230, 0, 126, .06), transparent 70%),
    linear-gradient(180deg, #f6f4fa 0%, var(--bg) 38%, var(--bg-2) 100%);
}

/* ───────── Üst bar ───────── */
.ptop {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: env(safe-area-inset-top) var(--gx) 0;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.ptop.is-scrolled {
  background: rgba(240, 237, 246, .78);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.pnav { display: flex; gap: 6px; margin-left: auto; }
.pnav a {
  font-size: 16px; text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.pnav a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.pnav a[aria-current] { color: var(--purple); font-family: var(--f-serif); font-style: italic; font-size: 19px; }
.ptop-ctrl { display: flex; align-items: center; gap: 10px; }
.pcta {
  height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px;
  font-size: 15px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pcta:hover { background: var(--yellow); border-color: var(--yellow); }

/* Menü katmanı: alt sayfalarda numaralar */
.menu-num { font-size: 13px; margin-top: 1.2em; color: rgba(255, 255, 255, .6); }
.menu-link { text-decoration: none; }
.menu-top .logo { text-decoration: none; }
/* Dokunmatik cihazlarda hover yok: pasif menü bağlantıları mor zeminde en az 4.5:1 kontrast */
.page .menu-link { color: rgba(255, 255, 255, .62); }
.page .menu-link:hover, .page .menu-link.is-active { color: #fff; }
/* Menü açıkken arkadaki sayfa kaymasın */
html.page.menu-open body { overflow: hidden; }

/* Koyu ve mor zeminlerde görünür odak halkası (WCAG 2.4.7 / 1.4.11) */
.page .pfoot :focus-visible, .page .cta-band :focus-visible, .page .menu :focus-visible { outline-color: #fff; }

/* ───────── Ana içerik ───────── */
.pmain { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gx); }
.pmain:focus { outline: none; }

.phero { position: relative; display: flow-root; padding: clamp(28px, 6vh, 72px) 0 clamp(40px, 8vh, 96px); }
.phero-in { position: relative; z-index: 1; max-width: 920px; }
.phero-title {
  font-weight: 400; font-size: clamp(44px, 7.2vw, 112px); line-height: .98; margin: 18px 0 28px;
  text-wrap: balance; overflow-wrap: break-word;
}
.phero-title::after { content: '.'; font-family: var(--f-serif); font-style: italic; color: var(--purple); }
.phero-lead p { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 44ch; margin: 0; text-wrap: pretty; }
.phero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.phero-actions .btn, .cta-band .btn, .pfoot-cta .btn { text-decoration: none; }

/* Hero avatarı: ana sayfadaki nöral ağın küçük kopyası (page.js → scene.js). */
/* Sağa yaslanan (float) kutu: başlık metni etrafından akar, hiçbir ekran genişliğinde üstüne binmez. */
.pavatar {
  position: relative; float: right; z-index: 0; width: clamp(110px, 28vw, 420px); aspect-ratio: 1;
  margin: 0 0 16px clamp(12px, 3vw, 48px); pointer-events: none;
}
.pavatar::before {
  content: ''; position: absolute; inset: -6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122, 77, 255, .2), rgba(122, 77, 255, .06) 62%, transparent);
}
/* Tuval kutudan taşar: imlece uzanan düğümler kenarda kesilmesin. */
.pavatar canvas {
  position: absolute; inset: -12%; width: 124%; height: 124%; display: block;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.pavatar.is-live canvas { opacity: 1; }
/* WebGL yoksa: sade CSS küre */
.pavatar-fb { display: none; }
.pavatar.is-fallback canvas { display: none; }
.pavatar.is-fallback .pavatar-fb {
  position: absolute; inset: 9%; display: block;
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(230, 0, 126, .5), transparent 42%),
    radial-gradient(circle at 20% 70%, rgba(255, 206, 38, .32), transparent 36%),
    radial-gradient(circle at 45% 40%, var(--violet), var(--purple) 55%, #1d0063 100%);
  box-shadow: 0 60px 120px -30px rgba(57, 0, 183, .5);
  animation: pavatar-morph 12s var(--ease-io) infinite alternate;
}
@keyframes pavatar-morph {
  0% { border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; transform: rotate(0); }
  100% { border-radius: 55% 45% 42% 58% / 44% 58% 42% 56%; transform: translateY(-2%) rotate(8deg); }
}

/* Sayfa yolu */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin: 0 .55em; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--purple); }
.crumbs [aria-current] { color: var(--ink); }

/* Bölümler */
.psec { padding: clamp(40px, 7vh, 80px) 0; border-top: 1px solid var(--line); }
.psec--flush { border-top: 0; padding-top: 0; }
.psec-t { font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; margin: 0 0 32px; max-width: 22ch; text-wrap: balance; }

.prose { max-width: 820px; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--purple); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); font-weight: 500; }
/* Hafif vurgu: uzun metinde göz tutunsun diye satırın alt yarısında fosforlu kalem izi */
.page mark {
  color: var(--ink); font-weight: 500; padding: 0 .1em; border-radius: 2px;
  background: linear-gradient(transparent 58%, rgba(255, 206, 38, .5) 0);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Hakkımızda: vurgu mor (diğer sayfalarda sarı kalır) */
html.about mark { background: linear-gradient(transparent 58%, rgba(122, 77, 255, .3) 0); }

/* Hizmet kartları */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc-card a {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 28px 28px 26px; border-radius: 28px;
  text-decoration: none; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.svc-card a:hover { background: var(--purple); color: #fff; transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(57, 0, 183, .7); }
/* Kart ikonu: hakkımızdaki "Neler yapıyoruz" kutusuyla aynı; mor zemine dönen kartta kutu beyaza çalar */
.svc-card .svc-ic-box { width: 56px; height: 56px; }
.svc-card .svc-ic { width: 30px; height: 30px; }
.svc-card a:hover .svc-ic-box { background: rgba(255, 255, 255, .16); color: #fff; --ic-a: var(--yellow); transform: rotate(-4deg) scale(1.05); }
.svc-name { font-size: clamp(24px, 2vw, 30px); font-weight: 400; line-height: 1.1; margin: 28px 0 12px; }
.svc-sum { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.svc-more svg, .svc-mini svg, .u-more svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.svc-card a:hover .svc-sum { color: rgba(255, 255, 255, .78); }
.svc-card a:hover .svc-more svg { transform: translateX(4px); }

/* Mini hizmet listesi */
.svc-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.svc-mini a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; font-size: clamp(19px, 1.6vw, 24px);
  transition: color .3s var(--ease);
}
.svc-mini a:hover { color: var(--purple); }
.svc-mini a:hover > svg { transform: translateX(4px); }
.svc-mini a > span:not(.svc-ic-box) { flex: 1; }
.svc-mini .svc-ic { width: 28px; height: 28px; }
.svc-mini a:hover .svc-ic-box { background: var(--purple); color: #fff; --ic-a: var(--yellow); transform: rotate(-4deg) scale(1.05); }

/* Etiket listesi */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  padding: 12px 20px; border-radius: 999px; font-size: 17px; background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
}
.tags--sm li { padding: 6px 12px; font-size: 14px; }
.tags a { text-decoration: none; }

/* SSS */
.faq { max-width: 920px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 22px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font-size: clamp(19px, 1.6vw, 23px); font-weight: 400; line-height: 1.3; }
.faq-item summary:hover h3 { color: var(--purple); }
.faq-ico {
  flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); margin-top: -2px;
  transition: background-color .3s var(--ease), transform .4s var(--ease);
}
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: #fff; transform: translate(-50%, -50%); }
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq-item[open] .faq-ico { background: var(--purple); }
.faq-item[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 58px 22px 0; }
.faq-a p { margin: 0 0 1em; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 70ch; }

/* Çağrı bandı */
.cta-band {
  margin: clamp(40px, 7vh, 80px) 0; padding: clamp(32px, 5vw, 64px); border-radius: 36px; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  background:
    radial-gradient(60% 90% at 90% 120%, rgba(230, 0, 126, .45), transparent 60%),
    radial-gradient(50% 80% at 0% -20%, rgba(122, 77, 255, .65), transparent 60%),
    var(--purple);
}
.cta-band-t { margin: 0; font-size: clamp(26px, 3vw, 44px); line-height: 1.1; max-width: 22ch; }
.cta-band em { color: var(--yellow); }
.cta-band .btn--primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta-band .btn--primary:hover { color: #fff; }

/* Referans logoları */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.logo-item figure { margin: 0; }
.logo-frame {
  display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, .9); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
/* Logolar kenar boşlukları kırpılmış PNG'ler; genişlik (satır içi yüzde) build-pages.py'de eşit görsel ağırlığa göre hesaplanır. */
.logo-frame img { display: block; height: auto; max-width: 76%; filter: grayscale(1); opacity: .86; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.logo-item:hover .logo-frame { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(57, 0, 183, .5); }
/* Üzerine gelince (dokunmatikte dokununca) logo kendi rengine döner */
.logo-item:hover img, .logo-item:active img { filter: none; opacity: 1; }
/* Logosu henüz gelmemiş marka: çerçevede adı yazar */
.logo-frame--text { padding: 12%; text-align: center; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.2; transition: color .4s var(--ease), transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.logo-item:hover .logo-frame--text { color: var(--purple); }
.logo-item figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* İsim listesi (hakkımızda) */
.name-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; font-size: clamp(22px, 2.2vw, 34px); font-weight: 300; line-height: 1.3; }
.name-list li::after { content: '/'; margin: 0 .35em; color: var(--ink-3); }
.name-list li:last-child::after { display: none; }
.name-list li:nth-child(3n+2) { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.u-more { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); text-decoration: none; font-weight: 500; }
.u-more:hover svg { transform: translateX(4px); }

.pquote { margin: 40px 0 0; padding: 0; }
.pquote p { font-family: var(--f-serif); font-style: italic; color: var(--purple); font-size: clamp(28px, 3vw, 46px); line-height: 1.12; margin: 0; max-width: 24ch; }

/* İletişim listesi (açık zemin) */
.contact-list--light { max-width: 820px; }
.contact-list--light div { border-top-color: var(--line); }
.contact-list--light dt { color: var(--ink-2); font-size: 14px; }
.contact-list--light a:hover { color: var(--purple); }
.u-note { margin: 0 0 clamp(32px, 5vh, 56px); font-size: 17px; color: var(--ink-2); }
.u-note a { color: var(--purple); }
.legal-contact { padding-top: clamp(24px, 4vh, 40px); }
.legal-contact .psec-t { font-size: clamp(21px, 1.8vw, 26px); font-weight: 500; line-height: 1.3; margin-bottom: .7em; }
.legal-contact p { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin: 0; }
.legal-name { margin: 24px 0 0; font-size: 14px; color: var(--ink-2); }

/* Yasal metinler */
.legal { padding-top: 0; border-top: 0; }
.legal h2 { font-weight: 500; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; color: var(--ink); margin: 2em 0 .7em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-weight: 500; font-size: 19px; color: var(--ink); margin: 1.6em 0 .5em; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.legal li { margin: 0 0 .5em; }

/* Vaka çalışmaları */
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-card a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.case-cover { display: block; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: var(--bg-2); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.case-card a:hover .case-cover img { transform: scale(1.04); }
.case-meta, .case-svc { font-size: 14px; color: var(--ink-2); }
.case-title { margin: 0; font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.case-card a:hover .case-title { color: var(--purple); }
.case-sum { margin: 0; color: var(--ink-2); line-height: 1.55; }

.case-facts { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 36px 0 0; }
.case-facts dt { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-size: 18px; }
.case-cover-lg { margin: 0 0 clamp(40px, 7vh, 80px); border-radius: 36px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); }
.case-cover-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-body { border-top: 0; padding-top: 0; }
.case-sec + .case-sec { margin-top: 56px; }
.case-fig { margin: 28px 0 0; border-radius: 24px; overflow: hidden; background: var(--bg-2); }
.case-fig img { display: block; width: 100%; height: auto; }
.case-ph {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 220px; padding: 24px; text-align: center;
  color: var(--purple); font-size: 16px;
  background: repeating-linear-gradient(135deg, rgba(57, 0, 183, .05) 0 14px, transparent 14px 28px), rgba(255, 255, 255, .45);
  border: 1.5px dashed rgba(57, 0, 183, .35); border-radius: inherit;
}
.tpl-note {
  margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--yellow); color: var(--ink); font-size: 15px; line-height: 1.5;
}
.tpl-note code { font-family: inherit; font-weight: 500; }

/* ───────── Alt bilgi ───────── */
.pfoot {
  margin-top: clamp(40px, 8vh, 96px); padding: clamp(48px, 8vh, 96px) var(--gx) calc(28px + env(safe-area-inset-bottom));
  color: #fff; border-radius: 40px 40px 0 0;
  background:
    radial-gradient(60% 70% at 85% 110%, rgba(230, 0, 126, .4), transparent 60%),
    radial-gradient(50% 60% at 10% -10%, rgba(122, 77, 255, .55), transparent 60%),
    var(--ink);
}
.pfoot a { text-decoration: none; }
.pfoot a:hover { color: var(--yellow); }
.pfoot-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: clamp(40px, 6vh, 72px); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pfoot-cta { align-items: center; }
.pfoot-logo { width: clamp(230px, 36vw, 540px); }
.pfoot .btn--primary { background: #fff; color: var(--ink); box-shadow: none; }
.pfoot .btn--primary:hover { color: #fff; }
.pfoot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; padding: clamp(36px, 5vh, 56px) 0; }
/* Sütun başlıkları: serif italik, büyük ve tam beyaz; altındaki Jost maddelerden tür, boy ve tonla ayrışır */
.pfoot-col .pfoot-h { margin: 0 0 18px; font-family: var(--f-serif); font-style: italic; font-size: 28px; line-height: 1.1; color: #fff; }
.pfoot-col p { margin: 0 0 8px; color: rgba(255, 255, 255, .8); line-height: 1.5; }
.pfoot-col ul { list-style: none; margin: 0; padding: 0; }
.pfoot-col li { margin: 0 0 8px; color: rgba(255, 255, 255, .8); }
.pfoot-big { font-size: clamp(22px, 2vw, 30px); }
.pfoot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: rgba(255, 255, 255, .6);
}
.pfoot-bottom p { margin: 0; }
.pfoot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pfoot-tag { font-family: var(--f-serif); font-style: italic; font-size: 17px; }

/* ───────── Duyarlı ───────── */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pnav { display: none; }
  .pfoot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --gx: 16px; }
  .ptop { gap: 12px; }
  .pcta { height: 38px; padding: 0 14px; font-size: 14px; }
  .pavatar { width: 30vw; max-width: 150px; }
  .phero-title { margin-top: 14px; max-width: 12ch; }
  .phero-actions .btn { width: 100%; justify-content: space-between; }
  .svc-grid, .svc-mini, .case-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .faq-a { padding-right: 0; }
  .prose p, .prose li { font-size: 17px; }
  .cta-band { border-radius: 28px; }
  .cta-band .btn { width: 100%; justify-content: space-between; }
  .pfoot { border-radius: 28px 28px 0 0; }
  .pfoot-cta .btn { width: 100%; justify-content: space-between; }
  .pfoot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .pavatar-fb { animation: none !important; }
}

/* ───────── Blog ─────────
   /blog/ listesi, /blog/kategori/<slug>/ ve /blog/<slug>/ yazı sayfaları (build-pages.py → tools/content/blog/).
   Aynı tipografi kuralı: monospace yok, büyük harf yok, harf aralığı normal. */
.cat-filter { list-style: none; margin: 0 0 clamp(28px, 4vh, 44px); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; text-decoration: none;
  font-size: 15px; color: var(--ink); background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.cat-filter a:hover { background: #fff; }
.cat-filter a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-filter .cat-count { margin-left: 6px; color: inherit; opacity: .6; }

.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; }
.post-cover { display: block; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--bg-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }
.post-card a:hover .post-cover img { transform: scale(1.04); }
.post-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-2); }
.post-meta li + li::before { content: '·'; margin: 0 .5em; color: var(--ink-3); }
.post-meta a { text-decoration: none; color: var(--purple); }
.post-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-card .post-meta { margin-top: 4px; }
.post-card-t { margin: 0; font-weight: 400; font-size: clamp(22px, 1.8vw, 27px); line-height: 1.15; text-wrap: balance; }
.post-card a:hover .post-card-t { color: var(--purple); }
.post-sum { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.post-grid--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Yazı sayfası: başlık, kapak, gövde ve alt bilgi tek bir ortalı sütunda (okuma genişliği) */
.post-hero .phero-in, .post-hero .post-body, .post-hero .post-foot { max-width: 820px; margin-left: auto; margin-right: auto; }
.post-hero .post-cover-lg { margin-left: auto; margin-right: auto; }
.post-hero .phero { padding-bottom: clamp(28px, 5vh, 56px); }
.post-hero .phero-title { font-size: clamp(36px, 4.6vw, 64px); max-width: none; }
.post-hero .phero-title::after { display: none; }
.post-hero .post-meta { font-size: 16px; margin-top: 4px; }
.post-cover-lg { margin: 0 0 clamp(36px, 6vh, 64px); border-radius: 36px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); max-width: 980px; }
.post-cover-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { border-top: 0; padding-top: 0; }
.post-body h2, .post-body h3, .post-body h4 { font-weight: 400; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.post-body h2 { font-size: clamp(27px, 2.6vw, 38px); margin: 2em 0 .6em; }
.post-body h3 { font-size: clamp(22px, 1.9vw, 28px); margin: 1.8em 0 .5em; }
.post-body h4 { font-size: clamp(19px, 1.5vw, 22px); font-weight: 500; margin: 1.6em 0 .5em; }
.post-body > :first-child, .post-body > :first-child > :first-child { margin-top: 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.post-body li { margin: 0 0 .5em; }
.post-body li > ul, .post-body li > ol { margin: .5em 0 0; }
.post-body u { text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--purple);
}
.post-body blockquote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.35; color: var(--ink); margin: 0 0 .6em; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote strong { font-weight: 400; color: var(--purple); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body .u-center { text-align: center; }
.post-body .post-btn { margin: 1.6em 0; }
.post-body .post-btn .btn { text-decoration: none; }
.post-fig { margin: 1.8em 0; }
.post-fig img, .post-fig video { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--bg-2); }
.post-fig--sm { max-width: 460px; }
.post-fig figcaption, .post-video figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.post-table { margin: 1.8em 0; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.post-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.post-table th, .post-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); min-width: 220px; }
.post-table th { font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, .6); }
.post-table tr:last-child td { border-bottom: 0; }

/* YouTube: tıklanana kadar yalnızca kapak görseli (YouTube'a istek gitmez); page.js tıklayınca iframe yükler */
.post-video { margin: 1.8em 0; }
.post-video-fb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--ink); }
.post-video-fb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: transform .8s var(--ease-out), opacity .4s var(--ease); }
.post-video-fb:hover img { transform: scale(1.03); opacity: 1; }
.post-video-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--purple); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6); transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.post-video-play::after { content: ''; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.post-video-fb:hover .post-video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--magenta); }
.post-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: var(--ink); }
.post-video-src { color: var(--ink-3); }

/* Yazıya gömülü küçük araçlar (hız testi, SEO skoru) */
.post-tool { margin: 1.8em 0; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); }
.post-tool label { display: block; font-size: 18px; margin: 0 0 12px; color: var(--ink); }
.post-tool-row { display: flex; gap: 10px; }
.post-tool input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px; border-radius: 999px; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
}
.post-tool input:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.post-tool .btn { height: 54px; flex: none; }
.post-tool-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }

/* Etiketler, diğer yazılar */
.post-foot { padding: clamp(28px, 4vh, 40px) 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; }
.post-foot .tags a { color: inherit; }
.post-foot .tags li:hover { background: var(--ink); color: #fff; }
.post-foot-h { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; }
.post-share a { font-size: 15px; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); }
.post-share a:hover { background: var(--ink); color: #fff; }

@media (max-width: 1100px) {
  .post-grid, .post-grid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .post-grid, .post-grid--mini { grid-template-columns: 1fr; gap: 28px; }
  .post-hero .phero-title { max-width: none; }
  .post-cover-lg { border-radius: 24px; }
  .post-tool-row { flex-direction: column; }
  .post-tool .btn { width: 100%; justify-content: center; }
  .post-table th, .post-table td { min-width: 180px; }
}
/* Döngülü videolar için durdur/oynat düğmesi (page.js ekler; WCAG 2.2.2) */
.post-fig { position: relative; }
.post-vid-btn {
  position: absolute; right: 12px; bottom: 12px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px;
  color: #fff; background: rgba(18, 13, 31, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .3s var(--ease);
}
.post-vid-btn:hover { background: var(--purple); }
.post-fig figcaption ~ .post-vid-btn, .post-fig:has(figcaption) .post-vid-btn { bottom: auto; top: 12px; }
