/* ═══════════════════════════════════════════
   ST-Management.hu — Journal / Blog layer
   Uses tokens from shared/base.css + style.css
   ═══════════════════════════════════════════ */

/* ─── JOURNAL HERO (listing header) ─── */
.journal-hero {
  position: relative;
  padding: 11rem 4rem 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(200,168,112,.07), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--border);
}
.journal-hero .section-tag {
  justify-content: center;
  margin-bottom: 1.5rem;
}
.journal-hero .section-tag::before { display: none; }
.journal-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp .9s .3s forwards;
}
.journal-hero h1 em { font-style: italic; color: var(--gold); }
.journal-hero .journal-lead {
  max-width: 640px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.8;
  color: var(--cream-dim);
  opacity: 0; animation: fadeUp .9s .5s forwards;
}

/* ─── FILTER CHIPS ─── */
.blog-filter {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: .7rem;
  padding: 3rem 4rem 0;
  max-width: 1200px; margin: 0 auto;
}
.filter-chip {
  font-family: 'Jost', sans-serif;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-dim);
  padding: .65rem 1.4rem;
  border: 1px solid rgba(200,168,112,.3);
  background: transparent;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  display: inline-block;
}
.filter-chip:hover { border-color: var(--gold); color: var(--gold); }
.filter-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ─── FEATURED POST ─── */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1200px; margin: 5rem auto 0;
  padding: 0 4rem;
}
.featured-post .featured-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
}
.featured-post .featured-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s ease;
}
.featured-post:hover .featured-cover img { transform: scale(1.04); }
.featured-post .featured-meta {
  font-family: 'Jost', sans-serif;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.featured-post .featured-meta .dot { opacity: .5; margin: 0 .6rem; }
.featured-post h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 300; line-height: 1.15;
  color: var(--cream); margin-bottom: 1.2rem;
}
.featured-post h2 em { font-style: italic; color: var(--gold); }
.featured-post .featured-excerpt {
  font-size: 1rem; line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: 1.8rem;
}

/* ─── BLOG GRID ─── */
.blog-grid-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 4rem;
}
.blog-grid-section .section-tag {
  margin-bottom: 2.5rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.blog-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card .card-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.4rem;
}
.blog-card .card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.blog-card:hover .card-cover img { transform: scale(1.04); }
.blog-card .card-meta {
  font-family: 'Jost', sans-serif;
  font-size: .65rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.blog-card .card-meta .dot { opacity: .5; margin: 0 .5rem; }
.blog-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 400; line-height: 1.2;
  color: var(--cream); margin-bottom: .9rem;
  transition: color .25s;
}
.blog-card:hover h3 { color: var(--gold); }
.blog-card .card-excerpt {
  font-size: .92rem; line-height: 1.75;
  color: var(--cream-dim);
  margin-bottom: 1.2rem;
}
.blog-card .arrow-link { margin-top: auto; }

/* ─── CTA BAND ─── */
.cta-band {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 4rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300; color: var(--cream);
  margin-bottom: 1.6rem;
}
.cta-band h2 em { font-style: italic; color: var(--gold); }
.cta-band p {
  max-width: 540px; margin: 0 auto 2.2rem;
  font-size: 1rem; color: var(--cream-dim); line-height: 1.8;
}

/* ═══════════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════════ */

.article-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9rem 4rem 0;
}
.article-breadcrumb a {
  font-family: 'Jost', sans-serif;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .6rem;
  transition: color .25s;
}
.article-breadcrumb a::before { content: "←"; transition: transform .25s; }
.article-breadcrumb a:hover { color: var(--gold); }
.article-breadcrumb a:hover::before { transform: translateX(-3px); }

.article-header {
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding: 0 4rem;
  text-align: center;
}
.article-header .article-meta {
  font-family: 'Jost', sans-serif;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .8s .2s forwards;
}
.article-header .article-meta .dot { opacity: .5; margin: 0 .6rem; }
.article-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300; line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .9s .35s forwards;
}
.article-header h1 em { font-style: italic; color: var(--gold); }
.article-header .article-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem; line-height: 1.6;
  color: var(--cream-dim);
  max-width: 700px; margin: 0 auto;
  opacity: 0; animation: fadeUp .9s .55s forwards;
}

.article-hero-img {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 4rem;
  opacity: 0; animation: fadeUp 1.2s .7s forwards;
}
.article-hero-img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--border);
}

.article-prose {
  max-width: 720px;
  margin: 5rem auto;
  padding: 0 2rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--cream-dim);
}
.article-prose > p { margin-bottom: 1.4rem; }
.article-prose > p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem; font-weight: 300;
  color: var(--gold);
  float: left; line-height: 1; padding: .2rem .6rem .1rem 0;
}
.article-prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 300; line-height: 1.2;
  color: var(--cream);
  margin: 3.5rem 0 1.2rem;
}
.article-prose h2 em { font-style: italic; color: var(--gold); }
.article-prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--cream);
  margin: 2.2rem 0 .9rem;
}
.article-prose ul, .article-prose ol {
  margin: 0 0 1.4rem 0;
  padding-left: 1.4rem;
}
.article-prose ul li, .article-prose ol li {
  margin-bottom: .6rem;
  position: relative;
  list-style: none;
  padding-left: 1.4rem;
}
.article-prose ul li::before {
  content: ""; position: absolute; left: 0; top: .75rem;
  width: 14px; height: 1px; background: var(--gold);
}
.article-prose ol { counter-reset: li; }
.article-prose ol li { counter-increment: li; }
.article-prose ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: 'Jost', sans-serif;
  font-size: .75rem; letter-spacing: .1em;
  color: var(--gold);
}

.article-prose a {
  color: var(--gold);
  border-bottom: 1px solid rgba(200,168,112,.4);
  transition: border-color .25s;
}
.article-prose a:hover { border-bottom-color: var(--gold); }

.article-prose strong { color: var(--cream); font-weight: 500; }

.prose-quote {
  margin: 2.5rem 0;
  padding: .4rem 0 .4rem 1.6rem;
  border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem; line-height: 1.5;
  color: var(--cream);
}

.prose-table-wrap {
  margin: 2.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--border);
}
.prose-table {
  width: 100%; border-collapse: collapse;
  font-family: 'Jost', sans-serif;
  font-size: .92rem;
}
.prose-table th {
  text-align: left;
  padding: 1rem 1.2rem;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  border-bottom: 1px solid var(--gold-dim);
  background: rgba(200,168,112,.04);
}
.prose-table td {
  padding: .9rem 1.2rem;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--border);
}
.prose-table tr:last-child td { border-bottom: none; }

.inline-cta {
  max-width: 720px;
  margin: 4rem auto;
  padding: 2.8rem 2.4rem;
  border: 1px solid rgba(200,168,112,.35);
  text-align: center;
  background: rgba(200,168,112,.04);
}
.inline-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.3rem;
}
.inline-cta h3 em { font-style: italic; color: var(--gold); }
.inline-cta p {
  font-size: .95rem; color: var(--cream-dim);
  max-width: 480px; margin: 0 auto 1.6rem;
  line-height: 1.7;
}

/* ─── RELATED POSTS ─── */
.related-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 5rem 4rem 0;
  border-top: 1px solid var(--border);
}
.related-section .section-tag { margin-bottom: 2.5rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

/* ═══════════════════════════════════════════
   SCROLL-REVEAL (IntersectionObserver hook)
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .featured-post {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2.5rem;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .blog-grid-section,
  .cta-band,
  .blog-filter {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .article-breadcrumb,
  .article-header,
  .article-hero-img {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .related-section {
    padding: 5rem 2.5rem 0;
  }
  .related-grid { gap: 2rem; }
}

@media (max-width: 768px) {
  .journal-hero {
    padding: 9rem 1.5rem 3.5rem;
  }
  .blog-filter {
    padding: 2.5rem 1.5rem 0;
    gap: .5rem;
  }
  .filter-chip {
    font-size: .65rem;
    padding: .55rem 1rem;
  }
  .featured-post {
    margin-top: 3.5rem;
    padding: 0 1.5rem;
  }
  .blog-grid-section,
  .cta-band {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin: 3.5rem auto;
  }
  .cta-band { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .article-breadcrumb {
    padding: 7rem 1.5rem 0;
  }
  .article-header {
    padding: 0 1.5rem;
  }
  .article-header h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .article-hero-img {
    margin: 3rem auto 0;
    padding: 0 1.5rem;
  }
  .article-prose {
    margin: 3.5rem auto;
    padding: 0 1.5rem;
    font-size: 1rem;
  }
  .article-prose > p:first-of-type::first-letter {
    font-size: 2.8rem;
  }
  .related-section {
    padding: 3.5rem 1.5rem 0;
    margin: 3.5rem auto;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .inline-cta {
    padding: 2rem 1.5rem;
    margin: 3rem auto;
  }
}
