/*
  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; }
}

/* Etiketler ve ilgili yazılar (14.11.2026, ecol blogunun özellikleri) */
.hb__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.75rem 0 0; }
.hb__tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--hb-line, currentColor);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--hb-text);
  text-decoration: none;
}
.hb__tags a:hover { border-color: var(--hb-accent); color: var(--hb-accent); }
.hb__related { margin-top: 3rem; }
.hb__related h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.hb__body pre { overflow-x: auto; }

/* Yazı + sağ sütun (04.12.2026; kullanıcı: "diğer bloglarının döndüğü bir alan … arama bölümü de olsun").
   Geniş ekranda yazı solda okunur genişlikte, sağda arama + son yazılar; dar ekranda sütun yazının altına iner. */
.hb__wrap--wide { max-width: 74rem; }
.hb__layout { display: grid; gap: 3rem; }
.hb__article { min-width: 0; }
@media (min-width: 1000px) {
  .hb__layout { grid-template-columns: minmax(0, 1fr) 18.5rem; gap: 3.5rem; align-items: start; }
}
.hb__aside {
  display: grid;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
}

.hb-search { display: grid; gap: 0.6rem; }
.hb-search__label, .hb__side-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; margin: 0; color: var(--hb-text); }
.hb-search__box { position: relative; }
.hb-search__box input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 2.9rem 0.6rem 0.9rem;
  border: 1px solid var(--hb-line);
  border-radius: calc(var(--hb-radius) - 4px);
  background: transparent;
  color: var(--hb-text);
  font: inherit;
  font-size: 0.9375rem;
}
.hb-search__box input::placeholder { color: var(--hb-mute); }
.hb-search__box input:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 1px; border-color: var(--hb-accent); }
.hb-search__box input::-webkit-search-cancel-button { display: none; }
.hb-search__box button {
  position: absolute;
  inset: 0 0 0 auto;
  width: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--hb-mute);
  cursor: pointer;
}
.hb-search__box button:hover { color: var(--hb-accent); }
.hb-search__box button:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: -4px; border-radius: 6px; }

.hb__side { display: grid; gap: 1.1rem; }
.hb__mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.hb__mini a {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.hb__mini-cover {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--hb-soft);
}
.hb__mini-text { display: grid; gap: 0.35rem; }
.hb__mini-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--hb-text); }
.hb__mini time { font-size: 0.8125rem; color: var(--hb-mute); }
.hb__mini a:hover .hb__mini-title { color: var(--hb-accent); }
.hb__mini a:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 4px; border-radius: 8px; }

/* Blog listesinin üstündeki arama ve sonuç notu */
.hb__search-top { max-width: 28rem; margin-bottom: 1.25rem; }
.hb__search-top .hb-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hb__status { margin: 0 0 1rem; color: var(--hb-mute); font-size: 0.9375rem; }
.hb__status:empty { display: none; }
.hb__card[hidden], .hb__back[hidden] { display: none; }
