/* ==========================================================================
   BLOG (blg-*) – gyűjtőoldal + cikkoldal + főoldali ajánló (.lp-blog)
   --------------------------------------------------------------------------
   Betöltés: a központi regiszter css_post mezőjéből (/blog és /blog/<slug>),
   a főoldalon az index.php tölti be a teaserhez.
   Fotó-szabály (projekt-szintű): képre SOHA object-fit:cover – mindig contain,
   sötét letterbox háttérrel. A kártya-borítók is így jelennek meg.
   ========================================================================== */

.blg { padding: 34px 0 70px; }
.blg-arany { color: var(--gold, #c8a44d); }
.blg-pont { opacity: .45; }

.blg-kicker {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold, #c8a44d);
  margin-bottom: 10px;
}

/* ---------- Nyitósáv ---------- */
.blg-hero { max-width: 780px; margin: 8px auto 34px; text-align: center; }
.blg-hero__cim {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.14;
  margin: 0 0 14px;
  color: #f2f0ec;
}
.blg-hero__lead {
  color: rgba(234, 240, 246, .78);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 640px;
}
.blg-hero__cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Szakasz-fejek ---------- */
.blg-szakasz { margin-top: 38px; }
.blg-szakasz__fej { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.blg-szakasz__nev {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.15rem;
  color: #f2f0ec;
  white-space: nowrap;
}
.blg-szakasz__vonal { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(200, 164, 77, .55), rgba(255, 255, 255, .06)); }

/* ---------- Szűrő + kereső ---------- */
.blg-szuro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 34px 0 6px;
}
.blg-chipek { display: flex; gap: 8px; flex-wrap: wrap; }
.blg-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: rgba(234, 240, 246, .85);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .86rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.blg-chip:hover { border-color: rgba(200, 164, 77, .55); }
.blg-chip.is-aktiv {
  background: linear-gradient(135deg, rgba(200, 164, 77, .22), rgba(200, 164, 77, .08));
  border-color: rgba(200, 164, 77, .7);
  color: #f2e8d0;
}
.blg-chip__db { opacity: .6; font-size: .78rem; margin-left: 2px; }

.blg-kereso {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .25);
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(234, 240, 246, .6);
  min-width: min(280px, 100%);
}
.blg-kereso:focus-within { border-color: rgba(200, 164, 77, .7); }
.blg-kereso input {
  border: 0;
  background: transparent;
  color: #e8eaed;
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  width: 100%;
}

/* ---------- Kártya-rács ----------
   KÖZEPES, KOMPAKT nézet (tulajdonosi kérés, 2026-09-02): kisebb képfejek,
   sűrűbb rács; a kiemelt kártya fekvő (kép balra, szöveg jobbra), nem óriás. */
.blg-racs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.blg-kiemelt__racs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 18px;
}

.blg-kartya {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.blg-kartya:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 164, 77, .5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.blg-kartya.is-rejtett { display: none; }

.blg-kartya__kep {
  position: relative;
  display: block;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, .35);   /* letterbox a contain mellé */
}
.blg-kartya__kep img {
  width: 100%;
  height: 100%;
  object-fit: contain;              /* SOHA nem cover – projekt-szabály */
  display: block;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.blg-kartya:hover .blg-kartya__kep img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .blg-kartya__kep img { transition: none; }
  .blg-kartya:hover .blg-kartya__kep img { transform: none; }
}

/* ---------- Hover-ízelítő: felúszó „belelesés" a cikkbe ---------- */
.blg-kartya__izelito {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(to top,
    rgba(9, 9, 11, .97) 0%, rgba(9, 9, 11, .92) 42%, rgba(9, 9, 11, .55) 78%, rgba(9, 9, 11, 0) 100%);
  color: #eef0f2;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;   /* a kártya-link marad kattintható */
}
.blg-kartya:hover .blg-kartya__izelito,
.blg-kartya:focus-within .blg-kartya__izelito { opacity: 1; }
.blg-kartya__izelito-szoveg {
  font-size: .86rem;
  line-height: 1.5;
  color: rgba(238, 240, 242, .92);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blg-kartya--nagy .blg-kartya__izelito-szoveg { -webkit-line-clamp: 6; }
.blg-kartya__izelito-tovabb {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold, #c8a44d);
  padding: 4px 12px;
  border: 1px solid rgba(200, 164, 77, .55);
  border-radius: 999px;
  background: rgba(200, 164, 77, .12);
}
@media (prefers-reduced-motion: reduce) {
  .blg-kartya__izelito { transition: none; }
}
/* Érintőképernyőn nincs hover – ne villanjon fel/ragadjon be az ízelítő. */
@media (hover: none) {
  .blg-kartya__izelito { display: none; }
}
.blg-kartya__nokep {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(200, 164, 77, .16), transparent 55%),
    linear-gradient(160deg, #14141a, #0b0b0d);
}
.blg-kartya__monogram {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: .12em;
  color: rgba(200, 164, 77, .8);
}
.blg-kartya__nokep-kat {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(234, 240, 246, .5);
}
.blg-kartya__jelveny {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(11, 11, 13, .82);
  border: 1px solid rgba(200, 164, 77, .55);
  color: #f2e8d0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .72rem;
  letter-spacing: .04em;
}

.blg-kartya__test { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.blg-kartya__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(234, 240, 246, .6);
  flex-wrap: wrap;
}
.blg-csillag { color: var(--gold, #c8a44d); }
.blg-kartya__cim { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.blg-kartya__cim a { color: #f2f0ec; text-decoration: none; }
.blg-kartya__cim a:hover { color: var(--gold, #c8a44d); }
.blg-kartya__kivonat {
  margin: 0;
  color: rgba(234, 240, 246, .72);
  font-size: .89rem;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blg-kartya__cta { margin-top: 2px; }
.blg-kartya__cta .lp-btn { padding: 8px 14px; font-size: .84rem; }

/* Kiemelt kártya: FEKVŐ elrendezés – kép balra, szöveg jobbra */
.blg-kartya--nagy { flex-direction: row; align-items: stretch; }
.blg-kartya--nagy .blg-kartya__kep {
  width: 280px;
  height: auto;
  min-height: 190px;
}
.blg-kartya--nagy .blg-kartya__test { padding: 16px 18px; }
.blg-kartya--nagy .blg-kartya__cim { font-size: 1.15rem; }
@media (max-width: 680px) {
  .blg-kartya--nagy { flex-direction: column; }
  .blg-kartya--nagy .blg-kartya__kep { width: 100%; height: 170px; min-height: 0; }
}

.blg-ures {
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 14px;
  color: rgba(234, 240, 246, .7);
}

/* ---------- Záró CTA ---------- */
.blg-zaro {
  margin-top: 54px;
  text-align: center;
  padding: 36px 22px;
  border: 1px solid rgba(200, 164, 77, .3);
  border-radius: 22px;
  background:
    radial-gradient(110% 130% at 50% 0%, rgba(200, 164, 77, .12), transparent 60%),
    rgba(255, 255, 255, .03);
}
.blg-zaro__cim {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 10px;
  color: #f2f0ec;
}
.blg-zaro__lead { color: rgba(234, 240, 246, .75); max-width: 560px; margin: 0 auto 20px; line-height: 1.6; }
.blg-zaro__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.blg-vissza { margin-top: 22px; text-align: center; }

/* ==========================================================================
   CIKKOLDAL
   ========================================================================== */

.blg-cikk__keret { max-width: 1060px; }
/* A törzs kényelmes olvasási szélessége (egyoszlopos nézet: középen). */
.blg-cikk__torzs { max-width: 760px; margin-inline: auto; }
.blg-toc { max-width: 760px; margin-inline: auto; }

/* ---------- Cikk-hero: cím + borítókép egymás mellett ---------- */
.blg-cikk__hero { margin: 8px 0 30px; }
.blg-cikk__hero.has-cover {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}
@media (min-width: 781px) {
  .blg-cikk__hero.has-cover {
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 30px;
  }
}

.blg-cikk__fej { margin: 0; }
.blg-cikk__jelveny {
  display: inline-block;
  border: 1px solid rgba(200, 164, 77, .55);
  color: #f2e8d0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .78rem;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.blg-cikk__cim {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 12px;
  color: #f2f0ec;
}
.blg-cikk__lead {
  margin: 0 0 16px;
  color: rgba(234, 240, 246, .74);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 44ch;
}
.blg-cikk__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(234, 240, 246, .62);
  font-size: .88rem;
}

.blg-cikk__borito {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  /* A keret a kép köré SIMUL (nem feszül teljes szélességre), így álló fotónál
     sincs fekete oldal-letterbox – a projekt contain-elve mellett is rendezett. */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-self: center;             /* a grid jobb oszlopában középre */
}
.blg-cikk__borito img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;                /* nem vágunk (contain-elv): a kép zsugorodik */
}
@media (max-width: 780px) {
  .blg-cikk__borito img { max-height: 320px; }
}

/* ---------- Tartalomjegyzék ---------- */
.blg-toc {
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid rgba(200, 164, 77, .7);
  background: rgba(255, 255, 255, .035);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 26px;
}
.blg-toc__cim {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold, #c8a44d);
  margin-bottom: 10px;
}
.blg-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.blg-toc a { color: rgba(234, 240, 246, .85); text-decoration: none; font-size: .93rem; }
.blg-toc a:hover { color: var(--gold, #c8a44d); }

/* ---------- Törzs-tipográfia ---------- */
.blg-cikk__torzs { font-size: 1.02rem; line-height: 1.75; color: rgba(234, 240, 246, .88); }
.blg-cikk__torzs h2 {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  color: #f2f0ec;
  margin: 44px 0 14px;
  line-height: 1.3;
  scroll-margin-top: 130px;         /* a fixed fejléc alá ne csússzon a horgony */
}
.blg-cikk__torzs h3 {
  font-size: 1.12rem;
  color: #f0e9d8;
  margin: 30px 0 10px;
  scroll-margin-top: 130px;
}
.blg-cikk__torzs p { margin: 0 0 16px; }
.blg-cikk__torzs a { color: var(--gold, #c8a44d); text-decoration: underline; text-underline-offset: 3px; }
.blg-cikk__torzs a:hover { color: #e0c987; }
.blg-cikk__torzs ul, .blg-cikk__torzs ol { margin: 0 0 18px; padding-left: 24px; display: grid; gap: 10px; }
.blg-cikk__torzs li { line-height: 1.65; }
.blg-cikk__torzs strong { color: #f5f2ea; }
.blg-cikk__torzs img { max-width: 100%; height: auto; border-radius: 14px; }
.blg-cikk__torzs blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid rgba(200, 164, 77, .7);
  background: rgba(255, 255, 255, .04);
  border-radius: 0 12px 12px 0;
  color: rgba(234, 240, 246, .8);
}

/* Cikkbe illesztett fotó – a telefonos, álló képek miatt magasság-korlátos,
   vágás nélkül (contain-elv: a kép sosem csonkul, a háttér letterboxol) */
.blg-abra {
  margin: 22px 0 28px;
  text-align: center;
}
.blg-abra img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 540px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .35);
}
.blg-abra figcaption {
  margin-top: 10px;
  font-size: .86rem;
  line-height: 1.55;
  color: rgba(234, 240, 246, .6);
  max-width: 560px;
  margin-inline: auto;
}

/* Szövegbe simuló kép – modern magazin-elrendezés (tulajdonosi kérés):
   a kép a szakasz elején oldalra úszik, a szöveg mellette folyik.
   Mobilon a float kikapcsol, a kép a szöveg közé, teljes szélesre áll. */
.blg-cikk__torzs h2,
.blg-cikk__torzs h3,
.blg-gyik,
.blg-megoszt { clear: both; }
@media (min-width: 721px) {
  .blg-abra--jobb,
  .blg-abra--bal {
    width: min(320px, 44%);
    margin-top: 8px;
    margin-bottom: 14px;
  }
  .blg-abra--jobb { float: right; margin-left: 26px; }
  .blg-abra--bal  { float: left;  margin-right: 26px; }
  .blg-abra--jobb img,
  .blg-abra--bal img { width: 100%; max-height: none; }
  .blg-abra--jobb figcaption,
  .blg-abra--bal figcaption { text-align: left; margin-inline: 0; font-size: .8rem; }
}

/* Táblázatok a cikktörzsben – mobilon vízszintesen görgethető (a szerkezet
   nem törik szét). A táblázatot a törzs-HTML egy .blg-tabla wrapperbe teszi. */
.blg-tabla {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(0, 0, 0, .2);
}
.blg-cikk__torzs table {
  width: 100%;
  min-width: 460px;                 /* e alatt görgetés indul, nem törik */
  border-collapse: collapse;
  font-size: .9rem;
}
.blg-cikk__torzs th,
.blg-cikk__torzs td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  vertical-align: top;
}
.blg-cikk__torzs thead th {
  color: var(--gold, #c8a44d);
  font-weight: 700;
  background: rgba(255, 255, 255, .04);
  white-space: nowrap;
}
.blg-cikk__torzs td { color: rgba(234, 240, 246, .85); }
.blg-cikk__torzs tbody tr:last-child td { border-bottom: 0; }
.blg-cikk__torzs td strong { color: #f2e8d0; }

/* Kiemelt dobozok a törzsben */
.blg-kerdes {
  margin: 18px 0 26px;
  padding: 14px 18px;
  border: 1px solid rgba(200, 164, 77, .4);
  border-left: 4px solid var(--gold, #c8a44d);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 164, 77, .1), rgba(200, 164, 77, .03));
}
.blg-kerdes p { margin: 0; }
.blg-pelda {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(0, 0, 0, .25);
  display: grid;
  gap: 10px;
}
.blg-pelda p { margin: 0; }

/* ---------- GYIK ---------- */
.blg-gyik { margin-top: 44px; }
.blg-gyik__elem {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  margin-bottom: 10px;
  overflow: hidden;
}
.blg-gyik__elem summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  color: #f0ecdf;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.blg-gyik__elem summary::-webkit-details-marker { display: none; }
.blg-gyik__elem summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold, #c8a44d);
  font-size: 1.2rem;
}
.blg-gyik__elem[open] summary::after { content: "–"; }
.blg-gyik__elem p { margin: 0; padding: 0 18px 16px; color: rgba(234, 240, 246, .78); }

/* ---------- Megosztás ---------- */
.blg-megoszt {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.blg-megoszt__cim { color: rgba(234, 240, 246, .7); font-size: .92rem; }
.blg-megoszt__gomb { display: inline-flex; align-items: center; gap: 8px; }
.blg-megoszt__gomb.is-masolva { border-color: rgba(140, 255, 140, .5); color: #b8f5b8; }

/* Felső (hero alatti) megosztás – kompaktabb, keret nélkül */
.blg-megoszt--fent {
  margin: 18px 0 0;
  padding-top: 0;
  border-top: 0;
  gap: 10px;
}
.blg-megoszt--fent .blg-megoszt__cim { font-size: .82rem; color: rgba(234, 240, 246, .55); }
.blg-megoszt--fent .blg-share {
  padding: 6px 13px;
  font-size: .82rem;
}
.blg-megoszt--fent .blg-share svg { width: 15px; height: 15px; }

/* ---------- Átlátszósági lábjegyzet ---------- */
.blg-labjegyzet {
  margin: 26px 0 0;
  padding: 16px 20px;
  border: 1px dashed rgba(200, 164, 77, .35);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(234, 240, 246, .65);
}
.blg-labjegyzet__cim {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(200, 164, 77, .8);
  margin-bottom: 8px;
}
.blg-labjegyzet p { margin: 0; }
.blg-labjegyzet strong { color: rgba(240, 236, 223, .85); }

/* ---------- Szerző ---------- */
.blg-szerzo {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.blg-szerzo__kep {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(200, 164, 77, .4);
  padding: 6px;
  flex-shrink: 0;
}
.blg-szerzo__nev { font-weight: 700; color: #f2f0ec; margin-bottom: 4px; }
.blg-szerzo__leiras { margin: 0; color: rgba(234, 240, 246, .72); font-size: .92rem; line-height: 1.6; }
.blg-szerzo__leiras a { color: var(--gold, #c8a44d); text-decoration: none; }

/* ==========================================================================
   FŐOLDALI AJÁNLÓ (.lp-blog)
   ========================================================================== */

.lp-blog { padding: 64px 0; }
.lp-blog .blg-racs { margin-top: 24px; }
.lp-blog__cta { margin-top: 26px; text-align: center; }

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  .blg { padding-top: 20px; }
  .blg-szuro { flex-direction: column; align-items: stretch; }
  .blg-kereso { min-width: 0; }
  .blg-kartya__test { padding: 15px 16px 17px; }
  .blg-cikk__torzs { font-size: .98rem; }
  .blg-cikk__torzs h2 { margin-top: 34px; }
  .blg-megoszt { flex-direction: column; align-items: flex-start; }
  .lp-blog { padding: 44px 0; }
}

/* ==========================================================================
   CIKKOLDAL – PRÉMIUM, INTERAKTÍV OLVASÁSÉLMÉNY
   (progressz-sáv, reveal, scroll-spy TOC, callout-ikonok, megosztás, fel-gomb)
   ========================================================================== */

/* ---------- 1) Olvasási előrehaladás-sáv ---------- */
.blg-halad {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .06);
  z-index: 3000;           /* a fixed site-header (2000) fölött */
  pointer-events: none;
}
.blg-halad__sav {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold2, #b8892e), var(--gold, #c8a44d) 60%, #e6c877);
  box-shadow: 0 0 10px rgba(200, 164, 77, .55);
  transition: width .1s linear;
}

/* ---------- 2) Szakaszok beúszása ---------- */
.blg-rejt {
  opacity: 0;
  transform: translateY(18px);
}
.blg-latszik {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .blg-rejt { opacity: 1; transform: none; }
  .blg-latszik { transition: none; }
}

/* ---------- 3) Tartalomjegyzék: sticky + scroll-spy ---------- */
@media (min-width: 981px) {
  .blg-cikk__oszlopok {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 44px;
    align-items: start;
  }
  .blg-toc {
    position: sticky;
    top: 96px;
    margin: 0;
    max-width: none;
    max-height: calc(100vh - 130px);
    overflow: auto;
  }
  .blg-cikk__torzs { min-width: 0; margin-inline: 0; }   /* balra a cellában */
}
.blg-toc ol { counter-reset: toc; list-style: none; padding-left: 0; }
.blg-toc li { counter-increment: toc; }
.blg-toc a {
  position: relative;
  display: block;
  padding: 5px 6px 5px 26px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.blg-toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 77, .4);
  color: rgba(200, 164, 77, .8);
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s, border-color .18s;
}
.blg-toc a:hover { background: rgba(255, 255, 255, .04); }
.blg-toc a.is-current {
  color: var(--gold, #c8a44d);
  background: rgba(200, 164, 77, .1);
}
.blg-toc a.is-current::before {
  background: var(--gold, #c8a44d);
  border-color: var(--gold, #c8a44d);
  color: #14140f;
  font-weight: 700;
}

/* ---------- 4) Callout-dobozok ikonnal ---------- */
.blg-kerdes { position: relative; padding-left: 54px; }
.blg-kerdes::before {
  content: "?";
  position: absolute;
  left: 16px; top: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold, #c8a44d), var(--gold2, #b8892e));
  color: #14140f;
  font-weight: 800;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(200, 164, 77, .35);
}
.blg-pelda { position: relative; }
.blg-pelda::before {
  content: "Számpélda";
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(200, 164, 77, .85);
  margin-bottom: 8px;
}

/* ---------- 5) Prémium megosztás-gombok ---------- */
.blg-megoszt__gombok { display: flex; gap: 10px; flex-wrap: wrap; }
.blg-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: #e8eaed;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s, border-color .16s, background .16s, box-shadow .16s, color .16s;
}
.blg-share svg { transition: transform .2s; }
.blg-share:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.blg-share:hover svg { transform: scale(1.12); }
.blg-share--fb:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.blg-share--msg:hover { background: #25d366; border-color: #25d366; color: #06301a; }
.blg-share--copy:hover { border-color: rgba(200, 164, 77, .7); color: #f2e8d0; }
.blg-share--copy.is-masolva {
  background: rgba(140, 255, 140, .12);
  border-color: rgba(140, 255, 140, .5);
  color: #b8f5b8;
}
@media (prefers-reduced-motion: reduce) {
  .blg-share, .blg-share svg { transition: none; }
  .blg-share:hover { transform: none; }
}

/* ---------- 6) Vissza a tetejére ---------- */
.blg-fel {
  position: fixed;
  right: 22px; bottom: 92px;    /* a chatbot-buborék (jobb-alsó) fölött */
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 77, .5);
  background: rgba(11, 11, 13, .85);
  color: var(--gold, #c8a44d);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .18s, border-color .18s;
  backdrop-filter: blur(6px);
}
.blg-fel.is-lathato { opacity: 1; transform: none; }
.blg-fel:hover { background: var(--gold, #c8a44d); color: #14140f; border-color: var(--gold, #c8a44d); }
@media (prefers-reduced-motion: reduce) {
  .blg-fel { transition: opacity .2s; transform: none; }
}
@media (max-width: 560px) {
  .blg-fel { width: 42px; height: 42px; right: 14px; bottom: 84px; }
}
