/* A PHP-s blogindex (public/blog/index.php) stílusai. */
.blog-index { display: block; }
.blog-wrap { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.blog-hero { padding: 56px 0 24px; }
.blog-eyebrow { margin: 0 0 12px; color: #f69405; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; }
.blog-lang { display: flex; width: fit-content; margin: 0 0 14px; border: 1px solid #d5ddd8; border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 700; }
.blog-lang a, .blog-lang span { padding: 4px 14px; text-decoration: none; }
.blog-lang a { color: #536f60; }
.blog-lang a:hover { color: #17221d; background: #f0f4f1; }
.blog-lang .is-active { color: #17221d; background: #fdecd0; }
.blog-hero h1 { margin: 0 0 14px; color: #17221d; font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.2; }
.blog-lead { max-width: 720px; margin: 0; color: #4a5650; font-size: 18px; line-height: 1.7; }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 16px; padding-bottom: 80px; }
.blog-results-head { margin-bottom: 16px; }
.blog-count { margin: 0; color: #59685f; font-size: 15px; }

/* Aktív szűrők */
.blog-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.blog-active-label { color: #59685f; font-size: 14px; font-weight: 600; }
.blog-active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #eaf3ec; color: #17221d; font-size: 14px; line-height: 1.4; text-decoration: none; }
.blog-active-chip span { color: #59685f; }
.blog-active-chip b { color: #536f60; font-size: 16px; line-height: 1; }
.blog-active-chip:hover { background: #d3e8d8; }
.blog-active-clear { color: #f69405; font-size: 14px; font-weight: 600; margin-left: 4px; }

/* Kártyák */
.blog-list { display: grid; gap: 24px; }
.blog-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid #e3e8e5; border-radius: 16px; box-shadow: 0 10px 28px rgba(23, 34, 29, .06); transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(23, 34, 29, .12); }
.blog-card:not(:has(.blog-card-media)) { grid-template-columns: 1fr; }
.blog-card-media { display: block; min-height: 100%; background: #eef3ef; }
.blog-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; min-width: 0; }
.blog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: #59685f; font-size: 13px; line-height: 1.5; }
.blog-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #eff6df; color: #4c721c; font-size: 12px; font-weight: 700; text-decoration: none; }
.blog-chip:hover { background: #e0eec2; }
.blog-author-link { color: #17221d; font-weight: 600; text-decoration: none; }
.blog-author-link:hover, .blog-card-title a:hover { color: var(--global-color-3, #89bd33); }
.blog-card-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; }
.blog-card-title a { color: #17221d; text-decoration: none; }
.blog-card-excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: #4a5650; font-size: 15px; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.blog-card-tags a { color: #536f60; font-size: 13px; text-decoration: none; }
.blog-card-tags a:hover { color: #17221d; text-decoration: underline; }
.blog-card-more { margin-top: auto; color: #f69405; font-size: 15px; font-weight: 700; text-decoration: none; }
.blog-card-more:hover { text-decoration: underline; }
.blog-card-translation { margin-left: 14px; color: #536f60; font-size: 13px; text-decoration: none; }
.blog-card-translation:hover { color: #17221d; text-decoration: underline; }

/* Lapozás */
.blog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.blog-pager-link { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; box-sizing: border-box; border: 1px solid #d2dad5; border-radius: 10px; background: #fff; color: #17221d; font-size: 15px; font-weight: 600; text-decoration: none; }
a.blog-pager-link:hover { background: #eaf3ec; border-color: #b9d0be; }
.blog-pager-link.is-current { background: #17221d; border-color: #17221d; color: #fff; }
.blog-pager-gap { color: #59685f; }

.blog-empty { padding: 40px 28px; border: 1px dashed #c3cfc7; border-radius: 16px; background: #fff; text-align: center; }
.blog-empty h2 { margin: 0 0 8px; font-size: 24px; }
.blog-empty p { margin: 0 0 12px; color: #4a5650; }

/* Oldalsáv */
.blog-sidebar { display: grid; gap: 20px; }
@media (min-width: 981px) { .blog-sidebar { position: sticky; top: 96px; } }
.blog-widget { padding: 22px; background: #fff; border: 1px solid #e3e8e5; border-radius: 16px; }
.blog-widget h2 { margin: 0 0 14px; color: #17221d; font-size: 16px; font-weight: 700; line-height: 1.4; }
.blog-facet-list, .blog-months, .blog-tag-cloud { margin: 0; padding: 0; list-style: none; }
.blog-facet-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #17221d; font-size: 15px; line-height: 1.4; text-decoration: none; }
.blog-facet-list a span { flex: 1; min-width: 0; }
.blog-facet-list a:hover { background: #eaf3ec; }
.blog-facet-list a.is-active, .blog-tag-cloud a.is-active { background: #17221d; color: #fff; }
.blog-facet-list em, .blog-tag-cloud em { color: #6b7a71; font-size: 13px; font-style: normal; }
.blog-facet-list a.is-active em, .blog-tag-cloud a.is-active em { color: #cfe0d4; }
.blog-authors i { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #eff6df; color: #4c721c; font-size: 12px; font-style: normal; font-weight: 700; }
.blog-authors a.is-active i { background: #8cbb2e; color: #17221d; }
.blog-months { margin: 2px 0 6px 14px; padding-left: 8px; border-left: 2px solid #e3e8e5; }
.blog-months a { padding: 6px 10px; font-size: 14px; }
.blog-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag-cloud a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #d2dad5; border-radius: 999px; color: #17221d; font-size: 14px; line-height: 1.4; text-decoration: none; }
.blog-tag-cloud a:hover { background: #eaf3ec; border-color: #b9d0be; }

.blog-index a:focus-visible { outline: 2px solid #17221d; outline-offset: 2px; }

@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; gap: 32px; }
  .blog-sidebar { order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .blog-hero { padding: 36px 0 12px; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-media { aspect-ratio: 16 / 9; min-height: 0; }
  .blog-sidebar { grid-template-columns: 1fr; }
}

/* Bejegyzés-oldalak: az oldalsáv a tartalom mellett (GeneratePress .site-content flex-elrendezése) */
body.single-post .site-content { align-items: flex-start; gap: 40px; }
body.single-post .site-content > .content-area { flex: 1 1 0; min-width: 0; width: auto; }
body.single-post .site-content > .blog-sidebar { flex: 0 0 300px; width: 300px; margin-top: 40px; }
.blog-facet-list a.is-current, .blog-tag-cloud a.is-current { background: #eff6df; }
.blog-facet-list a.is-current em, .blog-tag-cloud a.is-current em { color: #4c721c; }
@media (max-width: 980px) {
  body.single-post .site-content { flex-direction: column; gap: 24px; }
  body.single-post .site-content > .content-area { width: 100%; }
  body.single-post .site-content > .blog-sidebar { flex-basis: auto; width: 100%; margin-top: 0; padding: 0 20px 40px; box-sizing: border-box; }
}

/* Címkefelhő: a ritkább címkék lenyithatók */
.blog-tag-more { margin-top: 12px; }
.blog-tag-more summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; color: #4c721c; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.blog-tag-more summary::-webkit-details-marker { display: none; }
.blog-tag-more summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #eff6df; font-weight: 700; line-height: 1; }
.blog-tag-more[open] summary::before { content: "–"; }
.blog-tag-more summary:focus-visible { outline: 2px solid #17221d; outline-offset: 2px; }
.blog-tag-more .blog-tag-cloud { margin-top: 10px; }
