/*
 * Gutenberg blok stil varyantları — Kreşaçmak teması
 * Bu dosya hem editörde (block editor iframe) hem sitenin ön yüzünde yüklenir,
 * içerik editörünün seçtiği görünüm ikisinde de birebir aynı olur.
 * theme.json'daki temel blok stillerini (tablo, quote kenar çizgisi, details/akordiyon)
 * tamamlayan, isimli varyantları içerir.
 */

/* ---------- Group bloğu — "Fayda Kutusu" (post-benefits pattern) ---------- */
.is-style-fayda-kutusu {
  background: var(--wp--preset--color--paper-2, #f3eef1);
  border-radius: 16px;
  padding: 24px 26px;
}
.is-style-fayda-kutusu > :first-child {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  margin-top: 0;
}
.is-style-fayda-kutusu ul {
  margin: 0;
  padding-left: 20px;
}

/* ---------- Group bloğu — "Hata-Sonuç-Çözüm Kutusu" ---------- */
.is-style-hata-sonuc-kutusu {
  background: var(--wp--preset--color--accent-soft, #fce8f0);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 14px;
}
.is-style-hata-sonuc-kutusu p {
  margin: 0 0 8px;
}
.is-style-hata-sonuc-kutusu p:last-child {
  margin-bottom: 0;
}
.is-style-hata-sonuc-kutusu strong {
  color: var(--wp--preset--color--accent-dark, #b8005a);
}

/* ---------- Group bloğu — "CTA Bandı" (yazı içi CTA, gradient) ---------- */
.is-style-cta-bandi {
  background: var(--wp--preset--gradient--accent-gradient);
  border-radius: 18px;
  padding: 26px 28px;
  color: #fff;
}
.is-style-cta-bandi h2,
.is-style-cta-bandi h3,
.is-style-cta-bandi h4 {
  color: #fff;
  margin-top: 0;
}
.is-style-cta-bandi p {
  color: rgba(255, 255, 255, 0.85);
}
.is-style-cta-bandi .wp-block-button__link {
  background: #fff;
  color: var(--wp--preset--color--accent-dark, #b8005a);
}

/* ---------- Group bloğu — "Yazar Kutusu" (author box) ---------- */
.is-style-yazar-kutusu {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--wp--preset--color--paper-2, #f3eef1);
  border-radius: 16px;
  padding: 20px 22px;
}
.is-style-yazar-kutusu img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.is-style-yazar-kutusu h4 {
  font-family: var(--wp--preset--font-family--display);
  font-size: 14.5px;
  margin: 0 0 3px;
}
.is-style-yazar-kutusu p {
  font-size: 12.5px;
  color: var(--wp--preset--color--ink-soft, #6b616a);
  margin: 0 0 6px;
}
.is-style-yazar-kutusu a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--wp--preset--color--accent-dark, #b8005a);
}

/* ---------- Quote bloğu — "Ayraç Alıntı" (divider-quote, tam genişlik gradyan kutu) ---------- */
.is-style-ayrac-alinti.wp-block-quote {
  position: relative;
  max-width: 880px;
  margin: 64px auto;
  border-radius: 24px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 36px;
  background: var(--wp--preset--gradient--divider-gradient);
  border-left: none;
}
.is-style-ayrac-alinti.wp-block-quote p {
  color: #fff;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.45;
  margin: 0 0 14px;
  max-width: 600px;
}
.is-style-ayrac-alinti.wp-block-quote cite {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-style: normal;
  font-family: var(--wp--preset--font-family--body);
}
@media (max-width: 720px) {
  .is-style-ayrac-alinti.wp-block-quote {
    margin: 40px auto;
    padding: 32px 22px;
    min-height: auto;
    border-radius: 18px;
  }
  .is-style-ayrac-alinti.wp-block-quote p {
    font-size: 1.05rem;
  }
}

/* ---------- İçindekiler (TOC) kutusu — sticky sidebar Group varyantı ---------- */
.is-style-icindekiler-kutusu {
  position: sticky;
  top: 90px;
  background: var(--wp--preset--color--paper, #fff);
  border: 1px solid var(--wp--preset--color--paper-3, #ece5e9);
  border-radius: 16px;
  padding: 22px;
}
.is-style-icindekiler-kutusu h4 {
  font-family: var(--wp--preset--font-family--display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--ink-faint, #9c939b);
  margin: 0 0 14px;
}
.is-style-icindekiler-kutusu ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.is-style-icindekiler-kutusu li {
  counter-increment: toc;
  font-size: 13px;
}
.is-style-icindekiler-kutusu li a {
  text-decoration: none;
  color: var(--wp--preset--color--ink, #303030);
  display: flex;
  gap: 10px;
}
.is-style-icindekiler-kutusu li a::before {
  content: counter(toc);
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  color: var(--wp--preset--color--accent-dark, #b8005a);
  flex-shrink: 0;
}
