/* Invoran V13 — yazı ve yazı listesi. Yalnız tekil yazı ve blog listelerinde yüklenir (inc/blog.php); ön sayfada yok.
   site.css / pages.css değişkenlerini kullanır. */

/* --- Yazı başlığı --- */
.invoran-page--post .page-hero--compact h1 {
  max-width: 24ch;
  font-size: clamp(2.3rem, 3.9vw, 3.75rem);
  hyphens: manual;
}
.invoran-page--post .page-hero--compact .eyebrow { margin-bottom: 14px; }

/* Başlık ile kapak arasında boşluk kalmasın (iki bölüm dolgusu üst üste biniyordu). */
.invoran-page--post .page-hero.page-hero--compact { padding-bottom: 28px; }
.invoran-page--post .page-hero--compact + .page-block { padding-top: 0; }

/* --- Okuma sütunu: başlıkla aynı sol hizada --- */
.invoran-page--post .post-layout { max-width: none; }
.invoran-page--post .post-layout > * { max-width: 820px; }
.invoran-page--post .post-layout > .post-content,
.invoran-page--post .post-layout > .post-author,
.invoran-page--post .post-layout > .post-navigation { max-width: 72ch; }
.invoran-page--post .article-cover {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  margin-bottom: 44px;
  border: 1px solid var(--line-blue);
  background: var(--ice);
}
.post-content { overflow-wrap: break-word; }
.post-content > * + * { margin-top: 0; }
.post-content > p:first-child:has(> em:only-child) {
  margin-bottom: 1.4em;
  font-size: var(--fs-2);
  color: var(--muted-strong);
}
.post-content > p:first-child > em:only-child { font-style: normal; }
.post-layout .post-content h2 {
  margin: 2em 0 .65em;
  font-weight: 700;
  color: var(--ink);
  scroll-margin-top: 110px;
}
.post-layout .post-content h3 {
  margin: 1.6em 0 .45em;
  line-height: 1.38;
  color: var(--ink);
  scroll-margin-top: 110px;
}
.post-content ul,
.post-content ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.post-content li { margin: 0 0 .45em; }
.post-content li::marker { color: var(--blue); }
.post-content strong { color: var(--ink); }

/* --- Figür ve altyazı --- */
.post-content figure.invoran-figure { margin: 2em 0 2.2em; }
.post-layout .post-content figure.invoran-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--ice);
}
.post-content figcaption {
  margin-top: .75em;
  padding-left: 14px;
  border-left: 2px solid var(--blue);
  font-size: .94rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --- Tablo: mobilde yatay kaydırma kabı (inc/blog.php ekler) --- */
.post-table {
  margin: 1.6em 0 1.8em;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-sm);
  /* Kaydırılabilir olduğunu gösteren kenar gölgesi (yalnız taşma varken görünür). */
  background:
    linear-gradient(to right, var(--white) 30%, rgb(255 255 255 / 0)) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--white) 30%, rgb(255 255 255 / 0)) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(16 33 67 / .16), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(16 33 67 / .16), transparent) right / 12px 100% no-repeat scroll;
  background-color: var(--white);
  -webkit-overflow-scrolling: touch;
}
.post-table:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.post-content table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.55;
}
.post-content th,
.post-content td {
  min-width: 8.5em;
  padding: .75em .9em;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
}
.post-content thead th {
  background: var(--ice);
  border-bottom-color: var(--line-blue);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}
.post-content tbody tr:last-child td { border-bottom: 0; }
.post-content tbody td:first-child { font-weight: 600; color: var(--ink); }

/* --- Kod bloğu (istem şablonları): kaydırma yerine satır kaydırma --- */
.post-content pre {
  margin: 1.4em 0 1.6em;
  padding: 1.1em 1.25em;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line-blue);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
  line-height: 1.62;
  color: var(--ink);
  tab-size: 2;
}
.post-content pre code { padding: 0; background: none; font-size: inherit; }
.post-content :not(pre) > code {
  padding: .1em .35em;
  border-radius: 5px;
  background: var(--pale);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

/* --- Alıntı (örnek istem ve çıktılar) --- */
.post-content blockquote {
  margin: 1.4em 0 1.6em;
  padding: 1em 1.25em;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper);
}
.post-content blockquote > :last-child { margin-bottom: 0; }
.post-content blockquote p { font-size: 1rem; }

/* --- Hukuk notu --- */
.post-content aside.editorial-legal-note {
  margin: 1.2em 0 1.8em;
  padding: .8em 1em;
  border: 1px dashed var(--line-blue);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.post-content aside.editorial-legal-note p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted-strong);
}

/* --- SSS bölümü (inc/blog.php kabuğu) --- */
.post-faq {
  margin: 2.6em 0 2.4em;
  padding: 4px 26px 22px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--ice);
}
.post-layout .post-faq h2 { margin-top: 1em; }
.post-layout .post-faq h3 {
  margin: 1.3em 0 .4em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line-blue);
  font-size: 1.1rem;
}
.post-layout .post-faq h2 + h3 { padding-top: 0; border-top: 0; }
.post-faq aside.editorial-legal-note { background: var(--white); margin-bottom: 0; }

/* --- Kaynaklar --- */
.post-sources { margin-top: 2.6em; }
.post-sources hr {
  margin: 0 0 1.4em;
  border: 0;
  border-top: 1px solid var(--line);
}
.post-sources p,
.post-sources li {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--muted);
}
.post-sources a { overflow-wrap: anywhere; }
.post-content hr { border: 0; border-top: 1px solid var(--line); }

/* --- Yazar ve yazılar arası gezinme --- */
.invoran-page--post .post-navigation .nav-links { flex-wrap: wrap; }
.invoran-page--post .post-navigation a { color: var(--blue); text-decoration: none; font-weight: 600; }
.invoran-page--post .post-navigation a:hover { text-decoration: underline; }
.invoran-page--post .post-navigation .nav-next { margin-left: auto; text-align: right; }

/* --- Blog listesi: kartlar --- */
.post-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { padding: 0; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.post-card:hover { border-color: var(--blue); box-shadow: var(--shadow-1); }
.post-card > :not(.post-card__media) { margin-inline: 24px; }
.post-card > .eyebrow { margin-top: 20px; }
.post-card > .text-link { margin-bottom: 24px; }
.post-card__media { display: block; }
.post-card__media img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line-blue);
  background: var(--ice);
}
.post-card h2 { font-size: 1.18rem; line-height: 1.32; }

@media (max-width: 860px) {
  .invoran-page--post .page-hero--compact h1 { font-size: clamp(2rem, 8.6vw, 2.9rem); }
  .invoran-page--post .article-cover { margin-bottom: 32px; }
  .post-faq { padding: 2px 18px 18px; }
  .post-content th,
  .post-content td { padding: .65em .75em; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card { transition: none; }
}

/* V13.0.1 — kategori etiketi, hizmet sayfalarında ilgili yazılar */
.eyebrow .post-category { color: inherit; text-decoration: none; }
.eyebrow .post-category:hover,
.eyebrow .post-category:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-card h3 { margin: 0 0 10px; font-size: 1.18rem; line-height: 1.32; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.page-related .page-block__intro { margin-bottom: 28px; }
