/* ═══════════════════════════════════════════════════════════
   Blog Single Post Styles
   Zelfde hero-stijl als artiestenpagina's
   Met optionele media-sidebar (als er embeds in de content zitten)
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero Banner ────────────────────────────────────────── */
.blog-hero {
    position: relative;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-footer);
}

.blog-hero__overlay {
    display: flex;
    align-items: flex-end;
    min-height: 340px;
    padding: 2.5rem 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.blog-hero__content {
    max-width: 800px;
}

.blog-hero__content h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.25;
}

.blog-hero__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.blog-cat-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: var(--color-gold);
    color: #fff;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-hero__meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

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

    .blog-hero__overlay {
        min-height: 420px;
    }

    .blog-hero__content h1 {
        font-size: 2.8rem;
    }
}

/* ─── Body: standaard (geen sidebar) ─────────────────────── */
.blog-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

/* ─── Body: met sidebar (embeds aanwezig) ────────────────── */
.blog-body--has-sidebar {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .blog-body--has-sidebar {
        grid-template-columns: 5fr 3fr;
    }
}

/* ─── Main Content ───────────────────────────────────────── */
.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
    min-width: 0;
}

.blog-content p + p {
    margin-top: 1.2em;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.blog-content h2:first-child,
.blog-content h3:first-child {
    margin-top: 0;
}

.blog-content ul,
.blog-content ol {
    margin: 1.2em 0 1em;
    padding-left: 1.5rem;
}

.blog-content li + li {
    margin-top: 0.4em;
}

.blog-content blockquote {
    border-left: 3px solid var(--color-gold);
    padding-left: 1.25rem;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-text-light);
}

.blog-content a {
    color: var(--color-gold);
}

.blog-content a:hover {
    text-decoration: underline;
}

/* Inline afbeeldingen in content */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5em 0;
}

.blog-content .wp-caption {
    max-width: 100%;
    margin: 1.5em 0;
}

.blog-content .wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* Strip inline Word styles */
.blog-content span[style] {
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

/* ─── Media Sidebar ──────────────────────────────────────── */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-sidebar .sidebar-block {
    padding: 1.25rem;
    background: #f9f8f6;
    border-radius: 6px;
}

.blog-sidebar .sidebar-block h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

/* Audio embeds — hoogte matchen met artiestenpagina's (500px voor Spotify) */
.blog-audio iframe {
    border-radius: 12px;
    width: 100%;
    min-height: 352px;
}

.blog-audio iframe[src*="spotify"] {
    height: 500px;
}

.blog-audio iframe[src*="bandcamp"] {
    height: 470px;
}

.blog-audio iframe + iframe {
    margin-top: 1rem;
}

/* Video embeds */
.blog-videos iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
}

.blog-videos iframe + iframe {
    margin-top: 1rem;
}

/* WordPress embed wrappers */
.blog-sidebar .wp-block-embed {
    margin: 0;
}

.blog-sidebar .wp-block-embed__wrapper {
    position: relative;
}

.blog-sidebar .wp-block-embed__wrapper iframe {
    width: 100%;
}

/* ─── Post Navigation ────────────────────────────────────── */
.blog-single .post-navigation {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
    border-top: 1px solid var(--color-border);
}

.blog-single .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.blog-single .nav-previous,
.blog-single .nav-next {
    flex: 1;
    min-width: 0;
}

.blog-single .nav-next {
    text-align: right;
}

.blog-single .nav-previous a,
.blog-single .nav-next a {
    display: block;
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 0.78rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.blog-single .nav-previous a:hover,
.blog-single .nav-next a:hover {
    color: var(--color-gold);
}

@media (max-width: 600px) {
    .blog-single .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-single .nav-next {
        text-align: left;
    }
}
