/* ============================================================
   Helga – Lélekmegálló / Blog
   Megosztott stílus a fő oldallal: sötét, arany akcentusú,
   Cormorant Garamond + Jost. Ez a fájl a /blog/ oldalakat
   szolgálja ki; a főoldal (index.html) saját, beágyazott
   stílust használ, ugyanezekkel a színekkel/betűkkel.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #0e0b14;
  --deep:   #1a1528;
  --mid:    #2c2540;
  --gold:   #c9a96e;
  --gold2:  #e8cfa0;
  --cream:  #f5efe6;
  --mist:   #b8afc8;
  --white:  #fdf9f4;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Jost', sans-serif;
  --ease:   cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── STARS BACKGROUND ─── */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(201,169,110,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(100,80,160,.1) 0%, transparent 55%);
}
.stars::before {
  content:'';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.3) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 200px 200px, 350px 350px, 500px 500px;
  background-position: 0 0, 60px 80px, 130px 40px;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5vw;
  background: rgba(14,11,20,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,169,110,.15);
  transition: background .3s var(--ease);
}
.nav-logo-img { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img img { height: 94px; width: auto; mix-blend-mode: lighten; filter: brightness(1.05); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist); transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold2); }
.nav-cta {
  background: transparent; border: 1px solid var(--gold); color: var(--gold2);
  font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem 1.5rem; cursor: pointer; transition: background .25s, color .25s;
  display: inline-block;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--gold2); transition: .3s; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; top: 60px;
    background: rgba(14,11,20,.97);
    align-items: center; justify-content: center;
    gap: 2rem; padding: 2rem;
  }
  .nav-mobile-open .nav-links a { font-size: 1.1rem; }
  .nav-mobile-open .nav-cta { display: block; position: fixed; bottom: 3rem; left: 50%; transform: translateX(-50%); }
}

/* ─── PAGE HEADER (blog index / post hero) ─── */
.page-header {
  position: relative; z-index: 1;
  padding: 10rem 5vw 4rem;
  text-align: center;
}
.section-label {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: .8rem;
}
.page-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white);
  max-width: 900px;
  margin: 0 auto .8rem;
}
.page-lead {
  font-family: var(--serif); font-size: 1.1rem; font-style: italic;
  color: var(--mist); max-width: 560px; margin: 0 auto;
}

.divider { display: flex; align-items: center; gap: 1.2rem; margin: 2rem auto 0; max-width: 220px; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.divider-star { color: var(--gold); font-size: 1rem; }

/* ─── SECTION / WRAP ─── */
section { position: relative; z-index: 1; padding: 2rem 5vw 7rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner--narrow { max-width: 740px; }

/* ─── BLOG INDEX GRID ─── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  margin-top: 1rem;
}
.post-card {
  background: var(--deep);
  display: flex; flex-direction: column;
  transition: background .3s, transform .3s;
}
.post-card:hover { background: var(--mid); transform: translateY(-4px); }
.post-card-img {
  aspect-ratio: 16/10; overflow: hidden; background: var(--mid);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%) contrast(1.05); }
.post-card-body { padding: 1.8rem 1.8rem 2.2rem; display: flex; flex-direction: column; flex: 1; }
.post-card-date {
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .8rem;
}
.post-card h2, .post-card h3 { font-size: 1.35rem; color: var(--white); margin-bottom: .7rem; }
.post-card p { font-size: .88rem; color: var(--mist); line-height: 1.75; flex: 1; }
.post-card-more {
  margin-top: 1.4rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold2);
}
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  border: 1px solid rgba(201,169,110,.3); color: var(--gold2);
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .75rem;
}

.empty-state { color: var(--mist); font-style: italic; font-family: var(--serif); margin-top: 2rem; }

/* ─── SINGLE POST ─── */
.post-hero-img {
  max-width: 1100px; margin: 0 auto 3rem;
  aspect-ratio: 21/9; overflow: hidden;
  border: 1px solid rgba(201,169,110,.2);
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.post-article {
  max-width: 720px; margin: 0 auto;
  font-size: 1.05rem;
  color: var(--cream);
}
.post-article h2 { font-size: 1.8rem; color: var(--white); margin: 2.4rem 0 1rem; }
.post-article h3 { font-size: 1.4rem; color: var(--gold2); margin: 2rem 0 .9rem; }
.post-article p { margin-bottom: 1.3rem; color: var(--cream); }
.post-article p, .post-article li { line-height: 1.85; }
.post-article a { color: var(--gold2); border-bottom: 1px solid rgba(201,169,110,.4); transition: color .25s; }
.post-article a:hover { color: var(--white); }
.post-article strong { color: var(--white); font-weight: 500; }
.post-article em { font-style: italic; color: var(--mist); }
.post-article ul, .post-article ol { margin: 0 0 1.3rem 1.4rem; color: var(--cream); }
.post-article blockquote {
  border-left: 2px solid var(--gold);
  margin: 2rem 0; padding: .3rem 0 .3rem 1.6rem;
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--mist);
}
.post-article img { margin: 2rem 0; border: 1px solid rgba(201,169,110,.15); }
.post-article hr { border: none; border-top: 1px solid rgba(201,169,110,.2); margin: 2.5rem 0; }
.post-article code { font-family: monospace; background: rgba(201,169,110,.1); padding: .1rem .4rem; }

.post-meta {
  max-width: 720px; margin: 0 auto 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.post-meta-date { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.post-cta {
  max-width: 720px; margin: 3.5rem auto 0;
  border-top: 1px solid rgba(201,169,110,.15);
  padding-top: 2.2rem;
  text-align: center;
}
.post-cta p { font-family: var(--serif); font-style: italic; color: var(--mist); margin-bottom: 1.4rem; font-size: 1.05rem; }
.btn-primary {
  background: var(--gold); color: var(--ink);
  padding: .85rem 2.4rem; font-family: var(--sans); font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  border: none; cursor: pointer; display: inline-block;
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; border: 1px solid rgba(201,169,110,.4); color: var(--mist);
  padding: .85rem 2.4rem; font-family: var(--sans); font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer; display: inline-block;
  transition: border-color .25s, color .25s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold2); }

.post-nav {
  max-width: 720px; margin: 2.5rem auto 0;
}
.back-link { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.back-link:hover { color: var(--gold2); }

/* ─── PAGINATION ─── */
.pagination {
  display: flex; justify-content: center; gap: 1rem; margin-top: 3.5rem;
}
.pagination a, .pagination span {
  border: 1px solid rgba(201,169,110,.3); color: var(--mist);
  padding: .6rem 1.4rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold2); }

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(201,169,110,.1);
  padding: 4rem 5vw 2.5rem;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--gold2); margin-bottom: .6rem; }
.footer-brand p { font-size: .85rem; color: var(--mist); max-width: 300px; line-height: 1.7; }
.footer-col h4 { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col a, .footer-col p { display: block; font-size: .85rem; color: var(--mist); margin-bottom: .55rem; transition: color .25s; }
.footer-col a:hover { color: var(--gold2); }
.social-link {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(201,169,110,.25); padding: .4rem .9rem;
  color: var(--mist); transition: border-color .25s, color .25s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold2); }
.footer-bottom {
  max-width: 1100px; margin: 3rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .75rem; color: rgba(184,175,200,.45); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
}
