/* =========================================================
   Tetőbox Sopron – blog-cikk.css
   Cikksablon (teljes képernyős olvasónézet).
   A színváltozók és alap elemek a style.css-ből jönnek.
   ========================================================= */

/* ---------------------------------------------------------
   Olvasási folyamatjelző
   --------------------------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2000;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
    transition: width 0.1s linear;
}

/* ---------------------------------------------------------
   Fullscreen gomb
   --------------------------------------------------------- */
.fs-toggle {
    position: fixed;
    top: 104px;
    right: 24px;
    z-index: 1400;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.fs-toggle:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.fs-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   Cikk fejléc – teljes szélességű hero
   --------------------------------------------------------- */
.article-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 66vh;
    padding: 150px 0 60px;
    overflow: hidden;
    background: var(--bg-dark);
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.article-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 13, 20, 0.72) 0%,
        rgba(9, 13, 20, 0.45) 35%,
        rgba(9, 13, 20, 0.92) 100%
    );
}

.article-hero .container {
    position: relative;
    z-index: 2;
}

/* Morzsamenü */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-orange);
}

.breadcrumb i {
    font-size: 9px;
    opacity: 0.6;
}

.article-hero-title {
    max-width: 900px;
    font-size: 50px;
    font-weight: 900;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.article-meta .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(9, 13, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: 30px;
}

.article-meta .meta-chip i {
    color: var(--accent-cyan);
    font-size: 12px;
}

.article-meta .meta-chip.is-category {
    color: var(--accent-orange);
    border-color: rgba(255, 107, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 12px;
}

.article-meta .meta-chip.is-category i {
    color: var(--accent-orange);
}

/* ---------------------------------------------------------
   Cikktörzs
   --------------------------------------------------------- */
.article-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 24px 0;
}

.article-lead {
    font-size: 20px;
    line-height: 1.75;
    color: #E2E8F0;
    font-weight: 400;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.article-body {
    font-size: 17px;
    line-height: 1.85;
    color: #CBD5E1;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    position: relative;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin: 48px 0 20px;
    padding-left: 18px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent-orange), var(--accent-cyan));
}

.article-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin: 34px 0 14px;
}

.article-body a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.35);
    transition: var(--transition);
}

.article-body a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.article-body strong {
    color: #fff;
    font-weight: 600;
}

.article-body ul,
.article-body ol {
    margin: 0 0 26px;
    padding-left: 4px;
    list-style: none;
}

.article-body ul li,
.article-body ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-orange);
}

.article-body ol {
    counter-reset: li;
}

.article-body ol li::before {
    counter-increment: li;
    content: counter(li);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: var(--accent-orange);
    font-size: 12px;
    font-weight: 700;
}

/* Kiemelt idézet */
.article-body blockquote {
    margin: 36px 0;
    padding: 24px 28px;
    background: rgba(255, 107, 0, 0.07);
    border-left: 4px solid var(--accent-orange);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #E2E8F0;
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Infó doboz */
.article-note {
    display: flex;
    gap: 16px;
    margin: 36px 0;
    padding: 22px 24px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: var(--radius-md);
}

.article-note > i {
    color: var(--accent-cyan);
    font-size: 18px;
    margin-top: 2px;
}

.article-note p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.75;
}

/* Ábra / kép felirattal */
.article-figure {
    margin: 40px 0;
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.article-figure figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   Cikk láb – vissza a blogra
   --------------------------------------------------------- */
.article-footer {
    max-width: 780px;
    margin: 56px auto 0;
    padding: 0 24px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.article-tags span {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
}

.article-back {
    margin-top: 36px;
}

/* ---------------------------------------------------------
   Kapcsolódó bejegyzések
   --------------------------------------------------------- */
.related-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.related-card {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
}

.related-card:hover {
    border-color: rgba(255, 107, 0, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.related-card img {
    width: 108px;
    height: 82px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.related-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 6px;
}

.related-card span {
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   Fullscreen mód finomhangolás
   --------------------------------------------------------- */
.article-hero:fullscreen {
    min-height: 100vh;
}

/* ---------------------------------------------------------
   Reszponzív
   --------------------------------------------------------- */
@media (max-width: 992px) {
    .article-hero {
        min-height: 54vh;
        padding: 130px 0 44px;
    }

    .article-hero-title {
        font-size: 34px;
    }

    .article-wrap {
        padding-top: 48px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .fs-toggle {
        top: 86px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .article-hero {
        min-height: 48vh;
        padding: 112px 0 36px;
    }

    .article-hero-title {
        font-size: 27px;
    }

    .article-lead {
        font-size: 17px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 23px;
    }

    .article-body blockquote {
        padding: 20px 22px;
        font-size: 16px;
    }

    .related-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-card img {
        width: 100%;
        height: 150px;
    }
}
