/* =============================================================
   a24 téma – teljes CSS
   ============================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.a24-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.a24-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 74px;
}
.a24-logo {
  background: var(--brand);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.01em;
  padding: 9px 15px 11px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.a24-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 6px;
}
.a24-nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.a24-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s;
}
.a24-nav a:hover { color: var(--brand); }
.a24-nav a:hover::after { transform: scaleX(1); }
.a24-bar-spacer { flex: 1; }

/* Keresőmező (WP searchform) */
.a24-bar .search-form,
.a24-bar form[role="search"] {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--faint);
  font-size: 13.5px;
  min-width: 190px;
  transition: border-color .15s, box-shadow .15s;
}
.a24-bar .search-form:hover,
.a24-bar form[role="search"]:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.a24-bar .search-form input,
.a24-bar form[role="search"] input[type="search"] {
  border: 0;
  background: none;
  outline: 0;
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
}
.a24-bar .search-form button,
.a24-bar .search-form input[type="submit"],
.a24-bar form[role="search"] button,
.a24-bar form[role="search"] input[type="submit"] { display: none; }

/* ---------- Footer ---------- */
.a24-site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--faint);
  font-size: 12.5px;
}
.a24-site-footer .a24-page-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.a24-footer-logo {
  background: var(--brand);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  padding: 3px 9px 4px;
  border-radius: 2px;
}
.a24-footer-links { margin-left: auto; display: flex; gap: 12px; }
.a24-footer-links a:hover { color: var(--ink); }

/* ---------- Responsive header ---------- */
@media (max-width: 1180px) { .a24-nav { display: none; } }
@media (max-width: 560px) {
  .a24-bar { gap: 14px; height: 64px; padding: 0 18px; }
  .a24-logo { font-size: 25px; padding: 7px 12px 9px; }
  .a24-bar .search-form,
  .a24-bar form[role="search"] { display: none; }
}

:root {
  --bg:            #FAFAFB;
  --surface:       #FFFFFF;
  --ink:           #141620;
  --muted:         #5F6675;
  --faint:         #9AA1AF;
  --line:          #ECEDF1;
  --line-strong:   #E0E1E8;

  --brand:         #D32A24;
  --brand-dark:    #B01E19;
  --brand-soft:    #FCEBEA;

  --shadow:        0 1px 2px rgba(20,23,34,.04);
  --shadow-hover:  0 14px 34px -14px rgba(20,23,34,.20);
  --maxw:          1400px;
  --gap:           22px;
  --radius:        12px;

  --display:  'Space Grotesk', system-ui, sans-serif;
  --body:     'Inter', system-ui, sans-serif;
  --mono:     'Space Mono', monospace;
  --serif:    'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Oldal konténer ---------- */
.a24-page-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Feed fejléc ---------- */
.a24-feed-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 32px 0 22px;
}
.a24-feed-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.a24-feed-head .a24-live {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: .04em;
}
.a24-feed-head .a24-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: a24blink 1.6s steps(1) infinite;
  flex: none;
}
.a24-feed-head .a24-rule {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
@keyframes a24blink { 50% { opacity: .25; } }

/* ---------- Oldal-elrendezés ---------- */
.a24-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  padding-bottom: 80px;
}

/* ---------- Masonry feed ---------- */
.a24-feed {
  position: relative; /* Masonry.js megköveteli */
}

/* Méretező elem – Masonry columnWidth referencia */
.a24-sizer,
.a24-card {
  width: calc(33.333% - 15px); /* 3 oszlop, 22px gap */
}

/* ---------- Kártya ---------- */
.a24-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, border-color .18s;
}
.a24-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.a24-card > a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.a24-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #EEEFF3;
  overflow: hidden;
}
.a24-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.a24-card:hover .a24-thumb img {
  transform: scale(1.04);
}

.a24-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.a24-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  line-height: 1;
}
.a24-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: opacity .15s;
}
.a24-tag:hover { opacity: .65; }

.a24-headline {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  font-size: 17px;
  transition: color .15s;
}
.a24-card:hover .a24-headline { color: var(--brand); }

.a24-dek {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.a24-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--faint);
}
.a24-time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.a24-cc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- Rail (jobb sáv) ---------- */
.a24-rail {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.a24-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.a24-box-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px 12px;
  border-bottom: 2px solid var(--brand);
}
.a24-box-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.a24-box-head .a24-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: .05em;
}
.a24-box-head .a24-lv {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: a24blink 1.6s steps(1) infinite;
  flex: none;
}

/* Friss lista */
.a24-friss {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.a24-friss li {
  padding: 11px 18px;
  display: flex;
  gap: 13px;
  border-top: 1px solid var(--line);
}
.a24-friss li:first-child { border-top: 0; }
.a24-friss .ft {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  font-weight: 700;
  flex: none;
  padding-top: 1px;
}
.a24-friss .fx {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  transition: color .15s;
  text-decoration: none;
}
.a24-friss li:hover .fx { color: var(--brand); }

/* Legolvasottabb */
.a24-rank {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.a24-rank li {
  display: flex;
  gap: 12px;
  padding: 11px 18px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.a24-rank li:first-child { border-top: 0; }
.a24-rank .n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--faint);
  flex: none;
  width: 18px;
  text-align: center;
}
.a24-rank li:first-child .n { color: var(--brand); }
.a24-rank .rt {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #EEEFF3;
}
.a24-rank .rx {
  font-size: 13px;
  line-height: 1.32;
  color: var(--ink);
  transition: color .15s;
  text-decoration: none;
}
.a24-rank li:hover .rx { color: var(--brand); }

/* Ezt kommentelték */
.a24-comm {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.a24-comm li {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
}
.a24-comm li:first-child { border-top: 0; }
.a24-comm .ct {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #EEEFF3;
}
.a24-comm .cwrap { min-width: 0; }
.a24-comm .cx {
  font-size: 13px;
  line-height: 1.34;
  color: var(--ink);
  display: block;
  transition: color .15s;
  text-decoration: none;
}
.a24-comm li:hover .cx { color: var(--brand); }
.a24-comm .cn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 2px 7px;
  border-radius: 5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .a24-page {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .a24-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 22px;
  }
  .a24-rail .a24-box {
    flex: 1 1 300px;
  }
}

@media (max-width: 820px) {
  .a24-sizer,
  .a24-card {
    width: calc(50% - 11px);
  }
}

@media (max-width: 560px) {
  .a24-page-wrap {
    padding: 0 18px;
  }
  .a24-sizer,
  .a24-card {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =============================================================
   Cikkoldal (single.php)
   ============================================================= */

.a24-single-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 28px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.a24-article { min-width: 0; }

.a24-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}
.a24-kicker a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.a24-kicker a:hover { opacity: .7; }

.a24-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 16px;
  color: var(--ink);
}

.a24-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 22px;
  font-weight: 450;
}

.a24-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 0;
}
.a24-who { display: flex; align-items: center; gap: 9px; }
.a24-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  flex: none;
}
.a24-nm { font-family: var(--display); font-weight: 600; font-size: 13px; }
.a24-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.a24-mi { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.a24-hero { margin: 24px 0 8px; }
.a24-hero img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #EEEFF3;
}
.a24-cap {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 9px;
  line-height: 1.4;
}

.a24-body {
  font-size: 17.5px;
  line-height: 1.72;
  color: #24262E;
  margin-top: 24px;
}
.a24-body p { margin: 0 0 22px; }
.a24-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 36px 0 14px;
}
.a24-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}
.a24-body ul { margin: 0 0 22px; padding-left: 22px; }
.a24-body li { margin: 0 0 8px; }
.a24-body blockquote {
  margin: 32px 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--brand);
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.a24-body figure { margin: 28px 0; }
.a24-body figure img { width: 100%; border-radius: 12px; }
.a24-body figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 8px;
}

.a24-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 30px;
}
.a24-article-tags a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px;
  transition: all .15s;
  text-decoration: none;
}
.a24-article-tags a:hover { border-color: var(--brand); color: var(--brand); }

/* Előző / Következő */
.a24-pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.a24-pn-item {
  display: flex;
  gap: 13px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  transition: all .15s;
  text-decoration: none;
  color: var(--ink);
}
.a24-pn-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgba(20,23,34,.18);
}
.a24-pn-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #EEEFF3;
}
.a24-pn-next { text-align: right; flex-direction: row-reverse; }
.a24-pn-dir { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.a24-pn-title { font-family: var(--display); font-weight: 600; font-size: 13.5px; line-height: 1.25; margin-top: 3px; }

/* Sidebar */
.a24-sidebar {
  align-self: start;
  min-width: 0;
}
.a24-sidebar .a24-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: auto;
}

/* Responsive cikkoldal */
@media (max-width: 980px) {
  .a24-single-shell {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 28px 28px 60px;
  }
  .a24-sidebar .a24-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .a24-sidebar .a24-rail .a24-box { flex: 1 1 300px; }
}
@media (max-width: 560px) {
  .a24-single-shell { padding: 20px 18px 50px; }
  .a24-title { font-size: 26px; }
  .a24-lead { font-size: 16px; }
  .a24-pn { grid-template-columns: 1fr; }
}

/* =============================================================
   404 oldal
   ============================================================= */

.a24-404-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 70px 28px 40px;
  text-align: center;
}

.e404-code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .18em;
  color: var(--brand);
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #FADAD8;
  border-radius: 999px;
  background: var(--brand-soft);
  margin-bottom: 20px;
}

.e404-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.e404-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 52ch;
}

.e404-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 22px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.e404-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.e404-search svg { flex: none; color: var(--faint); }
.e404-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink);
  min-width: 0;
}
.e404-search button {
  flex: none;
  border: 0;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  transition: background .15s;
}
.e404-search button:hover { background: var(--brand-dark); }

.e404-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.e404-cats a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
  transition: all .15s;
  text-decoration: none;
}
.e404-cats a:hover { border-color: var(--brand); color: var(--brand); }

/* Ajánló rács */
.a24-suggest {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 28px 70px;
}
.a24-suggest-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
  color: var(--ink);
}
.a24-suggest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* a masonry szélességet semlegesítjük a sima gridhez */
.a24-suggest-grid .a24-card {
  width: auto;
  margin-bottom: 0;
}

@media (max-width: 820px) { .a24-suggest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .a24-404-wrap { padding: 50px 18px 30px; }
  .a24-suggest-grid { grid-template-columns: 1fr; }
  .a24-suggest { padding: 16px 18px 50px; }
}
