/* Blog — Vitrin'in renk ve yazı düzeniyle yazı listesi + yazı okuma görünümü (style.css üstüne) */
.nav__links a[aria-current] { color: var(--text); background: var(--surface); }

/* ---------- liste ---------- */
.bl { max-width: var(--max); margin: 0 auto; padding: clamp(120px, 14vw, 180px) var(--pad) 0; }
.bl .sec__title { font-size: clamp(40px, 6vw, 84px); }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pc {
  position: relative; display: flex; flex-direction: column; gap: 12px; text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.6vw, 34px);
  transition: border-color .25s, transform .3s var(--ease);
}
.pc::before { content: ''; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 80%) var(--my, 0%), color-mix(in srgb, var(--accent) 11%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pc:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pc:hover::before { opacity: 1; }
.pc__date { position: relative; font: 500 12.5px/1 var(--mono); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.pc__date::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.pc__title { position: relative; margin: 0; font: 700 clamp(22px, 2.1vw, 30px)/1.12 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.pc__desc { position: relative; margin: 0; color: var(--muted); font-size: 16px; }
.pc__go { position: relative; margin-top: auto; padding-top: 8px; font: 600 14.5px/1 var(--body); display: inline-flex; gap: 8px; align-items: center; }
.pc__go span { display: inline-block; transition: transform .25s var(--ease); }
.pc:hover .pc__go span { transform: translateX(4px); }
.pc--lead { grid-column: 1 / -1; padding: clamp(26px, 4vw, 52px); }
.pc--lead .pc__title { font-size: clamp(28px, 3.8vw, 54px); letter-spacing: -.03em; max-width: 22ch; }
.pc--lead .pc__desc { font-size: clamp(16px, 1.3vw, 19px); max-width: 62ch; }
.bl__state { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.bl__state a { color: var(--text); font-weight: 600; }
.posts .sk { height: 190px; border-radius: 22px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; border: 1px solid var(--line); animation: sk 1.4s linear infinite; }
.posts .sk:first-child { grid-column: 1 / -1; height: 240px; }
@keyframes sk { to { background-position: -300% 0; } }

/* ---------- yazı ---------- */
.post { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 12vw, 150px) var(--pad) 0; }
.post[hidden], .bl[hidden] { display: none; }
.post__back { display: inline-flex; font: 500 14px/1 var(--mono); color: var(--muted); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 14px; transition: color .2s, border-color .2s; }
.post__back:hover { color: var(--text); border-color: var(--text); }
.post__meta { margin: 26px 0 0; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 14px; }
.post__layout.no-side { grid-template-columns: minmax(0, 760px); }
.post__body { min-width: 0; font-size: 18.5px; line-height: 1.72; }
.post__body h1 { margin: 0 0 22px; font: 700 clamp(34px, 4.6vw, 64px)/1.04 var(--display); letter-spacing: -.03em; font-variation-settings: 'opsz' 96, 'wdth' 94; text-wrap: balance; }
.post__body .lead { font: 500 clamp(19px, 1.7vw, 23px)/1.5 var(--display); letter-spacing: -.01em; color: var(--text); margin: 0 0 30px; }
.post__body h2 { margin: 54px 0 14px; font: 700 clamp(26px, 2.6vw, 36px)/1.12 var(--display); letter-spacing: -.02em; scroll-margin-top: 100px; }
.post__body h3 { margin: 34px 0 10px; font: 700 21px/1.25 var(--display); letter-spacing: -.01em; scroll-margin-top: 100px; }
.post__body p { margin: 0 0 18px; color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.post__body ul, .post__body ol { margin: 0 0 20px; padding-left: 1.3em; display: grid; gap: 8px; color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.post__body li::marker { color: var(--accent); }
.post__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.post__body a:hover { color: var(--accent); }
[data-theme='day'] .post__body a:hover { color: var(--accent); }
.post__body strong { color: var(--text); font-weight: 600; }
.post__body blockquote { margin: 0 0 20px; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.post__body img { border-radius: 16px; border: 1px solid var(--line); margin: 0 0 24px; }
.post__body figure { margin: 0; }
.post__body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; display: block; overflow-x: auto; }
.post__body th, .post__body td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post__body th { font: 600 13px/1.3 var(--mono); color: var(--muted); }
.post__body code { font: 500 .9em var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
/* öne çıkanlar */
.post__body .key-takeaways { list-style: none; padding: 22px 24px; margin: 0 0 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; gap: 12px; }
.post__body .key-takeaways li { position: relative; padding-left: 28px; font-size: 16.5px; line-height: 1.55; color: var(--text); }
.post__body .key-takeaways li::before { content: ''; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
/* sık sorulanlar */
.post__body .faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 12px; }
.post__body .faq-item h3 { margin: 0 0 8px; font-size: 19px; }
.post__body .faq-item p { margin: 0; font-size: 16.5px; }
/* içindekiler: geniş ekranda yanda sabit */
.post__side { position: sticky; top: 96px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.toc .toc-title, .toc h2 { margin: 0 0 12px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; font-size: 14.5px; line-height: 1.35; color: var(--muted); transition: color .2s, background .2s; }
.toc a::before { content: counter(t, decimal-leading-zero); font: 500 11.5px/1.6 var(--mono); color: var(--muted); opacity: .7; }
.toc a:hover, .toc a.is-on { color: var(--text); background: var(--surface-2); }
/* ilgili yazılar */
.post__more { margin-top: clamp(50px, 7vw, 90px); }
.post__more h2 { margin: 0 0 18px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.post__more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.post__more a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font: 600 17px/1.3 var(--display); transition: border-color .2s, transform .25s var(--ease); }
.post__more a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.post__cta { margin-top: clamp(40px, 6vw, 70px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 3vw, 40px); }
.post__cta p { margin: 0; font: 700 clamp(22px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.post.is-loading .post__body { min-height: 50vh; }

@media (max-width: 1080px) {
  .post__layout { grid-template-columns: minmax(0, 1fr); }
  .post__side { position: static; order: -1; }
}
@media (max-width: 760px) {
  .posts { grid-template-columns: 1fr; }
  .post__body { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) { .posts .sk { animation: none; } }
