/*
  Blog sayfaları — sitenin kendi stil dosyalarının ÜSTÜNE gelir. Renk ve yazı tipi sitenin değişkenlerinden:
  önce ürün sitelerinin adları (--text, --border, --accent…), yoksa Alterra'nınkiler (--ink, --line, --brand…),
  o da yoksa sade bir varsayılan. Böylece her blog kendi sitesinin renginde görünür.
*/
.hb {
  --hb-text: var(--text, var(--ink, #1b1e26));
  --hb-mute: var(--text-mute, var(--ink-soft, #555c69));
  --hb-line: var(--border, var(--line, #e2e4e9));
  --hb-accent: var(--accent, var(--brand, #2a56c6));
  --hb-soft: var(--bg-soft, var(--bg-tint, #f5f6f8));
  --hb-radius: var(--radius-md, var(--radius, 12px));
  color: var(--hb-text);
  padding: clamp(2rem, 5vw, 4rem) 1rem clamp(3rem, 7vw, 5.5rem);
}

.hb__wrap {
  max-width: 46rem;
  margin-inline: auto;
}

.hb__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--hb-mute);
  margin-bottom: 1.5rem;
}
.hb__crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.hb__crumbs a:hover { color: var(--hb-accent); }

.hb__head { margin-bottom: 2rem; }
.hb__head h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.hb__lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--hb-mute);
  margin: 0 0 0.75rem;
}
.hb__meta {
  font-size: 0.875rem;
  color: var(--hb-mute);
  margin: 0;
}

.hb__empty {
  padding: 2rem;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-soft);
  color: var(--hb-mute);
  text-align: center;
}

/* Yazı listesi: tek sütun, her kart aynı ölçüde (sarılan liste ızgara). */
.hb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.hb__card a {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hb__card a:hover { border-color: var(--hb-accent); transform: translateY(-2px); }
.hb__card a:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hb__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--hb-radius) - 4px);
  margin-bottom: 0.5rem;
}
.hb__title { font-size: 1.25rem; line-height: 1.35; margin: 0; }
.hb__excerpt { color: var(--hb-mute); line-height: 1.55; }

.hb__hero {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--hb-radius);
  margin-bottom: 2rem;
}

/* Yazı gövdesi: panelin zengin metin düzenleyicisinden gelen HTML. */
.hb__body { font-size: 1.0625rem; line-height: 1.75; }
/* Gövde metni tek ton: sitenin paragraf rengi (ürün sitelerinde --text-soft) listeye ve tabloya da uygulanır. */
.hb__body p, .hb__body li, .hb__body td { color: var(--text-soft, var(--hb-text)); }
.hb__body > * + * { margin-top: 1.1em; }
.hb__body h2 { font-size: 1.5rem; line-height: 1.3; margin-top: 2em; }
.hb__body h3 { font-size: 1.25rem; line-height: 1.35; margin-top: 1.6em; }
.hb__body a { color: var(--hb-accent); text-decoration: underline; text-underline-offset: 0.2em; }
.hb__body img { max-width: 100%; height: auto; border-radius: calc(var(--hb-radius) - 4px); }
/* Sitelerin genel stili listeleri sıfırlıyor (menü listeleri için); yazı içindeki liste madde işaretini geri alır. */
.hb__body ul, .hb__body ol { padding-left: 1.4em; margin-left: 0; }
.hb__body ul { list-style: disc; }
.hb__body ol { list-style: decimal; }
.hb__body li { display: list-item; font-weight: 400; }
.hb__body li + li { margin-top: 0.35em; }
.hb__body blockquote {
  margin-inline: 0;
  padding: 1rem 1.25rem;
  background: var(--hb-soft);
  border-radius: var(--hb-radius);
  color: var(--hb-mute);
}
.hb__body pre, .hb__body code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.9em; }
.hb__body pre {
  padding: 1rem 1.25rem;
  background: var(--hb-soft);
  border-radius: var(--hb-radius);
  overflow-x: auto;
}
.hb__body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.hb__body th, .hb__body td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--hb-line); text-align: left; }

.hb__back { margin-top: 3rem; }
.hb__back a { color: var(--hb-accent); font-weight: 600; text-decoration: none; }
.hb__back a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .hb__card a { transition: none; }
  .hb__card a:hover { transform: none; }
}
