/*
Theme Name: Sírkőpark Emlék QR-kód
Theme URI: https://sirkoparkemlekqrkod.hu/
Author: Sírkőpark
Description: Reszponzív, mobilbarát WordPress sablon a Sírkőpark Emlék QR-kód weboldal számára.
Version: 6.13
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sirkopark
*/

:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --text: #202020;
  --muted: #666;
  --accent: #4d721f;
  --accent-dark: #365216;
  --border: #d8d8d2;
  --shadow: 0 12px 34px rgba(0,0,0,.08);
  --radius: 18px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(calc(100% - 32px), var(--max-width)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 7px 18px rgba(0,0,0,.05);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-brand-area {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-logo {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
}
.header-logo-link,
.header-logo .custom-logo-link {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(0,0,0,.07);
}
.header-logo img,
.header-logo .custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-heading {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1.18rem, 2.4vw, 1.8rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.site-heading:hover,
.site-heading:focus { color: var(--accent-dark); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 11px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--accent);
  background: #f3f7ef;
}
.hamburger {
  width: 25px;
  display: grid;
  gap: 5px;
}
.hamburger span {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}
body.side-menu-open .hamburger span:first-child { transform: translateY(8px) rotate(45deg); }
body.side-menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.side-menu-open .hamburger span:last-child { transform: translateY(-8px) rotate(-45deg); }

.site-content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0;
  flex: 1;
  min-width: 0;
  transition: grid-template-columns .28s ease;
}
.site-main-panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - var(--sirkopark-header-height, 92px));
}
.side-menu {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  border-left: 0 solid var(--border);
  transition: opacity .2s ease, visibility 0s linear .28s, border-width .28s ease;
}
body.side-menu-open .site-content-shell {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
}
body.side-menu-open .side-menu {
  visibility: visible;
  opacity: 1;
  border-left-width: 2px;
  transition-delay: 0s;
}
.side-menu-inner {
  position: static;
  width: min(320px, 100vw);
  padding: 10px 18px 28px;
}
.side-menu-title {
  margin: 0 8px 10px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.primary-menu {
  width: 100%;
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 7px 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: 12px;
}
.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
  background: #eef3e9;
  border-color: #dce8d1;
  color: var(--accent-dark);
}
.menu-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f7ef;
  border: 1px solid #dce8d1;
  color: var(--accent-dark);
}
.menu-item-icon svg,
.menu-item-icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.menu-item-label { min-width: 0; }
.primary-menu .sub-menu {
  display: grid;
  gap: 5px;
  margin: 5px 0 5px 20px;
  padding: 0 0 0 10px;
  list-style: none;
  border-left: 2px solid #dce8d1;
}
body.side-menu-open .hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(280px, .75fr);
  gap: 32px;
}
body.side-menu-open .hero-logo img { max-height: 520px; }

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(140deg, #f7f7f4 0%, #e8eddf 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.03; margin: 0 0 22px; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted); margin: 0 0 28px; max-width: 58ch; }
.hero-logo { background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.hero-logo img { display: block; width: 100%; max-height: 640px; object-fit: contain; border-radius: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  border: 2px solid var(--accent);
}
.button:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.button.secondary { background: transparent; color: var(--accent-dark); margin-left: 8px; }

.content-area { padding: 56px 0; flex: 1; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.card, article.post, .page-content, .sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
}
article.post + article.post { margin-top: 24px; }
.entry-title { margin-top: 0; line-height: 1.2; }
.entry-title a { color: var(--text); text-decoration: none; }
.entry-meta { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.sidebar { display: grid; gap: 20px; }
.sidebar-widget h2, .sidebar-widget h3 { margin-top: 0; }
.sidebar-widget ul { padding-left: 20px; }

.projects-archive-header,
.ai-page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}
.projects-archive-header {
  margin-bottom: 28px;
  text-align: center;
}
.projects-archive-header h1,
.ai-section-heading { margin: 0 0 12px; }
.projects-archive-header p { margin: 0 auto; color: var(--muted); max-width: 68ch; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
}
.project-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef3e9;
}
.project-card-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.project-card-title { margin: 0 0 12px; font-size: 1.3rem; line-height: 1.25; }
.project-card-title a { color: var(--text); text-decoration: none; }
.project-card-text { color: var(--muted); }
.project-card-actions { margin-top: auto; padding-top: 18px; }
.project-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.project-note-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .94rem;
}
.project-note-details { margin: 0; }
.project-note-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #fff;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.project-note-toggle::-webkit-details-marker { display: none; }
.project-note-toggle:hover,
.project-note-toggle:focus-visible { background: #eef3e9; }
.project-note-details[open] .project-note-toggle { margin-bottom: 16px; }
.project-note-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce8d1;
  border-radius: 14px;
  background: #f8faf6;
}
.project-note-form p { margin: 0; }
.project-note-form label { display: block; margin-bottom: 5px; font-weight: 700; }
.project-note-form .button { width: fit-content; }
.project-note-form .button:disabled { opacity: .68; cursor: wait; }
.project-note-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.project-note-status {
  margin: 0 0 20px;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.project-note-status.is-success { color: #24470f; background: #e5f3db; border: 1px solid #b8d9a2; }
.project-note-status.is-error { color: #7a241e; background: #fff0ee; border: 1px solid #e8bbb7; }
.general-comment-box {
  margin: 28px 0;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
}
.general-comment-box h2 { margin: 0 0 8px; }
.general-comment-box > p { margin: 0 0 15px; color: var(--muted); }

.ai-page-shell { padding: 54px 0; }
.ai-page-header { margin-bottom: 22px; }
.ai-stage {
  padding: clamp(12px, 2.4vw, 28px);
  background: linear-gradient(145deg, #f8faf6, #e8eddf);
  border: 1px solid #d5e1c9;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.ai-stage .temeto-szichip-ai {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
}
.ai-plugin-placeholder {
  padding: 28px;
  border: 2px dashed #b9cba7;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  color: var(--muted);
  text-align: center;
}
.ai-information {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
}
.ai-information > *:first-child { margin-top: 0; }
.ai-information > *:last-child { margin-bottom: 0; }

.site-footer { background: #252525; color: #e8e8e8; padding: 34px 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer a { color: #fff; }

.wp-block-image img, .post-thumbnail img { border-radius: 14px; }
input, textarea, select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #bbb;
  border-radius: 10px;
  font: inherit;
}
button, input[type="submit"] { font: inherit; }

.topbar {
  background: #181a1b;
  color: #fff;
  font-size: 0.92rem;
}
.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar-text { line-height: 1.4; }
.topbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.topbar-button:hover,
.topbar-button:focus { background: #fff; color: #181a1b; }

.footer-branding { display: grid; gap: 5px; }
.footer-description { opacity: .75; font-size: .92rem; }
.footer-navigation { margin-left: auto; }
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-menu li { margin: 0; padding: 0; }
.footer-menu a { color: inherit; text-decoration: none; opacity: .88; }
.footer-menu a:hover,
.footer-menu a:focus,
.footer-menu .current-menu-item > a {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-logo { max-width: 640px; margin-inline: auto; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.side-menu-open .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 76px; gap: 12px; }
  .header-brand-area { gap: 10px; }
  .header-logo { width: 58px; height: 58px; flex-basis: 58px; }
  .site-heading { font-size: clamp(.92rem, 4.3vw, 1.2rem); }
  .menu-toggle { padding: 10px; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-content-shell,
  body.side-menu-open .site-content-shell { grid-template-columns: minmax(0, 1fr); }
  .side-menu {
    position: fixed;
    z-index: 45;
    top: var(--sirkopark-header-height, 76px);
    bottom: 0;
    right: 0;
    left: auto;
    width: min(88vw, 320px);
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    border-right: 0;
    border-left: 2px solid var(--border);
    box-shadow: -14px 0 30px rgba(0,0,0,.12);
    overflow-y: auto;
    transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
  }
  body.side-menu-open .side-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .side-menu-inner { position: static; width: 100%; padding-top: 10px; }
  .project-note-form .button,
  .project-note-toggle { width: 100%; }
  .hero { padding: 54px 0 38px; }
  .button { width: 100%; }
  .button.secondary { margin: 10px 0 0; }
  .sidebar { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-navigation { width: 100%; margin-left: 0; }
  .footer-menu { justify-content: flex-start; gap: 10px 16px; }
}

@media (max-width: 600px) {
  .topbar-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .topbar-button { width: 100%; }
}


/* V6.12 – projektenként elkülönített, nyilvános hozzászólások */
.project-public-comments {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.project-public-comments-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #c9d8ba;
  border-radius: 999px;
  background: #f8faf6;
  color: var(--accent-dark);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.project-public-comments-toggle::-webkit-details-marker { display: none; }
.project-public-comments[open] .project-public-comments-toggle { margin-bottom: 14px; }
.project-public-comments-body { display: grid; gap: 12px; }
.project-public-comments-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-public-comment {
  padding: 13px 14px;
  border: 1px solid #dce8d1;
  border-radius: 13px;
  background: #f8faf6;
}
.project-public-comment-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 7px;
}
.project-public-comment-head time { color: var(--muted); font-size: .86rem; }
.project-public-comment-text { color: var(--text); overflow-wrap: anywhere; }
.project-public-comment-text p { margin: 0 0 8px; }
.project-public-comment-text p:last-child { margin-bottom: 0; }
.project-public-comments-empty { margin: 0; color: var(--muted); }
