/* ===== VERSEK – TÉMA OLDAL ===== */

/* Rács: 1 oszlop mobilon, 2 oszlop nagyobb kijelzőn,
   azonos magasságú kártyákkal, középre igazítva */
.versek-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;      /* <<< utolsó sor is középre kerül */
  gap: 1.5rem;
  margin: 1.5rem auto 0;
  max-width: 1200px;
  padding: 0 0.75rem;           /* kis belső margó mobilra */
}

/* Alap kártya */
.vers-kartya {
  position: relative;
  width: 100%;                  /* mobilon teljes szélesség */
  max-width: 560px;             /* ne legyen túl széles nagyobb kijelzőn sem */
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* 2 oszlop tablet / desktop nézetben */
@media (min-width: 768px) {
  .vers-kartya {
    width: calc(50% - 1.5rem);  /* két kártya egymás mellett */
    max-width: 560px;
  }
}

/* ===== Banner fejlécek (mint az indexen) ===== */

.card-header.banner-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0.9rem;
  height: 140px;           /* minden kártyán azonos magasságú fejléc */
}

/* Ha van háttérkép */
.card-header.banner-header.has-thumb {
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

/* Ha NINCS kép – sötétszürke háttér, fehér szöveg */
.card-header.banner-header.no-thumb {
  background: linear-gradient(135deg, #4a4a4a, #2f2f2f);
  color: #ffffff;
}

/* Cím a bannerben */
.card-header.banner-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.card-header.banner-header h2 a {
  color: #ffffff;              /* konkrétan fehérre állítjuk */
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.card-header.banner-header h2 a:hover {
  text-decoration: underline;
}

/* Alcím (ha van) a cím alatt */
.vers-alcim {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Kártya törzs ===== */

.card-body {
  padding: 0.55rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}


/* Meta sor (Írta, Feltöltve, Téma, stb.) */
.vers-kartya .nmeta,
.vers-kartya > p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  text-align: center;
}

/* Vers kivonat – azonos magasságú tartalom-blokk minden kártyán */
.vers-kartya pre {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 0.6rem;
  font-family: inherit;
  line-height: 1.5;
  text-align: center;
  max-height: 8.5em;        /* kb 6–7 sornyi hely */
  overflow: hidden;
}

/* „Tovább olvasom…” gomb mindig a kártya aljára kerüljön, középre */
.vers-kartya .button.special {
  align-self: center;
  margin-top: auto;
}

/* ===== Kiemelt badge ===== */

.vers-kartya.kiemelt {
  border-color: #3399ff;
  box-shadow:
    0 0 0 1px rgba(51,153,255,0.15),
    0 4px 10px rgba(0,0,0,0.06);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #3399ff;
  color: #fff;
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* ===== Nap verse variáció (ha használod ezen az oldalon is) ===== */

.vers-kartya.nap-verse {
  border-color: #ffcc00;
}

.badge-nap {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffcc00;
  color: #333;
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* ===== Szűrő linkek egy kis finomhangolással ===== */

.szuro-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0.5rem;
}

.szuro-container a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  text-decoration: none;
  color: #555;
}

.szuro-container a.active {
  background: #444;       /* sötétszürke háttér */
  border-color: #444;
  color: #fff;            /* fehér szöveg */
}

/* ===== Nézettség és lájkok, ha itt is használod ===== */

.nmeta .meta-views,
.nmeta .meta-likes {
  margin: 0 0.25rem;
  font-weight: 600;
}

/* ===== Mobil finomhangolás ===== */
@media (max-width: 480px) {
  .vers-kartya pre {
    line-height: 1.45;
  }
  .card-header.banner-header {
    height: 120px;
    padding: 0.6rem 0.75rem;
  }
  .card-header.banner-header h2 {
    font-size: 1rem;
  }
}

.lapozas {
  margin: 2rem 0 1rem;
  text-align: center;
}

.lapozas .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Alap gomb / buborék */
.lapozas .page {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #c3d8f5;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  background: #f5f8ff;
  color: #1f4d7b;
  min-width: 2.1rem;
  text-align: center;
  box-sizing: border-box;
}

/* Linkek */
.lapozas a.page {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lapozas a.page:hover {
  background: #e1edff;
  border-color: #9fbdf1;
  color: #15355a;
}

/* Aktuális oldal */
.lapozas .page.current {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #ffffff;
  font-weight: 600;
}

/* Előző / Következő */
.lapozas .page.prev,
.lapozas .page.next {
  padding-inline: 0.9rem;
}

/* Letiltott állapot */
.lapozas .page.disabled {
  background: #f0f0f0;
  border-color: #dddddd;
  color: #9b9b9b;
  cursor: default;
}

/* Három pont */
.lapozas .page.ellipsis {
  border: none;
  background: transparent;
  color: #7a8aa5;
}

/* Mobil finomhangolás */
@media (max-width: 600px) {
  .lapozas {
    margin-top: 1.5rem;
  }
  .lapozas .page {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
  .lapozas .page.prev,
  .lapozas .page.next {
    padding-inline: 0.7rem;
  }
}

/* Felső SEO szöveg sorkizárása */
.tema-leiras {
  text-align: justify;
}

/* Alsó SEO (seo2) sorkizárása */
.tema-seo-bottom-text {
  text-align: justify;
}

/* ===== Alsó SEO szöveg (seo2) erőltetett sorkizárással ===== */
.tema-seo-bottom-text {
  text-align: justify !important;
  line-height: 1.7;
  hyphens: auto;
}


.tema-topkep {
    max-width: 1200px;
    margin: 0 auto 1.2rem;
    overflow: hidden;
    border-radius: 10px;
    height: 200px;              /* kicsit magasabb, hogy több férjen bele */
}

/*.tema-topkep img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}*/

.tema-topkep img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* tedd a CSS LEGALJÁRA, hogy ez érvényesüljön */
.vers-kartya .card-body {
  padding-top: 0.25rem !important;   /* jóval kisebb, mint 0.75rem */
}

/* Témaoldal főcímsor */
.post .title h1 {
  font-size: 1.9rem;      /* vagy amit szépnek látsz: 2rem, 2.1rem... */
  letter-spacing: 0.12em; /* ha tetszik ez a "széthúzott" hatás */
  text-transform: uppercase;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;  /* kb. 24px */
    line-height: 1.25;
    margin-top: 0.75rem;
  }
}


/* A header legyen pozicionált */
.vers-kartya .card-header.banner-header{
  position: relative;
}

/* Korhatár badge – BAL OLDALON */
.korhatar-badge{
  position: absolute;
  top: 10px;
  left: 10px;               /* ⬅️ BAL oldal */

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 999px;

  background: #c0392b;
  color: #fff;

  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;

  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 4;               /* Kiemelt badge fölé kerül */
  white-space: nowrap;
}

/* Mobil finomítás */
@media (max-width: 420px){
  .korhatar-badge{
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 0.8rem;
  }
}


@media (max-width: 768px){
  a.button{
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
    letter-spacing: 0.05em !important;
  }
}