/* ═══════════════════════════════════════════
   BLOG BEJEGYZÉS OLDAL (single.php)
═══════════════════════════════════════════ */

/* ── Hero h1 méret felülírás (68px, nem a globális 110px) ── */
.post-hero__title {
    font-size: 68px;
    line-height: 1.1;
}

/* ── 2 oszlopos elrendezés ───────────────── */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    padding: 60px 0 80px;
    align-items: start;
}

/* ── Bal: cikk tartalom ──────────────────── */
.post-content__kep-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}

.post-content__kep {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-content__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.post-content__datum,
.post-content__szerzo {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #8C8880;
}

.post-content__valaszto {
    color: #C8C3B8;
}

.post-content__kivonat {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-text);
    border-left: 3px solid var(--color-terracotta);
    padding-left: 20px;
    margin-bottom: 32px;
}

.post-content__kivonat p {
    margin: 0;
}

/* ── Gutenberg / WP tartalom stílusok ────── */
.post-content__szoveg {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
}

.post-content__szoveg h2 {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 6rem 0 2rem;
    text-align: left;
    color: var(--color-dark-green);
}

.post-content__szoveg h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 3rem 0 1rem;
    color: var(--color-dark-green);
}

.post-content__szoveg p {
    margin: 0 0 20px;
}

.post-content__szoveg ul,
.post-content__szoveg ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.post-content__szoveg li {
    margin-bottom: 8px;
}

.post-content__szoveg a {
    color: var(--color-terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content__szoveg img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 24px 0;
}

.post-content__szoveg blockquote {
    border-left: 3px solid var(--color-terracotta);
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: #5A5650;
}

/* ── Előző / következő navigáció ─────────── */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #DDD9D0;
}

.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    max-width: 48%;
    transition: color 0.18s ease;
}

.post-nav__link--next {
    text-align: right;
    margin-left: auto;
}

.post-nav__irany {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #8C8880;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav__cim {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark-green);
    transition: color 0.18s ease;
}

.post-nav__link:hover .post-nav__cim {
    color: var(--color-terracotta);
}

/* ── Jobb: widget oldalsáv ───────────────── */
.post-sidebar {
    position: sticky;
    top: 100px;
}

/* ── WP alap "Keresés" widget/blokk a sidebar-ban ──────────────────────
   A .wp-block-search__input alapból nem tud 0 alá zsugorodni egy flex
   szülőben (a böngésző UA-stílusa miatt van egy "láthatatlan" minimális
   szélessége) – emiatt csúszott ki oldalra 360px körül. A min-width:0
   ezt oldja fel. Emellett a mezőt/gombot a weboldal saját, globális
   input- és gomb-stílusára húztuk (ld. style.css .kapcsolat-section
   input és a Syne-bold, teli lekerekítésű gomb-minta). */
.wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    border: none !important;
}

.wp-block-search__input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    background: #ffffff;
    border: 1px solid #cdcac3;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    outline: none;
    box-sizing: border-box;
    transition: box-shadow var(--transition);
}

.wp-block-search__input:focus {
    box-shadow: 0 0 0 2px rgba(217, 126, 74, 0.45);
}

.wp-block-search__button.wp-element-button {
    flex-shrink: 0;
    background: var(--color-terracotta);
    color: var(--color-text-inv);
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: var(--fw-bold);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transition);
}

.wp-block-search__button.wp-element-button:hover {
    background-color: #c56e3a;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media only screen and (max-width: 1180px) {
    .post-hero__title {
        font-size: 52px;
    }

    .post-layout {
        grid-template-columns: 1fr 280px;
        gap: 40px;
    }
}

@media only screen and (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media only screen and (max-width: 680px) {
    .post-hero__title {
        font-size: 36px;
    }

    .post-layout {
        padding: 40px 0 60px;
    }

    .post-nav {
        flex-direction: column;
        gap: 16px;
    }

    .post-nav__link--next {
        text-align: left;
        margin-left: 0;
    }

    .post-nav__link {
        max-width: 100%;
    }
}

@media only screen and (max-width: 450px) {
    .wp-block-search__inside-wrapper {
        flex-direction: column;
    }

    .wp-block-search__input,
    .wp-block-search__button.wp-element-button {
        width: 100%;
    }

    /* A WP alap blokk-stílus margin-left: 10px-et ad a gombnak (az input
       melletti, egy sorban álló elrendezéshez) – tördelt (egymás alatti)
       nézetben ez elcsúsztatná a teljes szélességű gombot */
    .wp-block-search__button.wp-element-button {
        margin-left: 0;
    }
}
