/* --- ALAPOK ÉS PASZPARTU --- */
html {
    background-color: #e8e4d9; /* Külső antik keret */
    padding: 30px;
    min-height: 100vh;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit; /* Segít a pontos méretezésben */
}

body {
    background-color: #2c2c2c; /* Belső sötét háttér */
    color: #f4f1ea;
    border: 1px solid #1a1a1a;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    min-height: calc(100vh - 60px);
    margin: 0;
    font-family: 'Georgia', serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- FEJLÉC --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1a1a1a !important;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation li { margin-left: 20px; }

.site-navigation a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #ccc !important;
    font-weight: bold;
    transition: color 0.3s;
}

.site-navigation a:hover {
    color: #f4f1ea !important;
    text-decoration: none;
}

.site-header h1, .site-header h1 a {
    color: #f4f1ea !important;
    text-decoration: none;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.site-header p, .site-header h3 {
    color: #aaa !important;
    font-style: italic;
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}


/* --- GRID RENDSZEREK (Csempék) --- */
.kolto-grid, .vers-lista-grid {
    display: grid; /* EZ HIÁNYZOTT! */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px;
    padding: 40px 0;
    width: 100%;
}

/* --- KÁRTYÁK STÍLUSA --- */
.kolto-card, .vers-lista-card {
    background: #fdfcf8;
    padding: 40px 20px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kolto-card:hover, .vers-lista-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.kolto-card h2, .vers-lista-card h3 {
    color: #8c2d1f !important;
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
}

.kolto-card p, .vers-lista-card .szerzo-nev {
    font-size: 0.8rem;
    color: #666 !important;
    text-transform: uppercase;
    margin: 0;
}

/* --- EGYEDI VERS OLDAL --- */
.article {
    max-width: 750px;
    margin: 40px auto;
    background: #fff;
    padding: 50px;
    border: 1px solid #e8e6e0;
    color: #333;
}

.article h1, .article h2 {
    color: #1a1a1a !important;
    text-align: center;
}
article p {
    margin-bottom: 0.3em; /* Itt állíthatod a távolságot (pl. 1em, 20px, stb.) */
    line-height: 1.4 em    /* Ez pedig a sorok közötti távolság (sorköz) */
}

div[itemprop="articleBody"] {
    font-family: 'Lora', serif;
    white-space: pre-wrap;
    text-align: left;
    margin-top: 30px;
    color: #333 !important;
    line-height: 1;
}

/* Általános alapméret a címeknek */
.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 30px;
text-decoration: none;
}

/* A főoldali "Szerzőink" cím legyen nagyobb és hangsúlyosabb */
h2.section-title {
    font-size: 1.2rem !important;
    color: #f4f1ea !important;
    letter-spacing: 2px;
}
h1.section-title {
    font-size: 1.2rem !important;
    color: #8c2d1f !important;
    letter-spacing: 2px;
}

/* --- UNIVERZALIS GRID JAVITAS --- */

body.versek-page main,
body.versek-page .article-list,
body.versek-page #main {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
gap: 30px !important;
padding: 40px 0 !important;
width: 100% !important;
}

body.versek-page article {
width: 100% !important;
max-width: none !important;
margin: 0 !important;
}

.site-navigation li.active a {
color: #8c2d1f !important;
border-bottom: 1px solid #8c2d1f;
padding-bottom: 2px;
text-decoration: none;
}
.site-navigation a:active,
.site-navigation a.current {
color: #8c2d1f !important;
}

/* VERSEK CIMEINEK JAVITASA A CSEMPERACSBAN */

.vers-lista-card h3 {
font-size: 1.6rem !important; /* Nagyobb betűméret /
color: #8c2d1f !important;    / Erőteljes bordó szín /
margin-bottom: 10px !important;
font-family: 'Playfair Display', serif !important; / Elegánsabb betűtípus */
line-height: 1.4 !important;
}

.vers-lista-card .szerzo-nev {
color: #444 !important;       /* Sötétszürke a névnek a jobb olvashatóságért */
font-size: 0.9rem !important;
text-transform: uppercase;
letter-spacing: 2px;
}

/* Kártya háttér finomítása, hogy kiemelje a színt */
.vers-lista-card {
background: #fdfcf8 !important;
border: 1px solid #eee !important;
transition: transform 0.3s ease;
}

.vers-lista-card:hover {
transform: translateY(-5px); /* Egy kis mozgás, ha rátolod az egeret */
}

.vers-lista-card a, 
.kolto-card a,
.vers-lista-card a:hover, 
.vers-lista-card a:focus,
.vers-lista-card a h3,
.vers-lista-card a .szerzo-nev {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

footer {
   width: 100px;
  height: 50px;
  position: sticky;
  bottom: 0;
  margin-top: -50px;
padding-top:100px;
}
.lapozas-kontener {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #f5f5f5;
    clear: both;
}

.lapozo-link {
    color: #bbb !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    margin: 0 20px;
    transition: color 0.3s ease;
}

.lapozo-link:hover {
    color: #444 !important;
}

/* Reszponzív képek védelme */
img {
    max-width: 100%;    /* A kép sosem lehet szélesebb, mint a kijelző */
    height: auto;       /* Megtartja az eredeti arányokat, nem torzul */
    display: block;     /* Megszünteti a felesleges alsó hézagokat */
    margin: 0 auto;     /* Középre rendezi a képet */
}

/* Kifejezetten a versekhez rendelt képek (article_image) finomítása */
.vers-kep img {
    border-radius: 4px; /* Egy egészen pici kerekítés az éleken (opcionális) */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Nagyon finom, elegáns árnyék */
    margin-bottom: 20px;
}
/* A konténer, ami jobbra húzza a tartalmat */
.header-fb-doboz {
    display: flex;
    justify-content: flex-end; /* Ez tolja el a jobb szélre */
    padding: 10px 50px;       /* Távolság a felső és oldalsó széltől */
}

/* A link stílusa */
.header-fb-link {
    text-decoration: none;
    color: #a5c2d9;           /* A korábban kért halványkék */
    font-size: 0.9rem;
    font-family: 'Lora', serif;
    transition: color 0.3s ease;
}

/* Egérmutató hatás */
.header-fb-link:hover {
    color: #5d8aa8;           /* Sötétebb kék, ha rámutatsz */
}
/* A szerzői szövegdoboz kényszerített magassága */
/* Eltüntetünk minden maradék felesleges feliratot a Törzs körül */
.vers-szerkeszto-group label, 
.vers-szerkeszto-group .txp-textile-help {
    display: none !important;
}

/* Létrehozzuk a saját súgónkat közvetlenül a doboz fölé */
div:has(> .vers-szerkeszto):before {
    content: "📜 SEGÍTSÉG: Üres sor = új versszak | _dőlt_ | p>. jobbra igazítás";
    display: block;
    background: #fff9c4; /* Világossárga, mint egy cetli */
    color: #444;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #e6db55;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-top: 10px;
}

/* Összekötjük a súgót a dobozzal */
.vers-szerkeszto {
    border-top: 30px solid #fff9c4 !important; /* Egy vastag sárga keret a doboz tetején */
    position: relative;
}
/* --- ADMIN FELÜLET FINOMHANGOLÁS --- */

/* Fix magasság a szerkesztőnek */
textarea.vers-szerkeszto {
    height: 600px !important;
    min-height: 600px !important;
    background-color: #ffffff !important;
    color: #333 !important;
    font-family: 'Lora', serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    padding: 20px !important;
    border: 2px solid #e6db55 !important;
    box-shadow: none !important;
}

/* Atombiztos Súgó sáv a doboz tetején */
.vers-szerkeszto-group {
    position: relative;
    padding-top: 40px !important;
}

/* Ez a sáv fog megjelenni a doboz felett */
textarea.vers-szerkeszto:before {
    content: "📜 SEGÍTSÉG: Üres sor = új versszak | _dőlt_ | p>. jobbra igazítás";
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: #fff9c4;
    color: #444;
    line-height: 20px;
    padding: 0 15px;
    font-weight: bold;
    border: 1px solid #e6db55;
    border-bottom: none;
    z-index: 10;
    display: block;
}
/* A keresőmező finomítása */
.kereso-sav {
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.kereso-sav input {
    border: none;
    background: transparent;
    font-size: 18px;
    font-family: serif;
    width: 70%;
}

/* A találati "kártya" */
.talalat-kartya {
    display: block;
    text-decoration: none;
    color: #1a1a1a;
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #333; /* Stark stílusú hangsúly */
    transition: all 0.2s ease;
}

.talalat-kartya:hover {
    background: #fff9c4; /* Az admin súgónál használt sárga, finoman */
    transform: translateX(5px);
}

.talalat-cim {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.talalat-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.talalat-kivonat {
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
}