/* ==========================================================================
   G24 — Single Post Styles
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.single-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.single-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease;
}

.single-post .single-hero__bg {
    animation: hero-zoom 8s ease forwards;
}

@keyframes hero-zoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

.single-hero__bg--dark {
    background: #111111;
}

.single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 14, .92) 0%,
        rgba(10, 10, 14, .55) 45%,
        rgba(10, 10, 14, .18) 100%
    );
}

.single-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* ── Category badge ── */
.single-hero__cat {
    display: inline-flex;
    align-items: center;
    background: var(--g24-red, #c30a28);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    text-decoration: none;
    align-self: flex-start;
    transition: background .2s;
}

.single-hero__cat:hover {
    background: var(--g24-red-dark, #a00820);
    color: #fff;
}

/* ── Title ── */
.single-hero__title {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    letter-spacing: -.025em;
    max-width: 880px;
}

/* ── Meta row ── */
.single-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.single-hero__date,
.single-hero__read {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.single-hero__date i,
.single-hero__read i {
    font-size: .78rem;
    opacity: .8;
}

/* ── Article body ─────────────────────────────────────────────────────────── */

.single-body {
    background: #fff;
    padding: 5.5rem 0 7rem;
}

.single-body__inner {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* ── Entry content typography ── */

.single-body .entry-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2a2a2a;
    margin-bottom: 1.75rem;
}

.single-body .entry-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    color: #111111;
    margin: 3.5rem 0 1.25rem;
    letter-spacing: -.02em;
}

.single-body .entry-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    color: #111111;
    margin: 3rem 0 1rem;
}

.single-body .entry-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    margin: 2rem 0 .75rem;
}

.single-body .entry-content ul,
.single-body .entry-content ol {
    margin: 0 0 1.75rem 1.5rem;
    padding: 0;
}

.single-body .entry-content li {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2a2a2a;
    margin-bottom: .5rem;
}

.single-body .entry-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--g24-red, #c30a28);
    background: #f9f9f9;
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.75;
}

.single-body .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-body .entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2.5rem auto;
}

.single-body .entry-content a {
    color: var(--g24-red, #c30a28);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.single-body .entry-content a:hover {
    color: var(--g24-red-dark, #a00820);
}

.single-body .entry-content hr {
    border: none;
    border-top: 1px solid #e4e4e4;
    margin: 3rem 0;
}

.single-body .entry-content pre {
    background: #1a1a1a;
    color: #e8e8e8;
    padding: 1.5rem 1.75rem;
    overflow-x: auto;
    font-size: .9rem;
    line-height: 1.65;
    margin: 2rem 0;
}

.single-body .entry-content code {
    font-size: .88em;
    background: #f2f2f2;
    padding: .15em .4em;
    color: #c30a28;
}

.single-body .entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ── Tags ─────────────────────────────────────────────────────────────────── */

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

.single-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem .9rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.single-tag:hover {
    background: var(--g24-red, #c30a28);
    color: #fff;
}

/* ── Related posts ────────────────────────────────────────────────────────── */

.related-posts {
    background: var(--g24-gray, #f5f5f5);
    padding: 5.5rem 0 7rem;
}

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

/* ── Related card ── */
.related-card {
    background: #fff;
    overflow: hidden;
    transition: transform var(--g24-ease, .3s cubic-bezier(.4,0,.2,1)),
                box-shadow var(--g24-ease, .3s cubic-bezier(.4,0,.2,1));
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
}

.related-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--g24-ease, .3s cubic-bezier(.4,0,.2,1));
}

.related-card:hover .related-card__img {
    transform: scale(1.05);
}

.related-card__body {
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.related-card__cat {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--g24-red, #c30a28);
}

.related-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: .25rem 0 0;
}

.related-card__title a {
    color: var(--g24-black, #111111);
    text-decoration: none;
    transition: color .2s;
}

.related-card__title a:hover {
    color: var(--g24-red, #c30a28);
}

.related-card__date {
    font-size: .68rem;
    color: var(--g24-text-muted, #666);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-top: .5rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .single-hero {
        min-height: 480px;
    }

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

@media (max-width: 768px) {
    .single-hero {
        min-height: 420px;
    }

    .single-hero__title {
        font-size: 1.9rem;
    }

    .single-body {
        padding: 3.5rem 0 5rem;
    }

    .related-posts {
        padding: 3.5rem 0 5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .single-hero {
        height: 380px;
    }

    .single-hero__meta {
        gap: 1rem;
    }

    .single-hero__title {
        font-size: 1.65rem;
    }
}
