/**
 * Zsengezöld – single.php oldalstílusok
 *
 * Korábban a sablon <style> blokkjában volt, ami minden
 * oldalletöltéssel újra letöltődött. Külön fájlként a böngésző
 * egyszer tölti le és utána gyorsítótárazza.
 */

/* ===================== BLOGCIKK ===================== */
.zs-post {
  --gold:      #7A5C33;
  --gold-soft: #B89362;
  --light: #E6DDD1;
  --green:      #556049;
  --green-soft: #78836A;
  --brown: #5A473B;
  --cream: #F9F7F2;
  --placeholder: #BFB2A4;
  background: var(--cream);
}

.zs-post .zs-container { max-width: 1280px; margin: 0 auto; }

.zs-post__article {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 20px 40px;
}

.zs-post__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 46px; font-weight: 600; line-height: 1.2;
  color: var(--green); text-align: center; margin: 0 0 28px;
}

.zs-post__meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.zs-post__meta-left { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.zs-post__date,
.zs-post__cats {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px; color: var(--brown);
}
.zs-post__cats a { color: var(--brown); text-decoration: none; }
.zs-post__cats a:hover { color: var(--gold); }

.zs-post__share { display: flex; gap: 8px; }
.zs-share {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 5px; color: #fff;
  transition: opacity .2s ease;
}
.zs-share:hover { opacity: .85; }
.zs-share--fb { background: #1877F2; }
.zs-share--li { background: #0A66C2; }

.zs-post__thumb { margin: 0 0 32px; }
.zs-post__thumb-img,
.zs-post__thumb--empty {
  display: block; width: 100%;
  aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: 8px; background: var(--placeholder);
}

/* --- cikk tartalom --- */
.zs-post__content {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px; line-height: 1.75; color: var(--brown);
}
.zs-post__content > * { margin: 0 0 20px; }
.zs-post__content > *:last-child { margin-bottom: 0; }

.zs-post__content h2,
.zs-post__content h3,
.zs-post__content h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--green); font-weight: 600; line-height: 1.3;
  margin: 40px 0 16px;
}
.zs-post__content h2 { font-size: 30px; }
.zs-post__content h3 { font-size: 22px; }
.zs-post__content h4 { font-size: 18px; }

.zs-post__content a { color: var(--gold); font-weight: 600; }
.zs-post__content a:hover { color: var(--green); }
.zs-post__content strong { font-weight: 700; }

.zs-post__content ul,
.zs-post__content ol { padding-left: 22px; }
.zs-post__content li { margin-bottom: 8px; }

.zs-post__content blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 22px; margin-left: 0; font-style: italic;
}

/* Gutenberg háttérszínes bekezdés (a tervben a zöld kiemelő doboz) */
.zs-post__content p.has-background { padding: 22px 26px; border-radius: 6px; }

.zs-post__content img { max-width: 100%; height: auto; border-radius: 8px; }
.zs-post__content pre {
  background: var(--light); padding: 16px; border-radius: 6px;
  overflow-x: auto; font-size: 14px;
}

/* --- hasonló cikkek --- */
.zs-post__related { padding: 60px 90px 90px; }
.zs-post__related h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 34px; font-weight: 600; color: var(--green);
  margin: 0 0 32px;
}
.zs-post .zs-grid { display: grid; gap: 32px; }
.zs-post .zs-grid--3 { grid-template-columns: repeat(3, 1fr); }

.zs-post .zs-card { display: flex; flex-direction: column; }
.zs-post .zs-card__media {
  position: relative; display: block; line-height: 0;
  border-radius: 10px; overflow: hidden; margin-bottom: 14px;
}
.zs-post .zs-card__img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 3 / 2; object-fit: cover;
}
.zs-post .zs-card__img--empty { background: var(--placeholder); }
.zs-post .zs-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 10px;
}
.zs-post .zs-card__title a { color: var(--brown); text-decoration: none; }
.zs-post .zs-card__title a:hover { color: var(--gold); }
.zs-post .zs-card__excerpt {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px; line-height: 1.6; color: var(--brown);
  margin: 0 0 14px; flex: 1;
}
.zs-post .zs-card__more {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px; font-weight: 600; color: var(--gold);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.zs-post .zs-card__more:hover { color: var(--green); }

/* ===================== TABLET ===================== */
@media (max-width: 1199px) {
  .zs-post__article { padding: 50px 40px 32px; }
  .zs-post__title { font-size: 36px; }
  .zs-post__related { padding: 40px 60px 70px; }
  .zs-post__related h2 { font-size: 28px; }
  .zs-post .zs-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== MOBIL ===================== */
@media (max-width: 767px) {
  .zs-post__article { padding: 32px 20px 24px; }
  .zs-post__title { font-size: 26px; }
  .zs-post__meta { flex-direction: column; align-items: flex-start; }
  .zs-post__content h2 { font-size: 24px; }
  .zs-post__content h3 { font-size: 20px; }
  .zs-post__related { padding: 32px 20px 48px; }
  .zs-post__related h2 { font-size: 24px; }
  .zs-post .zs-grid--3 { grid-template-columns: 1fr; }
}
