/*
 * Blog/Nieuws — archive + single styling
 *
 * Hergebruikt design-tokens uit tokens.css (cards, transitions, section
 * padding). Aparte CSS file conform CLAUDE.md regel: nieuwe template
 * type = eigen file + conditional enqueue.
 */

/* ==========================================================================
 * HERO — compact, vergelijkbaar met subdienst-v2 hero
 * ========================================================================== */
.hero--blog {
    display: block;
    min-height: auto;
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--border);
}
.blog-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--pad);
    text-align: left;
}
.hero--blog .hero-headline {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 16px;
}
.hero--blog .hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 600px;
    margin: 0;
}

/* ==========================================================================
 * CATEGORIE CHIPS
 * ========================================================================== */
.blog-cats {
    border-bottom: 1px solid var(--border);
    background: var(--dark);
}
.blog-cats__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px var(--pad);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.blog-cats__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--dark-card);
    text-decoration: none;
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 600;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.blog-cats__chip:hover {
    background: var(--dark2);
    border-color: var(--pink);
    color: var(--text);
}
.blog-cats__chip--active {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
    cursor: default;
}

/* ==========================================================================
 * GRID + POST CARDS — gebruikt --card-* tokens
 * ========================================================================== */
.blog-grid-section {
    padding: var(--section-pad-y) 0;
}
.blog-grid-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--card-transition);
}
.blog-card:hover {
    transform: var(--card-lift);
    box-shadow: var(--card-shadow-hover);
}
/* Werkt voor zowel <img> (echte featured image) als <div> (placeholder) — img
   krijgt object-fit cover, div valt terug op background-color/-image. */
.blog-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background-color: var(--dark2);
}
.blog-card__img--placeholder {
    background-image: linear-gradient(135deg, rgba(196, 0, 88, 0.18), rgba(99, 22, 85, 0.12));
    background-size: cover;
    background-position: center;
}
.blog-card__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.blog-card__cat {
    color: var(--pink);
}
.blog-card__date {
    color: var(--text-faint);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
}
.blog-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--text);
    margin: 0 0 12px;
}
.blog-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-faint);
    margin: 0 0 18px;
    flex: 1;
}
.blog-card__arrow {
    color: var(--pink);
    transition: transform var(--t-fast);
    align-self: flex-start;
}
.blog-card:hover .blog-card__arrow {
    transform: translate(4px, -4px);
}

/* ==========================================================================
 * PAGINATION
 * ========================================================================== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 64px;
}
.blog-pagination__item .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--dark-card);
    color: var(--text-faint);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.blog-pagination__item .page-numbers:hover {
    background: var(--dark2);
    border-color: var(--pink);
    color: var(--text);
}
.blog-pagination__item .page-numbers.current {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
}
.blog-pagination__item .page-numbers.dots {
    border: none;
    background: transparent;
}

.blog-empty {
    text-align: center;
    color: var(--text-faint);
    font-size: 16px;
    padding: 80px 0;
}

/* ==========================================================================
 * SINGLE POST — hero met featured image
 * ========================================================================== */
.post-hero {
    position: relative;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
}
.post-hero--no-image {
    background: linear-gradient(135deg, rgba(196, 0, 88, 0.2), rgba(10, 10, 10, 0.95));
    min-height: 40vh;
}
.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.85) 100%);
}
.post-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px var(--pad) 56px;
    width: 100%;
}
.post-hero__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--pink);
    padding: 6px 12px;
    border-radius: 2px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background var(--t-fast);
}
.post-hero__cat:hover {
    background: #a8004c;
}
.post-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #fff;
    margin: 0 0 18px;
    text-transform: none;
}
.post-hero__lead {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px;
    max-width: 700px;
}
.post-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}
.post-hero__sep {
    opacity: 0.5;
}

/* ==========================================================================
 * SINGLE POST — body (smal max-width voor leesbaarheid)
 * ========================================================================== */
.post-body {
    padding: var(--section-pad-y-sm) 0;
    border-bottom: 1px solid var(--border);
}
.post-body__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--pad);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-subtle);
}
.post-body__inner p {
    margin: 0 0 24px;
}
.post-body__inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text);
    margin: 48px 0 16px;
    line-height: 1.2;
}
.post-body__inner h3 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--text);
    margin: 36px 0 12px;
    line-height: 1.3;
}
.post-body__inner a {
    color: var(--pink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-body__inner a:hover {
    text-decoration: none;
}
.post-body__inner strong {
    color: var(--text);
    font-weight: 700;
}
.post-body__inner ul,
.post-body__inner ol {
    margin: 0 0 28px;
    padding-left: 24px;
}
.post-body__inner li {
    margin-bottom: 8px;
}
.post-body__inner blockquote {
    margin: 32px 0;
    padding: 8px 0 8px 24px;
    border-left: 3px solid var(--pink);
    font-style: italic;
    color: var(--text);
}
.post-body__inner img {
    max-width: 100%;
    height: auto;
    border-radius: var(--card-radius);
    margin: 32px 0;
    display: block;
}
.post-body__inner pre,
.post-body__inner code {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
}
.post-body__inner pre {
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
}
.post-body__inner code {
    padding: 2px 6px;
}
.post-body__inner pre code {
    background: none;
    border: none;
    padding: 0;
}

/* Pull-quote / callout binnen artikel */
.post-callout {
    position: relative;
    margin: 48px 0;
    padding: 32px 32px 32px 64px;
    background: var(--dark-card);
    border-left: 3px solid var(--pink);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}
.post-callout__mark {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 48px;
    color: var(--pink);
    line-height: 1;
    font-family: serif;
}
.post-callout strong {
    color: var(--pink);
}

/* ==========================================================================
 * SINGLE POST — footer (share + author)
 * ========================================================================== */
.post-footer {
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}
.post-footer__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}
.post-share {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.post-share__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-faint);
}
.post-share {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.post-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 1px solid var(--border);
    color: var(--text-faint);
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.post-share__link:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
}
.post-author {
    padding-left: 24px;
    border-left: 1px solid var(--border);
}
.post-author__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.post-author__name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.post-author__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-faint);
    margin: 0;
}

/* ==========================================================================
 * GERELATEERDE POSTS
 * ========================================================================== */
.post-related {
    padding: var(--section-pad-y) 0;
    border-bottom: 1px solid var(--border);
}
.post-related__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}
.post-related__head {
    margin-bottom: 40px;
}
.post-related__title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
    margin: 8px 0 0;
    text-transform: none;
}

/* ==========================================================================
 * RESPONSIVE
 * ========================================================================== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .post-author {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 24px;
    }
}
@media (max-width: 640px) {
    .hero--blog {
        padding: 64px 0 40px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid-section,
    .post-body,
    .post-footer,
    .post-related {
        padding: var(--section-pad-y-sm) 0;
    }
    .post-hero__inner {
        padding: 56px var(--pad) 40px;
    }
    .post-callout {
        padding: 24px 20px 24px 48px;
        font-size: 18px;
    }
}

/* ==========================================================================
 * LIGHT MODE
 * ========================================================================== */
.homepage-v2.is-hybrid .hero--blog {
    background: var(--light-bg);
    border-bottom-color: var(--light-border);
}
.homepage-v2.is-hybrid .hero--blog .hero-sub {
    color: var(--light-muted);
}

.homepage-v2.is-hybrid .blog-cats {
    background: var(--light-bg2);
    border-bottom-color: var(--light-border);
}
.homepage-v2.is-hybrid .blog-cats__chip {
    background: var(--card-bg-light);
    border-color: var(--light-border);
    color: var(--light-muted);
}
.homepage-v2.is-hybrid .blog-cats__chip:hover {
    background: var(--light-bg);
    color: var(--light-text);
}

.homepage-v2.is-hybrid .blog-grid-section {
    background: var(--light-bg);
}
.homepage-v2.is-hybrid .blog-card {
    background: var(--card-bg-light);
    border-color: var(--light-border);
    box-shadow: var(--card-shadow-light);
}
.homepage-v2.is-hybrid .blog-card:hover {
    box-shadow: var(--card-shadow-light-hover);
}
.homepage-v2.is-hybrid .blog-card__img--placeholder {
    background-image: linear-gradient(135deg, rgba(196, 0, 88, 0.08), rgba(99, 22, 85, 0.04));
}
.homepage-v2.is-hybrid .blog-card__title {
    color: var(--light-text);
}
.homepage-v2.is-hybrid .blog-card__excerpt {
    color: var(--light-muted);
}
.homepage-v2.is-hybrid .blog-card__date {
    color: var(--light-text-num);
}

.homepage-v2.is-hybrid .blog-pagination__item .page-numbers {
    background: var(--card-bg-light);
    border-color: var(--light-border);
    color: var(--light-muted);
}
.homepage-v2.is-hybrid .blog-pagination__item .page-numbers:hover {
    background: var(--light-bg2);
    color: var(--light-text);
}

/* Post single light mode — hero blijft donker (foto overlay), body wit */
.homepage-v2.is-hybrid .post-body {
    background: var(--light-bg);
    border-bottom-color: var(--light-border);
}
.homepage-v2.is-hybrid .post-body__inner {
    color: var(--light-muted);
}
.homepage-v2.is-hybrid .post-body__inner h2,
.homepage-v2.is-hybrid .post-body__inner h3,
.homepage-v2.is-hybrid .post-body__inner strong,
.homepage-v2.is-hybrid .post-author__name,
.homepage-v2.is-hybrid .post-related__title {
    color: var(--light-text);
}
.homepage-v2.is-hybrid .post-body__inner blockquote {
    color: var(--light-text);
}
.homepage-v2.is-hybrid .post-body__inner pre,
.homepage-v2.is-hybrid .post-body__inner code {
    background: var(--light-bg2);
    border-color: var(--light-border);
}
.homepage-v2.is-hybrid .post-callout {
    background: var(--card-bg-light);
    color: var(--light-text);
    box-shadow: var(--card-shadow-light);
}

.homepage-v2.is-hybrid .post-footer {
    background: var(--light-bg2);
    border-bottom-color: var(--light-border);
}
.homepage-v2.is-hybrid .post-share__link {
    background: var(--card-bg-light);
    border-color: var(--light-border);
    color: var(--light-text-num);
}
.homepage-v2.is-hybrid .post-author__desc {
    color: var(--light-muted);
}

.homepage-v2.is-hybrid .post-related {
    background: var(--light-bg);
    border-bottom-color: var(--light-border);
}
