/* ON404-120 Faz 2: Demleme Rehberi merkez sayfası ve rehber sayfaları. Yalnızca bu sayfalarda yüklenir
   (header-last-css); app.css / style.css'e dokunulmadığı için critical-home.css etkilenmez.
   Rehber sayfasının gövdesi (içerik, paylaşım, ürün kartları) blog.css'teki ortak bileşenleri kullanır. */

.guide-page {
  /* Rehber sayfası blog.css'teki ortak bileşenleri (içerik, paylaşım, ürün kartı) kullanır; değişkenleri de aynı */
  --blog-ink: #34352a;
  --blog-muted: #6c6c6c;
  --blog-accent: #915947;
  --blog-cream: #f8f1ec;
  --blog-line: #e4d9cf;
  --blog-placeholder: #ece2d9;
  --guide-ink: #3c2f2f;
  --guide-dark: #34352a;
  --guide-muted: #6c6c6c;
  --guide-line: #e4d9cf;
  --guide-cream: #f8f1ec;
  background-color: var(--guide-cream);
  color: var(--guide-ink);
  padding: 40px 0 96px;
}

.guide-page .site-breadcrumb {
  margin-bottom: 20px;
}

/* ---------- Merkez sayfa ---------- */

/* Başlık sitenin diğer liste sayfalarıyla (Blog, Nitelikli Kahve) aynı: Yrsa, ince, sola dayalı */
.guide-header {
  margin-bottom: 32px;
}

.guide-title {
  font-family: "Yrsa", serif;
  font-weight: 300;
  font-size: 45px;
  line-height: 1.05;
  color: var(--guide-dark);
  margin: 0;
}

.guide-hero__images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.guide-hero__images img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--guide-muted);
  max-width: 760px;
  margin: 14px 0 0;
}

.guide-intro.page-content {
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

/* ---------- Yöntem kutucukları ---------- */

.guide-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-tiles > li {
  flex: 0 0 calc((100% - 4 * 16px) / 5);
  max-width: 200px;
  min-width: 0;
}

.guide-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-height: 276px;
  padding: 24px 12px 20px;
  border: 1px solid var(--guide-ink);
  color: var(--guide-ink);
  text-decoration: none;
  transition: background-color 0.15s;
}

.guide-tile:hover,
.guide-tile:focus-visible {
  background-color: rgba(52, 53, 42, 0.06);
  color: var(--guide-ink);
  text-decoration: none;
}

.guide-tile__media {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.guide-tile__media img {
  display: block;
  max-width: 100%;
  max-height: 182px;
  width: auto;
  height: auto;
}

.guide-tile__media picture {
  display: contents;
}

.guide-tile__media .guide-tile__cover {
  width: 100%;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.guide-tile__letter {
  font-family: "Yrsa", serif;
  font-size: 72px;
  line-height: 1;
  color: rgba(52, 53, 42, 0.35);
}

.guide-tile__name {
  margin-top: 16px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

.guide-empty {
  text-align: center;
  color: var(--guide-muted);
  padding: 32px 0;
}

/* ---------- Rehber sayfası ---------- */

.guide-article__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.guide-article__icon {
  flex: 0 0 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 140px;
  padding: 12px;
  border: 1px solid var(--guide-ink);
}

.guide-article__icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.guide-article__heading {
  min-width: 0;
}

.guide-other {
  border-top: 1px solid var(--guide-line);
  margin-top: 64px;
  padding-top: 40px;
}

.guide-other .guide-tile {
  min-height: 220px;
}

.guide-other .guide-tile__media img {
  max-height: 130px;
}

@media (max-width: 991.98px) {
  .guide-page {
    padding-top: 72px;
  }

  .guide-tiles > li {
    flex-basis: calc((100% - 2 * 16px) / 3);
  }
}

@media (max-width: 767.98px) {
  .guide-page {
    padding-bottom: 64px;
  }

  .guide-title {
    font-size: 36px;
  }

  .guide-hero__images {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .guide-hero__images > :not(:first-child) {
    display: none;
  }

  .guide-tiles {
    gap: 12px;
  }

  .guide-tiles > li {
    flex-basis: calc((100% - 12px) / 2);
    max-width: none;
  }

  .guide-tile {
    min-height: 220px;
  }

  .guide-tile__media img {
    max-height: 140px;
  }

  .guide-article__header {
    align-items: flex-start;
    gap: 16px;
  }

  .guide-article__heading .blog-article__title {
    font-size: 30px;
  }

  .guide-article__icon {
    flex-basis: 72px;
    width: 72px;
    height: 92px;
    padding: 8px;
  }
}
