/* ============================================================================
 * G4 BLOG — 1:1 WP MÁSOLAT (single post / blog detail oldal CSAK)
 * ----------------------------------------------------------------------------
 * A blog NEM követi a PrestaShop témát. Minden érték az EREDETI WordPress
 * blogról (g4dimension.com/g4blog/...) mérve, HARDCODE-olva.
 * SOHA ne használj itt téma-változót (--theme-color-default = türkiz #8fd0d1 stb.)!
 * Scope: body.page-blog — csak a blog detail oldalra hat.
 *
 * WP referencia-értékek (mérve Playwright-tel, 1440px):
 *   font:            Poppins
 *   body text:       15px / line-height 27px / #666
 *   h1:              30px / 500 / UPPERCASE / #000 / lh 33px
 *   h2:              26px / 700 / #000
 *   h3:              18px / 500 / #121212 / lh ~20px
 *   content link:    #000 (NINCS accent), underline
 *   figcaption:      15px / #555
 *   kategória-meta:  15px / 600 / UPPERCASE / #000 (link), szeparátor mint #9cddd8
 *   breadcrumb:      15px / szöveg #666 / link #000 / " » " szeparátor
 *   tag pill:        bg #ecf7f8 / szöveg #90949c / 700 / pad 4px 12px / radius 2px
 *   WP accent:       mint #9cddd8 (NEM coral, NEM arany)
 * ========================================================================== */

/* ── Font: Poppins a blog minden szöveg-elemére (ikon-fontokat NEM bántjuk) ─ */
body.page-blog .g4blog-header,
body.page-blog .g4blog-breadcrumb,
body.page-blog .g4blog-cat-meta,
body.page-blog .blog-title,
body.page-blog .blog-description,
body.page-blog .blog-description p,
body.page-blog .blog-description h1,
body.page-blog .blog-description h2,
body.page-blog .blog-description h3,
body.page-blog .blog-description h4,
body.page-blog .blog-description li,
body.page-blog .blog-description a,
body.page-blog .blog-description strong,
body.page-blog .blog-description b,
body.page-blog .blog-description em,
body.page-blog .blog-description figcaption,
body.page-blog .blog-tags,
body.page-blog .blog-tags a,
body.page-blog .g4blog-sidebar__title,
body.page-blog .g4blog-cat-list,
body.page-blog .g4blog-cat-list a,
body.page-blog .g4blog-popular-item__title,
body.page-blog .g4blog-social-links a {
    font-family: 'Poppins', sans-serif !important;
}

/* ── PS téma breadcrumb (szürke sáv) elrejtése — saját WP-breadcrumb jön ────
 * A front.css `body:not(#index) .breadcrumb{display:block!important}` magasabb
 * specificitású (ID a :not-ban), ezért :not(#index)-szel kell ütni. */
body.page-blog:not(#index) nav.breadcrumb {
    display: none !important;
}

/* ── Fejléc-zóna: teljes szél, oszlopok fölött ────────────────────────────
 * WP geometria (1920px): container 1140 / belső tartalom-terület 1100 /
 * hero kép 1100 / szövegoszlop 713 / sidebar 367 / gap 20. PONTOSAN ezt visszük. */
body.page-blog .g4blog-header {
    max-width: 1140px;
    margin: 0 auto;
    padding: 32px 20px 0;
}

/* Kategória-meta (WP: fekete uppercase linkek, mint szeparátor) */
body.page-blog .g4blog-cat-meta {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
    margin-bottom: 6px;
}
body.page-blog .g4blog-cat-meta__link {
    color: #000;
    text-decoration: none;
}
body.page-blog .g4blog-cat-meta__link:hover {
    color: #9cddd8; /* WP accent mint */
}

/* Breadcrumb (WP: "Blog G4 » Cím") */
body.page-blog .g4blog-breadcrumb {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 14px;
}
body.page-blog .g4blog-breadcrumb a {
    color: #000;
    text-decoration: none;
}
body.page-blog .g4blog-breadcrumb a:hover {
    text-decoration: underline;
}
body.page-blog .g4blog-breadcrumb .g4blog-breadcrumb__sep {
    margin: 0 6px;
    color: #999;
}
body.page-blog .g4blog-breadcrumb__current {
    color: #666;
}

/* H1 — WP: 30/500/UPPERCASE/#000 */
body.page-blog .blog-title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    color: #000 !important; /* a téma h1{color:var(--headings-color)!important}-ját üti */
    margin: 0 0 24px;
}
@media (max-width: 767px) {
    body.page-blog .blog-title { font-size: 24px; }
}

/* Hero kép — teljes szél, lapos */
body.page-blog .g4blog-header .blog-image {
    margin: 0 0 32px;
}
body.page-blog .g4blog-header .blog-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* ── Két oszlop: tartalom + sidebar (WP: ~713 + ~347) ────────────────────── */
body.page-blog .g4blog-two-col {
    display: grid;
    grid-template-columns: 1fr 367px; /* WP: szövegoszlop 713 + sidebar 367 */
    gap: 20px;                         /* WP gap 20 */
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 48px;
}
body.page-blog .g4blog-main-col {
    min-width: 0;
}
body.page-blog .g4blog-two-col #blogpage {
    max-width: none;
}

/* ── Tartalmi tipográfia (WP-egyező) ─────────────────────────────────────── */
body.page-blog .blog-description {
    font-size: 15px;
    line-height: 1.8; /* WP 27px / 15px */
    color: #666;
}
body.page-blog .blog-description p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 16px;
    color: #666;
}
body.page-blog .blog-description h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: #000 !important;
    margin: 1.4em 0 10px;
}
body.page-blog .blog-description h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    color: #121212 !important;
    margin: 32px 0 24px;
}
body.page-blog .blog-description strong,
body.page-blog .blog-description b {
    font-weight: 700;
    color: #000;
}
body.page-blog .blog-description a {
    color: #000; /* WP: tartalmi link fekete, NINCS accent */
    text-decoration: underline;
}
body.page-blog .blog-description a:hover {
    color: #000;
}
body.page-blog .blog-description img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}
body.page-blog .blog-description figcaption,
body.page-blog .blog-description .wp-caption-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}
body.page-blog .blog-description ul,
body.page-blog .blog-description ol {
    margin: 0 0 16px;
    padding-left: 1.4em;
}
body.page-blog .blog-description li {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 6px;
}

/* ── Meta sor + top "Share" gomb elrejtése (WP-nél nincsenek a fejlécben) ── */
body.page-blog .blog-meta,
body.page-blog .share_button {
    display: none;
}

/* ── Tag pillek — WP: mint bg, szürke szöveg, NINCS körvonal ─────────────── */
body.page-blog .blog-tags {
    clear: both;
    margin: 24px 0;
}
body.page-blog .blog-tags > span {
    display: none; /* WP-nél nincs "Tags:" felirat */
}
body.page-blog .blog-tags a {
    display: inline-block;
    margin: 4px 6px 4px 0;
    vertical-align: middle;
}
body.page-blog .blog-tags a span {
    background: #ecf7f8; /* WP halvány mint */
    color: #90949c;       /* WP szürke-kék */
    font-size: 15px;
    font-weight: 700;
    border: 0;
    border-radius: 2px;
    padding: 4px 12px;
    line-height: 1.4;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}
body.page-blog .blog-tags a:hover span {
    background: #9cddd8;
    color: #fff;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
body.page-blog .g4blog-sidebar {
    position: sticky;
    top: 60px;
    align-self: flex-start;
}
body.page-blog .g4blog-sidebar__widget {
    margin-bottom: 36px;
}
body.page-blog .g4blog-sidebar__title {
    font-size: 15px;       /* WP widget-title 15/700/uppercase/#121212 */
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #121212;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

/* Kategória-lista (WP sidebar link: #000 / 15 / 400) */
body.page-blog .g4blog-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.page-blog .g4blog-cat-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}
body.page-blog .g4blog-cat-list li a {
    font-size: 15px;
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}
body.page-blog .g4blog-cat-list li a:hover {
    color: #9cddd8;
}

/* "In Same Category" — olvasható lista (placeholder thumb ha nincs kép) */
body.page-blog .g4blog-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.page-blog .g4blog-popular-item a {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}
body.page-blog .g4blog-popular-item img,
body.page-blog .g4blog-popular-item__no-thumb {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}
body.page-blog .g4blog-popular-item__no-thumb {
    background: #efefef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}
body.page-blog .g4blog-popular-item__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.page-blog .g4blog-popular-item a:hover .g4blog-popular-item__title {
    color: #9cddd8;
}

/* Follow us */
body.page-blog .g4blog-social-links {
    display: flex;
    gap: 12px;
}
body.page-blog .g4blog-social-links a {
    font-size: 15px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}
body.page-blog .g4blog-social-links a:hover {
    color: #9cddd8;
}
body.page-blog .g4blog-sidebar-close {
    display: none;
}

/* ── Responsive: tablet/mobil — sidebar drawer ───────────────────────────── */
@media (max-width: 1023px) {
    body.page-blog .g4blog-two-col {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 16px 32px;
    }
    body.page-blog .g4blog-header {
        padding: 24px 16px 0;
    }
    body.page-blog .g4blog-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100%;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px 16px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(110%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        order: -1;
    }
    body.g4blog-sidebar-open .g4blog-sidebar {
        transform: translateX(0);
    }
    body.page-blog .g4blog-sidebar-close {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        margin-bottom: 16px;
        color: #2d2d2d;
    }
}

@media (max-width: 767px) {
    body.page-blog .blog-description h2 { font-size: 22px; }
}
