/* ───────────────────────────────────────────────────────────────────────────
 * Animdock — Guide & Blog content pages
 * index.html tasarım dili: style.css token'larını kullanır (Sora/Hanken,
 * hairline border, .learn-card). generate_content.js tarafından üretilen
 * sayfalar bu dosyayı yükler.
 * ─────────────────────────────────────────────────────────────────────────── */

/* ── Article ───────────────────────────────────────────────────────────── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 28px 96px;
}
.breadcrumb {
  margin-bottom: 28px;
}
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--muted);
}
.breadcrumb li {
  display: inline-flex; align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: '›'; margin-left: 8px; opacity: 0.5;
}
.breadcrumb a {
  color: var(--muted); text-decoration: none; transition: color .15s ease;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current="page"] {
  color: var(--text);
}
.article-kicker {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(30px, 5vw, 50px);
  margin: 0 0 18px;
}
.article-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hair);
}

/* prose */
.article-body { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.article-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 36px;
  padding: 14px 26px;
  font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 700;
  color: var(--bg); background: var(--text);
  border-radius: 40px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-cta:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
[data-theme="dark"] .article-cta:hover { box-shadow: 0 8px 24px rgba(255,255,255,0.08); }
.article-body > * + * { margin-top: 20px; }
.article-body h2 {
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -0.02em;
  font-size: 26px; margin-top: 44px; line-height: 1.15;
}
.article-body h3 {
  font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.02em;
  font-size: 20px; margin-top: 32px;
}
.article-body h4 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; margin-top: 24px; }
.article-body p { color: var(--text); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-hover); }
.article-body strong { font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-top: 8px; }
.article-body li::marker { color: var(--muted); }
.article-body img { max-width: 100%; height: auto; display: block; border: 1px solid var(--card-border); }
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em; background: var(--chip); padding: 2px 6px; border: 1px solid var(--card-border);
}
.article-body pre {
  background: var(--card); border: 1px solid var(--card-border);
  padding: 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.article-body pre code { background: none; border: none; padding: 0; font-size: inherit; }
.article-body blockquote {
  margin: 0; padding: 6px 18px; border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic;
}
.article-body hr { border: none; border-top: 1px solid var(--hair); margin: 36px 0; }

@media (max-width: 600px) {
  .article { padding: 100px 18px 64px; }
  .article-body { font-size: 16px; }
}

/* ── Listing (/guide, /blog) ───────────────────────────────────────────── */
.listing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 28px 96px;
}
.listing-head { margin-bottom: 36px; }
.listing-head h1 {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.05;
}
.listing-head h1 .accent-sq { width: 12px; height: 12px; }
.listing-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* .learn-card index.html'de inline tanımlı; üretilen sayfalar için burada tekrar. */
.learn-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--card-border); padding: 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.learn-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.learn-card .lc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.learn-card .lc-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border: 1px solid var(--card-border); color: var(--muted);
}
.learn-card h4 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.learn-card p { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.learn-empty { color: var(--muted); font-size: 13px; border: 1px dashed var(--card-border); padding: 22px; text-align: center; }

@media (max-width: 600px) {
  .listing { padding: 100px 18px 64px; }
  .listing-grid { grid-template-columns: 1fr; }
}
