/* Aura Pro Blog — /blog/ sayfalarının ortak görünümü.
   Sayfaları api/blog/_render.php üretir; bu dosya statik siteyle (deploy-web.sh) yayınlanır.
   Değiştirince _render.php'deki BLOG_CSS_VERSION artırılır (önbellek). Renkler ve üst/alt
   bölüm ana sayfayla (web/index.html) aynıdır. */

:root {
  --plum: #3E2731;
  --plum-deep: #2E1C24;
  --plum-line: #5A3F4A;
  --gold: #C08552;
  --gold-soft: #D9A878;
  --gold-text: #8F5A33;
  --paper: #FAF6F1;
  --paper-deep: #F1E8DF;
  --slip: #FFFDF9;
  --ink: #2B1B22;
  --ink-soft: #6B5560;
  --rule: #E3D6CA;
  --on-plum: #F6EEF0;
  --on-plum-soft: #CDB8BF;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --measure: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slip); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); }

/* ── Üst bölüm (ana sayfayla aynı) ─────────────────────── */
.top { background: var(--plum); color: var(--on-plum); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 500 1.45rem/1 var(--serif); letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav > a { text-decoration: none; color: var(--on-plum-soft); }
.nav > a:hover, .nav > a.is-here { color: var(--on-plum); }
.login { position: relative; }
.login summary { list-style: none; cursor: pointer; color: var(--on-plum-soft); }
.login summary::-webkit-details-marker { display: none; }
.login summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.login[open] summary { color: var(--on-plum); }
.login ul { position: absolute; right: 0; top: calc(100% + 12px); margin: 0; padding: 6px; list-style: none; background: var(--slip); color: var(--ink); border-radius: 10px; min-width: 210px; box-shadow: 0 18px 40px -16px rgba(30, 10, 20, 0.55); z-index: 5; }
.login li a { display: block; padding: 10px 12px; border-radius: 7px; text-decoration: none; }
.login li a:hover { background: var(--paper-deep); }
.login li small { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold-soft); color: var(--plum-deep); }
.btn-gold:hover { background: #E4B98E; }
.btn-line { border-color: var(--plum-line); color: var(--on-plum); background: transparent; }
.btn-line:hover { border-color: var(--gold-soft); }
.btn-ink { background: var(--plum); color: var(--on-plum); }
.btn-ink:hover { background: var(--plum-deep); }
.bar .btn { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

/* ── Ortak parçalar ───────────────────────────────────────── */
.kicker { margin: 0 0 10px; font: 600 0.8rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 22px; padding: 0; list-style: none; font-size: 0.88rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { display: inline-block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.meta, .byline { color: var(--ink-soft); font-size: 0.92rem; }

/* ── Blog ana sayfası, kategori, yazar ──────────────────── */
.blog-hero { background: var(--paper-deep); padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.blog-hero h1 { margin: 0 0 12px; font: 400 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.blog-hero .intro { margin: 0; max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem; }
.blog-hero .meta { margin: 12px 0 0; }
.cats ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.cats a { display: inline-block; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--slip); text-decoration: none; font-size: 0.92rem; }
.cats a:hover { border-color: var(--gold); }
.cats a[aria-current] { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.list { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.list-title { margin: 0 0 22px; font: 400 1.9rem/1.15 var(--serif); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; background: var(--slip); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--paper-deep); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card h2, .card h3 { margin: 0 0 8px; font: 500 1.35rem/1.2 var(--serif); text-wrap: balance; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.97rem; }
.card .meta { margin: auto 0 0; font-size: 0.86rem; }
.card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; }
.card.feature .card-img { aspect-ratio: auto; min-height: 100%; }
.card.feature .card-body { padding: clamp(22px, 3vw, 40px); justify-content: center; }
.card.feature h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.card.feature p { font-size: 1.05rem; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-soft); background: var(--slip); border: 1px dashed var(--rule); border-radius: 14px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 40px; font-size: 0.95rem; }
.pager a { text-decoration: none; color: var(--gold-text); font-weight: 600; }
.pager a[rel="next"] { justify-self: end; }
.pager .count { color: var(--ink-soft); }

/* ── Yazı ─────────────────────────────────────────────────── */
.post-head { padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 3vw, 36px); }
.post-head h1 { margin: 0 0 18px; font: 400 clamp(2.1rem, 5vw, 3.5rem)/1.06 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
.post-head .lead p { margin: 0 0 12px; font-size: clamp(1.1rem, 1.6vw, 1.22rem); line-height: 1.6; color: #4A3540; }
.post-head .byline { margin: 18px 0 0; }
.post-head .byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-head .byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cover { margin-top: 0; margin-bottom: clamp(28px, 4vw, 48px); }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--paper-deep); }

.post-grid { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
.toc { position: sticky; top: 24px; font-size: 0.92rem; }
.toc-title { margin: 0 0 10px; font: 600 0.8rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--ink); border-left-color: var(--gold); }

.prose { max-width: var(--measure); }
.prose section { scroll-margin-top: 20px; }
.prose h2 { margin: 2.2em 0 0.6em; font: 400 clamp(1.65rem, 2.6vw, 2.1rem)/1.15 var(--serif); letter-spacing: -0.005em; text-wrap: balance; }
.prose section:first-child h2 { margin-top: 0; }
.prose h3 { margin: 1.6em 0 0.4em; font: 600 1.12rem/1.4 var(--sans); }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--gold); }
.prose ol li::marker { font-weight: 600; }
.prose strong { font-weight: 600; color: #22141B; }
.tip { margin: 1.4em 0; padding: 16px 20px; background: #F6EBDD; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; }
.tip p { margin: 0; }
.tip b { display: block; margin-bottom: 2px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.table { margin: 1.4em 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 12px; background: var(--slip); }
.table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.table th, .table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table thead th { background: var(--plum); color: var(--on-plum); font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 600; }

.faq { margin-top: 2.4em; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.4rem/1 var(--serif); color: var(--gold); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #4A3540; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); font-size: 0.85rem; }

.salon-note { margin: 2.2em 0; padding: 22px 24px; background: var(--slip); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 14px 30px -24px rgba(62, 39, 49, 0.5); }
.salon-note p { margin: 0 0 12px; }
.salon-note .kicker { margin-bottom: 8px; }
.salon-note .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 0; }
.salon-note .actions a:not(.btn) { color: var(--gold-text); font-weight: 600; text-decoration: none; }
.salon-note .actions a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.salon-note .btn { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 18px; margin: 2.6em 0 0; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--plum); color: var(--gold-soft); font: 500 1.2rem/1 var(--serif); letter-spacing: 0.04em; }
.author-box p { margin: 0 0 6px; font-size: 0.97rem; color: var(--ink-soft); }
.author-box .name { margin: 0; font-weight: 600; color: var(--ink); }
.author-box .name a { text-decoration: none; }
.author-box .name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.author-box .role { font-size: 0.86rem; }

.cta { margin: 2.4em 0 0; padding: clamp(24px, 4vw, 36px); background: var(--plum); color: var(--on-plum); border-radius: 18px; }
.cta-title { margin: 0 0 10px; font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--serif); color: var(--on-plum); }
.cta p { margin: 0 0 16px; color: var(--on-plum-soft); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; }

.related { padding: clamp(48px, 7vw, 88px) 0; background: var(--paper-deep); border-top: 1px solid var(--rule); }
.related h2 { margin: 0 0 24px; font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--serif); }

/* ── Alt bölüm (ana sayfayla aynı) ─────────────────────── */
footer { background: var(--plum-deep); color: var(--on-plum-soft); padding: 56px 0 40px; font-size: 0.95rem; }
.foot { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--on-plum); font: 600 0.95rem/1.4 var(--sans); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot a { text-decoration: none; }
.foot h4 a { color: inherit; }
.foot a:hover { color: var(--on-plum); text-decoration: underline; text-underline-offset: 3px; }
.foot-brand img { width: 120px; margin-bottom: 14px; }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid #3F2A33; font-size: 0.85rem; }
.legal p { margin: 0 0 8px; max-width: 80ch; }
.legal a { text-decoration: none; white-space: nowrap; }
.legal a:hover { color: var(--on-plum); text-decoration: underline; text-underline-offset: 3px; }
.legal .fine { opacity: 0.8; }

/* ── Küçük ekranlar ─────────────────────────────────────── */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 18px 20px; background: var(--slip); border: 1px solid var(--rule); border-radius: 12px; }
  .toc ol { border-left: 0; }
  .toc li a { padding: 5px 0; border-left: 0; margin: 0; }
  .prose { max-width: none; }
}
@media (max-width: 900px) {
  .nav > a:not(.is-here) { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card.feature { grid-template-columns: 1fr; }
  .card.feature .card-img { aspect-ratio: 16 / 9; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bar { gap: 14px; }
  .bar .btn { display: none; }
  .brand span { font-size: 1.3rem; }
  .cards { grid-template-columns: 1fr; }
  .cover { width: 100%; }
  .cover img { border-radius: 0; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .count { display: none; }
  .foot { grid-template-columns: 1fr; }
}
@media print {
  .top, footer, .toc, .cta, .salon-note, .related { display: none; }
  body { background: #fff; }
}
