/* ==========================================================
   EGYHÁZTÖRTÉNETI SZEMLE - VÉGLEGES ÖSSZEFŰZÖTT CSS
   Arculat: Krém fejléc, Bordó címek, Arany díszítés
   Tartalmazza: Teljes lábléc, Negatív logó, Login, Gomb-javítás
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=PT+Sans:wght@400;700&display=swap');

:root {
    --szemle-red: #882222;        /* Bordó főszín */
    --szemle-red-dark: #5a1212;   /* Mélybordó lábléc */
    --szemle-gold: #c5a059;       /* Arany díszítés */
    --szemle-cream: #F8ECD2;      /* Krém háttérszín a fejlécnek */
    --szemle-text: #2c2c2c;
    --szemle-bg: #ffffff;         /* Az oldal háttere fehér */
    --szemle-radius: 6px;         /* Egységes lekerekítés */
}

/* ==========================================================
   1. ALAPOK ÉS TIPOGRÁFIA
   ========================================================== */
body {
    font-family: 'PT Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--szemle-text);
    background-color: var(--szemle-bg);
    margin: 0;
}

a {
    color: var(--szemle-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--szemle-gold);
}

/* ==========================================================
   2. FEJLÉC ÉS NAVIGÁCIÓ (KRÉM ALAP)
   ========================================================== */
.pkp_structure_head {
    background-color: var(--szemle-cream) !important;
    border-bottom: 4px solid var(--szemle-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pkp_navigation_primary a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--szemle-red) !important; 
    text-transform: uppercase;
    padding: 10px 15px !important;
    border-radius: var(--szemle-radius);
    letter-spacing: 0.5px;
}

.pkp_navigation_primary a:hover, 
.pkp_navigation_primary .current a {
    background-color: rgba(136, 34, 34, 0.1);
    color: var(--szemle-red) !important;
}

/* ==========================================================
   3. TARTALMI ELEMEK ÉS MEZŐK
   ========================================================== */
h1, .page_title {
    font-family: 'Montserrat', sans-serif;
    color: var(--szemle-red);
    border-bottom: 2px solid var(--szemle-gold);
    text-transform: uppercase;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.obj_article_summary {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: var(--szemle-radius);
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.obj_article_summary .title a {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--szemle-red);
}

/* Kereső és beviteli mezők */
input[type="text"], input[type="search"], 
input[type="password"], input[type="email"], 
select, textarea {
    border: 1px solid var(--szemle-gold);
    border-radius: var(--szemle-radius) !important;
    padding: 8px 12px;
    background-color: #fff;
}

input:focus {
    border-color: var(--szemle-red) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(136, 34, 34, 0.1);
}

/* ==========================================================
   4. OLDALSÁV ÉS GOMBOK (TÁVOLSÁG JAVÍTÁSSAL)
   ========================================================== */
.pkp_structure_sidebar .block {
    border-radius: var(--szemle-radius);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    margin-bottom: 25px;
}

.pkp_structure_sidebar .block .title {
    background-color: var(--szemle-red);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    border-left: 5px solid var(--szemle-gold);
    padding: 12px;
    font-size: 13px;
    text-transform: uppercase;
}

/* PDF és View PDF gombok stílusa és távolsága */
.obj_galley_link {
    background-color: var(--szemle-red) !important;
    color: #fff !important;
    border: 1px solid var(--szemle-gold);
    border-radius: var(--szemle-radius) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 20px;
    transition: all 0.3s ease;
    
    /* Távolság beállítása */
    margin-right: 12px !important;
    margin-bottom: 10px !important;
    display: inline-block !important;
    vertical-align: middle;
}

.obj_galley_link:last-child {
    margin-right: 0 !important;
}

.obj_galley_link:hover {
    background-color: var(--szemle-gold) !important;
    color: var(--szemle-red) !important;
}

/* ==========================================================
   5. LÁBLÉC (TELJES SZÉLESSÉG ÉS NEGATÍV LOGÓ)
   ========================================================== */
.pkp_structure_footer_wrapper {
    background-color: var(--szemle-red-dark) !important;
    border-top: 6px solid var(--szemle-gold);
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_structure_footer {
    background-color: transparent !important;
    color: var(--szemle-cream);
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto !important;
    border: none !important;
    display: block;
}

.pkp_structure_footer a {
    color: var(--szemle-gold) !important;
    font-weight: 600;
}

.pkp_brand_footer img {
    filter: invert(1) brightness(2);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pkp_brand_footer img:hover {
    opacity: 1;
}

/* ==========================================================
   6. BEJELENTKEZÉS ÉS REGISZTRÁCIÓ
   ========================================================== */
.page_login .login, 
.page_register .register {
    background-color: #fff;
    padding: 35px;
    border-radius: var(--szemle-radius);
    border: 1px solid var(--szemle-gold);
    box-shadow: 0 10px 30px rgba(136, 34, 34, 0.08);
    max-width: 450px;
    margin: 50px auto;
}

.page_login button[type="submit"], 
.page_register button[type="submit"] {
    background-color: var(--szemle-red) !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--szemle-radius);
    padding: 12px;
    width: 100%;
    border: none;
    cursor: pointer;
}

.page_login button[type="submit"]:hover {
    background-color: var(--szemle-gold) !important;
}

/* ==========================================================
   7. MOBIL ÉS ASZTALI NÉZET JAVÍTÁSA
   ========================================================== */
@media (max-width: 768px) {
    .pkp_navigation_primary_wrapper {
        background-color: var(--szemle-cream);
    }
    
    h1, .page_title { font-size: 22px; }

    /* Mobilon a gombok egymás alatt, teljes szélességben */
    .obj_galley_link {
        display: block !important;
        text-align: center;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }
}
