/* napelemeshazszam.hu - Fázis 7-10 kiegészítő CSS
   (blog, legal oldalak, kapcsolat, cookie banner, 404)
   Verzió: 2.0 */

/* ====== Blog ====== */
.blog-section { padding: 40px 0 80px; }
.blog-title { color: var(--brown, #6B4423); margin-bottom: 8px; }
.blog-lead { color: #666; margin-bottom: 32px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.blog-card {
    background: #fff;
    border: 1px solid #eee4d6;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.blog-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title { margin: 0 0 8px; font-size: 1.25rem; }
.blog-card-title a { color: var(--brown, #6B4423); text-decoration: none; }
.blog-card-title a:hover { color: var(--copper, #B87333); }
.blog-card-meta { color: #888; font-size: 13px; margin: 0 0 12px; }
.blog-card-excerpt { color: #555; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.blog-card-link { color: var(--copper, #B87333); font-weight: 600; text-decoration: none; }
.blog-card-link:hover { text-decoration: underline; }

.blog-post { padding: 32px 0 80px; }
.blog-post-header { margin-bottom: 24px; }
.blog-post-title { color: var(--brown, #6B4423); margin: 0 0 12px; font-size: 2rem; line-height: 1.25; }
.blog-post-meta { color: #888; font-size: 14px; }
.blog-post-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.blog-post-content { font-size: 17px; line-height: 1.75; color: #2b2013; }
.blog-post-content h2 { color: var(--brown, #6B4423); margin-top: 32px; }
.blog-post-content h3 { color: var(--brown, #6B4423); margin-top: 24px; }
.blog-post-content ul, .blog-post-content ol { padding-left: 24px; }
.blog-post-content a { color: var(--copper, #B87333); }
.blog-post-footer {
    margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee4d6;
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between;
}
.blog-empty { text-align: center; padding: 40px; color: #888; }

/* ====== Legal oldalak (ÁSZF, adatvédelem, garancia, szállítás) ====== */
.legal-section { padding: 40px 0 80px; }
.legal-section h1 { color: var(--brown, #6B4423); }
.legal-section h2 { color: var(--brown, #6B4423); margin-top: 32px; padding-top: 12px; border-top: 1px solid #eee4d6; }
.legal-section h3 { color: var(--brown, #6B4423); margin-top: 20px; }
.legal-updated { color: #888; font-size: 14px; font-style: italic; margin-bottom: 24px; }
.legal-section table {
    width: 100%; border-collapse: collapse; margin: 16px 0;
}
.legal-section th, .legal-section td {
    padding: 10px 12px; border: 1px solid #eee4d6; text-align: left;
}
.legal-section th { background: #FFF8E7; color: var(--brown, #6B4423); }
.legal-section ul, .legal-section ol { padding-left: 24px; line-height: 1.75; }

/* ====== Kapcsolat ====== */
.contact-section { padding: 40px 0 80px; }
.contact-lead { color: #666; margin-bottom: 32px; font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2, .contact-form-wrap h2 { color: var(--brown, #6B4423); margin-top: 0; }
.contact-info p { line-height: 1.7; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
    font-family: inherit; font-size: 15px;
}
.contact-form textarea { font-family: inherit; resize: vertical; }
.contact-form .btn-full { margin-top: 16px; width: 100%; }

/* ====== Cookie banner ====== */
.cookie-banner {
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    background: #fff; border-radius: 12px; padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 9999; max-width: 900px; margin: 0 auto;
    border: 1px solid #eee4d6;
}
.cookie-banner-inner { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; font-size: 14px; line-height: 1.5; color: #333; }
.cookie-banner p a { color: var(--copper, #B87333); }
.cookie-banner-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner-buttons .btn { padding: 8px 16px; font-size: 14px; }

/* ====== 404 / error ====== */
.error-section { min-height: 50vh; display: flex; align-items: center; }

/* ====== Alert success ====== */
.alert-success {
    background: #d4f1d4; color: #0a5d0a; padding: 14px 16px;
    border-radius: 8px; border: 1px solid #a8d4a8; margin-bottom: 20px;
}


/* === FoxPost automata picker === */
.foxpost-picker { margin-top: 1rem; padding: 1rem; background: #FFF8E7; border-left: 4px solid #FF6600; border-radius: 6px; }
.foxpost-picker-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.foxpost-selected { flex: 1 1 200px; min-width: 0; font-size: 0.95em; }
.foxpost-selected strong { display: block; color: #6B4423; font-size: 0.85em; }
.foxpost-selected small { color: #777; }
.foxpost-picker.has-error { border-left-color: #d00; }

.foxpost-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 1rem; }
.foxpost-modal { background: #fff; border-radius: 10px; max-width: 560px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; }
.foxpost-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #eee; }
.foxpost-modal-header h3 { margin: 0; color: #6B4423; font-size: 1.1rem; }
.foxpost-close { background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: #777; line-height: 1; padding: 0 0.25rem; }
.foxpost-close:hover { color: #000; }
.foxpost-modal-body { padding: 1rem 1.25rem; overflow-y: auto; }
.foxpost-modal-body input[type=search] { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; margin-bottom: 0.75rem; box-sizing: border-box; }
.foxpost-list { display: flex; flex-direction: column; gap: 0.4rem; }
.foxpost-item { display: block; width: 100%; text-align: left; padding: 0.6rem 0.8rem; background: #f7f4ef; border: 1px solid transparent; border-radius: 6px; cursor: pointer; position: relative; font-family: inherit; }
.foxpost-item:hover { background: #ffe9d0; border-color: #FF6600; }
.foxpost-item strong { color: #6B4423; }
.foxpost-item small { color: #555; }
.foxpost-item .foxpost-code { position: absolute; top: 0.4rem; right: 0.6rem; background: #FF6600; color: #fff; font-size: 0.7em; padding: 0.1rem 0.4rem; border-radius: 4px; }
.foxpost-manual label { display: block; margin: 0.5rem 0; }
.foxpost-manual input { width: 100%; padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; margin-top: 0.25rem; }

@media (max-width: 560px) {
    .foxpost-modal { max-height: 100vh; height: 100vh; border-radius: 0; }
    .foxpost-picker-row { flex-direction: column; align-items: stretch; }
    .foxpost-picker-row .btn { width: 100%; }
}

/* ====== Karakter-képek (digits/) — konfigurátor, kosár, visszaigazolás ====== */
.digit-img {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

/* Konfigurátor gomb kártya — kép */
.digit-card-img {
    display: block;
    width: 100%;
    max-width: 110px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
    transition: transform 0.18s ease;
}
.digit-card:hover .digit-card-img { transform: translateY(-2px) scale(1.03); }
.digit-card-letter .digit-card-label { color: #B87333; font-weight: 700; }

/* Konfigurátor fal előnézet */
.preview-digits .preview-digit.digit-img {
    width: auto;
    height: 88px;
    background: none !important;
    text-shadow: none;
    border: none;
}

/* Kosár preview fal */
.cart-preview-digits .cart-preview-digit.digit-img { height: 72px; width: auto; }

/* Kosár egyes tétel vizuál */
.cart-item-visual .digit-img { height: 64px; width: auto; }

/* Visszaigazolás oldali mini-preview */
.order-preview-digits .order-preview-digit.digit-img { height: 56px; width: auto; }

/* Kiválasztott lista (konfigurátor jobb oldal) */
.selected-item-digit.digit-img { height: 36px; width: auto; }

@media (max-width: 640px) {
    .digit-card-img { max-width: 80px; }
    .preview-digits .preview-digit.digit-img { height: 62px; }
    .cart-preview-digits .cart-preview-digit.digit-img { height: 52px; }
}

/* ====== Főoldal: termékbemutató kép (showcase) ====== */
/* A "8"-as számot barna keret nélkül, de nagy méretben — kitölti azt a területet, amit korábban a barna doboz foglalt el */
.product-showcase .image-frame {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    aspect-ratio: 4 / 5;          /* megőrzi a régi doboz arányát, hogy a layout ne ugorjon */
    overflow: visible !important;
}
.product-showcase .image-frame::before {
    content: none !important;
    display: none !important;
}
.showcase-product-img {
    display: block;
    width: auto;
    height: 100%;                 /* a kép kitölti a frame magasságát = akkora mint a régi doboz */
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.45));
    /* Saját kompozit-réteg, hogy a környező FAQ/layout reflow ne okozzon villanást a drop-shadow újrarasztrálása miatt */
    will-change: filter;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ====== Termékoldal: galéria főkép – ugyanígy keret nélkül, nagy méret ====== */
.product-gallery-main {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.product-gallery-main::before {
    content: none !important;
    display: none !important;
}
.product-gallery-img {
    display: block;
    width: auto;
    height: 100%;                 /* kitölti az 1:1 arányú frame magasságát = akkora mint a régi barna doboz */
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 32px rgba(0,0,0,0.45));
    /* Saját kompozit-réteg — megakadályozza a drop-shadow villogást amikor lent egy FAQ-elem nyílik/zárul */
    will-change: filter;
    transform: translateZ(0);
    backface-visibility: hidden;
}
/* A galéria fő-konténer is saját réteg legyen, hogy az egész területet egyszerre tudja a böngésző újrarajzolni */
.product-gallery-main {
    contain: layout paint;
}
/* Ugyanígy a főoldali showcase-image is */
.product-showcase .showcase-image {
    contain: layout paint;
}
.product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.product-gallery-thumbs .product-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 80px;
    padding: 4px;
    background: #fff;
    border: 2px solid #e5e0d5;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s;
}
.product-gallery-thumbs .product-thumb:hover { border-color: #B87333; }
.product-gallery-thumbs .product-thumb.active { border-color: #B87333; box-shadow: 0 2px 8px rgba(184,115,51,0.3); }
.product-gallery-thumbs .product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ====== Kosár tétel vizuál — kép és szöveg-fallback egyaránt szép legyen ====== */
/* Ha kép van benne, a sötét gradient háttér és LED glow-textshadow felesleges/rontja */
.cart-item-visual:has(.digit-img) {
    background: transparent;
    text-shadow: none;
    padding: 2px;
}
.cart-item-visual .digit-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ====== Mobile (< 768px) kosár finomhangolás ====== */
/* A meglévő style.css-ben már van grid-area layout 768px alatt;
   itt csak finomítunk és biztonsági overrideok nélkül. */
@media (max-width: 768px) {
    /* Preview fal — képek nálunk */
    .cart-preview-digits {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .cart-preview-digits .cart-preview-digit.digit-img { height: 56px; }

    .cart-item-visual .digit-img { max-height: 70px; }

    /* Mennyiség + ár sor ne lógjon ki */
    .cart-item-price { font-size: 1rem; text-align: right; }
}

@media (max-width: 480px) {
    /* Nagyon kis képernyőn áttérünk 2-soros elrendezésre:
       sor 1: kép | cím + törlés
       sor 2: menny | ár  */
    .cart-item {
        grid-template-columns: 56px 1fr auto !important;
        grid-template-areas:
            "visual info   remove"
            "visual qty    price" !important;
        gap: 0.6rem !important;
    }
    .cart-item-visual { width: 56px !important; height: 70px !important; }
    .cart-item-visual .digit-img { max-height: 60px; }
    .cart-item-info h3 { font-size: 0.95rem; }
    .cart-item-sub { font-size: 0.78rem; }
    .cart-preview-digits .cart-preview-digit.digit-img { height: 42px; }

    .showcase-product-img { height: auto; width: 100%; max-width: 100%; }
    .product-gallery-img { height: auto; width: 100%; max-width: 100%; }
    .product-gallery-thumbs .product-thumb { width: 48px; height: 60px; }
}

/* ===========================================================================
   BLOG LISTAOLDAL (/blog/)
   =========================================================================== */
.blog-section {
    padding: 3rem 0 5rem;
}
.blog-section .blog-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 0.5rem;
    color: var(--dark-brown, #3a2515);
}
.blog-section .blog-lead {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 2.5rem;
    max-width: 640px;
}
.blog-section .blog-empty {
    padding: 3rem;
    text-align: center;
    color: #888;
    background: #faf8f5;
    border-radius: 12px;
}
.blog-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.blog-section .blog-card {
    background: #fff;
    border: 1px solid #ece8e2;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-section .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-brown, #6b4423);
}
.blog-section .blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #f4f1ed;
}
.blog-section .blog-card-body {
    padding: 1.4rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}
.blog-section .blog-card-title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0;
    color: var(--dark-brown, #3a2515);
}
.blog-section .blog-card-title a {
    color: inherit;
    text-decoration: none;
}
.blog-section .blog-card-title a:hover { color: var(--primary-brown, #6b4423); }
.blog-section .blog-card-meta {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}
.blog-section .blog-card-excerpt {
    color: #555;
    line-height: 1.55;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}
.blog-section .blog-card-link {
    align-self: flex-start;
    margin-top: 0.4rem;
    color: var(--primary-brown, #6b4423);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.blog-section .blog-card-link:hover {
    border-bottom-color: var(--primary-brown, #6b4423);
}

/* ===========================================================================
   BLOG POSZT OLDAL (/blog/<slug>/)
   =========================================================================== */
.blog-post {
    padding: 2.5rem 0 4rem;
}
.blog-post .container-narrow {
    max-width: 800px;
}
.blog-post-header {
    text-align: center;
    margin: 0 0 2.5rem;
}
.blog-post-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.25;
    margin: 0 0 1rem;
    color: var(--dark-brown, #3a2515);
}
.blog-post-meta {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}
.blog-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin: 0 auto 2.5rem;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

/* A cikk-content tipográfia */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2c2620;
}
.blog-post-content > * + * { margin-top: 1.1em; }
.blog-post-content h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-top: 2.4em;
    margin-bottom: 0.6em;
    color: var(--dark-brown, #3a2515);
    border-bottom: 2px solid #ece8e2;
    padding-bottom: 0.4em;
}
.blog-post-content h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-top: 1.8em;
    margin-bottom: 0.4em;
    color: var(--primary-brown, #6b4423);
}
.blog-post-content p { margin: 1.1em 0; }
.blog-post-content ul,
.blog-post-content ol { margin: 1.1em 0; padding-left: 1.6em; }
.blog-post-content li { margin: 0.4em 0; }
.blog-post-content a:not(.btn) {
    color: var(--primary-brown, #6b4423);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.blog-post-content a:not(.btn):hover {
    color: var(--dark-brown, #3a2515);
    text-decoration-thickness: 2px;
}
/* A cikkben szereplő gombok megőrzik az eredeti btn-stílusukat (fehér szöveg, nincs aláhúzás) */
.blog-post-content a.btn {
    text-decoration: none;
    color: #fff;
}
.blog-post-content a.btn-primary,
.blog-post-content a.btn-primary:hover {
    color: #fff;
    text-decoration: none;
}
.blog-post-content a.btn-secondary {
    color: var(--primary-brown, #6b4423);
    text-decoration: none;
}
.blog-post-content a.btn-secondary:hover { color: #fff; }
/* Long button text ne lógjon ki mobilon */
.blog-post-content .article-cta .btn,
.blog-post-content .article-related .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}
@media (max-width: 640px) {
    .blog-post-content .article-cta .btn,
    .blog-post-content .article-related .btn {
        width: 100%;
        padding: 0.95rem 1rem;
        font-size: 0.98rem;
    }
}
.blog-post-content strong { color: var(--dark-brown, #3a2515); }
.blog-post-content blockquote {
    margin: 1.6em 0;
    padding: 1rem 1.4rem;
    border-left: 4px solid var(--primary-brown, #6b4423);
    background: #faf6f1;
    color: #3a2c20;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* ----- TL;DR doboz ----- */
.blog-post-content .article-tldr {
    background: linear-gradient(135deg, #fff8ec 0%, #fdf1d9 100%);
    border: 1px solid #f0d9a3;
    border-left: 5px solid #c89030;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin: 0 0 2.2em;
    font-size: 0.98rem;
    line-height: 1.65;
}
.blog-post-content .article-tldr strong:first-child {
    display: block;
    margin-bottom: 0.4em;
    color: #8a5a10;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ----- Képek (figure) ----- */
.blog-post-content .article-figure {
    margin: 2em 0;
    text-align: center;
}
.blog-post-content .article-figure img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    background: #f4f1ed;
}
.blog-post-content .article-figure figcaption {
    margin-top: 0.8em;
    color: #777;
    font-size: 0.9rem;
    font-style: italic;
}

/* ----- Táblázat ----- */
.blog-post-content .article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.blog-post-content .article-table thead {
    background: var(--primary-brown, #6b4423);
    color: #fff;
}
.blog-post-content .article-table thead th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--dark-brown, #3a2515);
}
.blog-post-content .article-table tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #ece8e2;
    vertical-align: top;
}
.blog-post-content .article-table tbody tr:nth-child(even) { background: #faf8f5; }
.blog-post-content .article-table tbody tr:hover { background: #f5efe7; }
.blog-post-content .article-table tbody tr:last-child td { border-bottom: none; }
/* Mobilon görgethető táblázat */
@media (max-width: 640px) {
    .blog-post-content .article-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ----- Callout (info doboz) ----- */
.blog-post-content .article-callout {
    background: #f0f7ff;
    border: 1px solid #c7dcf2;
    border-left: 5px solid #2f6fbf;
    border-radius: 10px;
    padding: 1rem 1.3rem;
    margin: 1.6em 0;
    font-size: 0.97rem;
    line-height: 1.6;
}
.blog-post-content .article-callout strong:first-child {
    display: block;
    margin-bottom: 0.3em;
    color: #1f4d8a;
}

/* ----- FAQ szekció ----- */
.blog-post-content .article-faq {
    margin: 3em 0 1em;
    padding: 1.6rem 0 0;
    border-top: 2px solid #ece8e2;
}
.blog-post-content .article-faq h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
}
.blog-post-content .article-faq .faq-item {
    background: #fff;
    border: 1px solid #ece8e2;
    border-radius: 10px;
    margin: 0.8em 0;
    padding: 0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-post-content .article-faq .faq-item[open] {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-color: var(--primary-brown, #6b4423);
}
.blog-post-content .article-faq .faq-item > summary {
    cursor: pointer;
    padding: 1rem 1.3rem;
    font-weight: 600;
    color: var(--dark-brown, #3a2515);
    font-size: 1.02rem;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    user-select: none;
}
.blog-post-content .article-faq .faq-item > summary::-webkit-details-marker { display: none; }
.blog-post-content .article-faq .faq-item > summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--primary-brown, #6b4423);
    font-weight: 400;
    transition: transform 0.25s ease;
}
.blog-post-content .article-faq .faq-item[open] > summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.blog-post-content .article-faq .faq-item > summary:hover {
    background: #faf6f1;
    border-radius: 10px;
}
.blog-post-content .article-faq .faq-item > p,
.blog-post-content .article-faq .faq-item > div {
    padding: 0 1.3rem 1.1rem;
    margin: 0;
    color: #4a4035;
    line-height: 1.65;
}

/* ----- Szerző-blokk ----- */
.blog-post-content .article-author {
    margin: 2.5em 0 1em;
    padding: 1rem 1.3rem;
    background: #faf8f5;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #666;
    border-left: 3px solid var(--primary-brown, #6b4423);
}
.blog-post-content .article-author p { margin: 0; }

/* ----- Kapcsolódó cikkek + CTA ----- */
.blog-post-content .article-related {
    margin: 2.5em 0 0;
    padding: 1.6rem;
    background: linear-gradient(135deg, #faf6f1 0%, #f3ebdf 100%);
    border-radius: 12px;
    text-align: left;
}
.blog-post-content .article-related h3 {
    margin-top: 0;
    color: var(--dark-brown, #3a2515);
}
.blog-post-content .article-related ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
}
.blog-post-content .article-related li { margin: 0.5em 0; }
.blog-post-content .article-related li a {
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-brown, #6b4423);
}
.blog-post-content .article-related li a:hover {
    border-bottom-style: solid;
    border-bottom-width: 2px;
}
.blog-post-content .article-cta {
    text-align: center;
    margin: 1.4em 0 0;
}
/* Garantált fehér szöveg a kapcsolódó cikkek CTA gombján — bármilyen
   felülíró szabályt elkerülünk, hogy a gombszöveg mindig olvasható maradjon. */
.blog-post-content .article-cta a.btn,
.blog-post-content .article-cta a.btn-primary,
.blog-post-content .article-cta a.btn-primary:hover,
.blog-post-content .article-cta a.btn-primary:focus,
.blog-post-content .article-cta a.btn-primary:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}
.blog-post-content .article-related .article-cta a.btn-primary {
    background: var(--accent-copper, #B87333);
    border-color: var(--accent-copper, #B87333);
}
.blog-post-content .article-related .article-cta a.btn-primary:hover {
    background: var(--accent-copper-dark, #9a5d27);
    border-color: var(--accent-copper-dark, #9a5d27);
}

/* Footer (vissza-gombok) */
.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ece8e2;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Mobil tördelés a poszthoz */
@media (max-width: 640px) {
    .blog-post-content { font-size: 1rem; }
    .blog-post-content h2 { font-size: 1.35rem; }
    .blog-post-content h3 { font-size: 1.12rem; }
    .blog-post-content .article-tldr { padding: 1rem 1.1rem; }
    .blog-post-content .article-related { padding: 1.2rem; }
    .blog-post-footer { flex-direction: column; }
    .blog-post-footer .btn { width: 100%; text-align: center; }
}

/* ============================================================
   Topic Cluster: pillar callout / return blokkok cikkekben
   ============================================================ */
.article-pillar-callout,
.article-pillar-return {
    background: #f4f1ed;
    border-left: 4px solid #6B4423;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    font-size: 0.97rem;
}
.article-pillar-callout p,
.article-pillar-return p {
    margin: 0;
    line-height: 1.6;
}
.article-pillar-return {
    background: #fff8ee;
    border-left-color: #d49a3a;
}
.article-pillar-callout a,
.article-pillar-return a {
    color: #6B4423;
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   /temak/ – Tudástár (topic hub) oldal
   ============================================================ */
.topic-hub { padding: 2rem 0 4rem; }
.topic-hub-header { text-align: center; margin-bottom: 2.5rem; }
.topic-hub-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #6B4423;
    margin: 0 0 0.75rem;
}
.topic-hub-lead {
    font-size: 1.1rem;
    color: #555;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
}
.topic-section {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e8e3dc;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.topic-section-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #efeae3;
}
.topic-section-icon {
    font-size: 2rem;
    line-height: 1;
    flex: 0 0 auto;
}
.topic-section-title {
    font-size: 1.4rem;
    color: #6B4423;
    margin: 0 0 0.25rem;
}
.topic-section-desc {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}
.topic-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
/* Ha csak 1 cikk van a kategóriában, vízszintes "feature" card */
.topic-post-list:has(.topic-post-item:only-child) {
    grid-template-columns: 1fr;
}
.topic-post-list:has(.topic-post-item:only-child) .topic-post-link {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.3rem;
}
.topic-post-list:has(.topic-post-item:only-child) .topic-post-cta {
    white-space: nowrap;
    padding: 0.55rem 1rem;
    background: #6B4423;
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
}
.topic-post-list:has(.topic-post-item:only-child) .topic-post-link:hover .topic-post-cta {
    background: #d49a3a;
}
.topic-post-item { margin: 0; }
.topic-post-link {
    display: block;
    padding: 1.1rem 1.2rem;
    background: #faf8f4;
    border: 1px solid #ece6dd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    height: 100%;
}
.topic-post-link:hover {
    transform: translateY(-2px);
    border-color: #d49a3a;
    background: #fff;
    box-shadow: 0 8px 20px rgba(107,68,35,0.12);
}
.topic-post-title {
    font-size: 1.08rem;
    color: #6B4423;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}
.topic-post-excerpt {
    font-size: 0.92rem;
    color: #555;
    margin: 0 0 0.75rem;
    line-height: 1.55;
}
.topic-post-cta {
    color: #d49a3a;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-block;
}

/* ===== ZÁRÓ CTA — markáns, brand-színű ===== */
.topic-hub-cta {
    margin-top: 3.5rem;
    padding: 2.5rem 2rem;
    background:
        radial-gradient(ellipse at top left, rgba(212,154,58,0.25) 0%, transparent 60%),
        linear-gradient(135deg, #6B4423 0%, #4a2f18 100%);
    border-radius: 14px;
    text-align: center;
    color: #fff;
    box-shadow: 0 12px 30px rgba(58,37,21,0.25);
    position: relative;
    overflow: hidden;
}
.topic-hub-cta::before {
    content: "☀️";
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    opacity: 0.07;
    transform: rotate(15deg);
    pointer-events: none;
}
.topic-hub-cta h2 {
    color: #fff;
    margin: 0 0 0.75rem;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    position: relative;
}
.topic-hub-cta p {
    color: #f4e9d8;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 1rem;
    position: relative;
}
.topic-hub-cta a {
    color: #ffd99a;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.topic-hub-cta a:hover { color: #fff; }
.topic-hub-cta .btn {
    margin: 0.35rem;
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}
.topic-hub-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.topic-hub-cta .btn-primary {
    background: #d49a3a;
    color: #fff;
    border: none;
}
.topic-hub-cta .btn-primary:hover {
    background: #e0a94a;
}
.topic-hub-cta .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.topic-hub-cta .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

/* ============================================================
   /szerzo/ – Szerző-oldal (E-E-A-T)
   ============================================================ */
.author-page {
    padding: 2.5rem 0 5rem;
    background:
        radial-gradient(ellipse at top, rgba(212, 154, 58, 0.08) 0%, transparent 60%),
        #fdfaf4;
}
.author-page .container-narrow {
    max-width: 880px;
}

/* ----- Fejléc kártya ----- */
.author-header {
    text-align: center;
    background: #fff;
    border: 1px solid #ece6dd;
    border-radius: 16px;
    padding: 2.5rem 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(107, 68, 35, 0.06);
    position: relative;
}
.author-header::before {
    content: "✍";
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #B87333 0%, #6B4423 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(107, 68, 35, 0.25);
}
.author-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: #3a2515;
    margin: 0.6rem 0 0.4rem;
    line-height: 1.2;
}
.author-role {
    display: inline-block;
    color: #6B4423;
    background: rgba(184, 115, 51, 0.1);
    border-radius: 999px;
    padding: 0.25rem 0.85rem;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    margin: 0 0 1.1rem;
}
.author-lead {
    font-size: 1.05rem;
    color: #4a3a28;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ----- Szakasz-kártyák ----- */
.author-bio,
.author-expertise,
.author-sources,
.author-posts,
.author-contact {
    background: #fff;
    border: 1px solid #ece6dd;
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
    margin: 1.4rem 0;
    box-shadow: 0 2px 10px rgba(107, 68, 35, 0.04);
}
.author-bio h2,
.author-expertise h2,
.author-sources h2,
.author-posts h2,
.author-contact h2 {
    color: #6B4423;
    margin: 0 0 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.author-bio h2::before        { content: "📖"; font-size: 1.05rem; }
.author-expertise h2::before  { content: "🎯"; font-size: 1.05rem; }
.author-sources h2::before    { content: "📚"; font-size: 1.05rem; }
.author-posts h2::before      { content: "📝"; font-size: 1.05rem; }
.author-contact h2::before    { content: "✉"; font-size: 1.05rem; }

.author-bio p {
    margin: 0 0 0.85em;
    line-height: 1.7;
    color: #3a2515;
}
.author-bio p:last-child { margin-bottom: 0; }
.author-bio a {
    color: #B87333;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.author-bio a:hover { color: #6B4423; }
.author-bio strong { color: #3a2515; }

/* ----- Szakterület + források lista (kártyás listaelemek) ----- */
.author-expertise ul,
.author-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}
.author-expertise li,
.author-sources li {
    position: relative;
    padding: 0.65rem 0.85rem 0.65rem 2.1rem;
    background: #faf6ef;
    border-radius: 8px;
    border-left: 3px solid #B87333;
    line-height: 1.55;
    color: #3a2515;
}
.author-expertise li::before {
    content: "✓";
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: #B87333;
    font-weight: 700;
}
.author-sources li {
    border-left-color: #6B4423;
    background: #f7f3eb;
    font-size: 0.95rem;
}
.author-sources li::before {
    content: "📄";
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

/* ----- Cikkek listája ----- */
.author-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.author-post-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f1ece4;
}
.author-post-list li:last-child { border-bottom: none; }
.author-post-list a {
    color: #6B4423;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.author-post-list a strong {
    font-size: 1.05rem;
    color: #3a2515;
    line-height: 1.35;
}
.author-post-list a:hover strong {
    color: #B87333;
    text-decoration: underline;
}
.author-post-date {
    color: #999;
    font-size: 0.85rem;
    background: #faf6ef;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    margin-left: 0;
}
.author-post-list p {
    margin: 0.45rem 0 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ----- Kapcsolat ----- */
.author-contact p {
    margin: 0;
    line-height: 1.65;
    color: #3a2515;
}
.author-contact a {
    color: #B87333;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.author-contact a:hover { color: #6B4423; }

/* ----- Mobil ----- */
@media (max-width: 640px) {
    .author-page { padding: 2rem 0 4rem; }
    .author-header { padding: 2rem 1.1rem 1.5rem; }
    .author-bio,
    .author-expertise,
    .author-sources,
    .author-posts,
    .author-contact {
        padding: 1.25rem 1.1rem;
        border-radius: 12px;
    }
    .author-bio h2,
    .author-expertise h2,
    .author-sources h2,
    .author-posts h2,
    .author-contact h2 {
        font-size: 1.15rem;
    }
}

/* ============================================================
   /temak/ – Pillar hub kiegészítő blokkok
   (intro, paths, glossary, faq)
   ============================================================ */
.topic-intro {
    background: linear-gradient(135deg, #fff8ee 0%, #f9f5ee 100%);
    border-radius: 12px;
    padding: 1.75rem 1.75rem 1.5rem;
    margin: 0 0 2.5rem;
    border: 1px solid #ece6dd;
}
.topic-intro h2 {
    color: #6B4423;
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
}
.topic-intro p {
    line-height: 1.65;
    color: #444;
    margin: 0 0 1rem;
}
.topic-intro-facts {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.6rem;
    font-size: 0.94rem;
    color: #444;
}
.topic-intro-facts li {
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid #ece6dd;
    border-radius: 8px;
    line-height: 1.4;
}
.topic-intro-cta { margin-top: 1.25rem !important; }

.topic-paths {
    margin: 0 0 2.5rem;
}
.topic-paths > h2 {
    color: #6B4423;
    text-align: center;
    margin: 0 0 1.25rem;
}
.topic-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.topic-path-card {
    position: relative;
    padding: 1.25rem 1.25rem 1rem;
    background: #fff;
    border: 1px solid #e8e3dc;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform .15s ease, box-shadow .15s ease;
}
.topic-path-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107,68,35,0.10);
}
.topic-path-num {
    position: absolute;
    top: -12px;
    left: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d49a3a;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.topic-path-card h3 {
    color: #6B4423;
    margin: 0.25rem 0 0.5rem;
    font-size: 1.1rem;
}
.topic-path-card p {
    color: #555;
    line-height: 1.55;
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}
.topic-path-link a {
    color: #d49a3a;
    font-weight: 600;
    text-decoration: none;
}
.topic-path-link a:hover { text-decoration: underline; }

.topic-articles-heading {
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ece6dd;
    color: #6B4423;
}

.topic-glossary {
    background: #faf8f4;
    border: 1px solid #ece6dd;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
}
.topic-glossary h2 {
    color: #6B4423;
    margin: 0 0 1rem;
    font-size: 1.3rem;
}
.topic-glossary-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem 1.5rem;
}
.topic-glossary-list dt {
    font-weight: 700;
    color: #6B4423;
    margin-top: 0.5rem;
}
.topic-glossary-list dd {
    margin: 0.15rem 0 0.4rem;
    color: #555;
    line-height: 1.55;
    font-size: 0.93rem;
}

.topic-faq {
    margin: 2.5rem 0;
}
.topic-faq h2 {
    color: #6B4423;
    margin: 0 0 1rem;
}

/* ====== Mobil sticky összegző sáv (konfigurátor) ====== */
.mobile-summary-bar {
    display: none;
}
@media (max-width: 900px) {
    .mobile-summary-bar:not([hidden]) {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 950;
        align-items: center;
        gap: 0.75rem;
        padding: 0.7rem 0.9rem;
        background: linear-gradient(180deg, #fff 0%, #faf6ef 100%);
        border-top: 1px solid rgba(107, 68, 35, 0.18);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    }
    .mobile-summary-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        line-height: 1.2;
    }
    .mobile-summary-digits {
        font-weight: 800;
        font-size: 1.05rem;
        color: #6B4423;
        letter-spacing: 0.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-summary-meta {
        font-size: 0.85rem;
        color: #555;
    }
    .mobile-summary-meta strong {
        color: #6B4423;
    }
    .mobile-summary-cta {
        flex-shrink: 0;
        padding: 0.7rem 1.1rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    /* Ne fedje le a sáv az utolsó tartalmat */
    body:has(.mobile-summary-bar:not([hidden])) {
        padding-bottom: 78px;
    }
}

/* ====== Scroll-to-top gomb ====== */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #6B4423;
    color: #fff;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
    z-index: 940;
}
.scroll-to-top:hover { background: #B87333; }
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media (max-width: 900px) {
    .scroll-to-top {
        bottom: 88px; /* mobil sticky bar fölé */
        right: 14px;
        width: 42px;
        height: 42px;
    }
    body:not(:has(.mobile-summary-bar:not([hidden]))) .scroll-to-top {
        bottom: 16px;
    }
}
