/* =========================================================================
   Blog — publieke pagina's
   Past bij de donkere, paarse glass-stijl van laythcreate.nl
   ========================================================================= */

:root {
    --blog-accent: #8c79cf;
    --blog-accent-soft: #c9b6f8;
    --blog-text: rgba(255, 255, 255, 0.92);
    --blog-muted: rgba(255, 255, 255, 0.62);
    --blog-line: rgba(255, 255, 255, 0.09);
    --blog-card: rgba(255, 255, 255, 0.045);
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #c9b6f8 55%, #8c79cf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animatie (style.css wordt niet op deze pagina's geladen) */
.scroll-animate {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--index, 0) * 60ms);
}

.scroll-animate.animate-visible {
    opacity: 1;
    transform: none;
}

/* Zelfde hero-animatie als de rest van de site: script.js zet .active.
   De onderdelen komen na elkaar binnen, net als op de homepagina. */
.blog-hero .blog-eyebrow,
.blog-hero-title,
.blog-hero-description {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-hero.active .blog-eyebrow {
    opacity: 1;
    transform: none;
    transition-delay: 0.2s;
}

.blog-hero.active .blog-hero-title {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
}

.blog-hero.active .blog-hero-description {
    opacity: 1;
    transform: none;
    transition-delay: 0.8s;
}

/* Zelfde binnenkomst voor de kop van een artikel */
.post-header .back-link,
.post-header .post-meta,
.post-header .post-title,
.post-header .post-lede {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-header.active .back-link {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}

.post-header.active .post-meta {
    opacity: 1;
    transform: none;
    transition-delay: 0.3s;
}

.post-header.active .post-title {
    opacity: 1;
    transform: none;
    transition-delay: 0.45s;
}

.post-header.active .post-lede {
    opacity: 1;
    transform: none;
    transition-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
    .blog-hero .blog-eyebrow,
    .blog-hero-title,
    .blog-hero-description,
    .post-header .back-link,
    .post-header .post-meta,
    .post-header .post-title,
    .post-header .post-lede {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.blog-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.blog-container-narrow {
    width: min(760px, calc(100% - 48px));
    margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */

.blog-hero {
    position: relative;
    padding: 190px 24px 16px;
    text-align: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 120vw);
    height: 520px;
    background: radial-gradient(closest-side, rgba(140, 121, 207, 0.28), transparent 72%);
    pointer-events: none;
    filter: blur(10px);
}

.blog-eyebrow {
    position: relative;
    margin: 0 0 18px;
    color: var(--blog-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.blog-hero-title {
    position: relative;
    max-width: 24ch;
    margin: 0 auto 22px;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: clamp(2.3rem, 5.4vw, 4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #fff;
}

.blog-hero-description {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    color: var(--blog-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* -------------------------------------------------------------------------
   Lijst
   ---------------------------------------------------------------------- */

.blog-list-section {
    padding: 56px 0 20px;
}

.featured-post {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    margin-bottom: 0;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--blog-line);
}

@media (min-width: 860px) {
    .featured-post {
        grid-template-columns: 1.1fr 1fr;
    }
}

.featured-post:hover .featured-title a {
    color: var(--blog-accent-soft);
}

.featured-media {
    position: relative;
    display: block;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(140deg, #2a1b4d 0%, #0d0718 65%);
}

.featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-post:hover .featured-media img {
    transform: scale(1.045);
}

.featured-label {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 7px 14px;
    border: 1px solid rgba(201, 182, 248, 0.45);
    border-radius: 999px;
    background: rgba(10, 6, 20, 0.65);
    color: #e6dcff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 0;
}

.featured-title {
    margin: 0;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.featured-title a {
    color: #fff;
    text-decoration: none;
}

.featured-title a:hover {
    color: var(--blog-accent-soft);
}

.featured-excerpt {
    display: -webkit-box;
    max-width: 42ch;
    margin: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: var(--blog-muted);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.post-card {
    background: var(--blog-card);
    border: 1px solid var(--blog-line);
    border-radius: 22px;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(140, 121, 207, 0.42);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(140deg, #2a1b4d 0%, #0d0718 65%);
}

.post-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-card:hover .post-card-media img {
    transform: scale(1.05);
}

.media-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 2px;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: 1.45rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.media-mark span {
    display: block;
    color: var(--blog-accent-soft);
    font-family: var(--font-main, sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    opacity: 0.85;
}

.post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 24px 24px 26px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--blog-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blog-accent);
}

.post-card h3 {
    margin: 0;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.28;
    color: #fff;
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    color: var(--blog-accent-soft);
}

.post-card p {
    margin: 0;
    color: var(--blog-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    color: var(--blog-accent-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.post-card:hover .read-more i,
.featured-post:hover .read-more i {
    transform: translateX(5px);
}

/* -------------------------------------------------------------------------
   Paginering
   ---------------------------------------------------------------------- */

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 56px 0 8px;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--blog-line);
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.page-link:hover {
    border-color: rgba(201, 182, 248, 0.5);
    background: rgba(140, 121, 207, 0.14);
}

.page-link.is-current {
    border-color: transparent;
    background: linear-gradient(135deg, #8c79cf, #6a4bbf);
    font-weight: 700;
}

.page-link.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-gap {
    color: var(--blog-muted);
    padding: 0 2px;
}

/* -------------------------------------------------------------------------
   Artikel
   ---------------------------------------------------------------------- */

.post-single {
    padding: 170px 0 20px;
}

.post-header {
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--blog-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #fff;
}

.back-link i {
    font-size: 0.75rem;
}

.post-meta-center {
    justify-content: center;
    margin-bottom: 18px;
}

.post-title {
    max-width: 22ch;
    margin: 0 auto 20px;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
}

.post-lede {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--blog-muted);
    font-size: 1.12rem;
    line-height: 1.75;
}

.post-cover {
    width: min(1040px, calc(100% - 48px));
    margin: 46px auto 0;
    overflow: hidden;
    border: 1px solid var(--blog-line);
    border-radius: 26px;
    background: #0d0718;
}

.post-cover img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.post-body {
    margin-top: 52px;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.85;
}

.post-body > :first-child {
    margin-top: 0;
}

.post-body p {
    margin: 0 0 1.4em;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 2em 0 0.65em;
    color: #fff;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.post-body h2 {
    font-size: 1.85rem;
}

.post-body h3 {
    font-size: 1.45rem;
}

.post-body h4 {
    font-size: 1.2rem;
}

.post-body a {
    color: var(--blog-accent-soft);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.post-body a:hover {
    color: #fff;
}

.post-body strong {
    color: #fff;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.5em;
    padding-left: 1.4em;
}

.post-body li {
    margin-bottom: 0.5em;
}

.post-body li::marker {
    color: var(--blog-accent);
}

.post-body blockquote {
    margin: 2em 0;
    padding: 20px 26px;
    border-left: 3px solid var(--blog-accent);
    border-radius: 0 16px 16px 0;
    background: rgba(140, 121, 207, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-style: italic;
}

.post-body blockquote p {
    margin: 0;
}

.post-body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.post-body pre {
    margin: 0 0 1.6em;
    padding: 20px 22px;
    overflow-x: auto;
    border: 1px solid var(--blog-line);
    border-radius: 16px;
    background: #08050f;
}

.post-body pre code {
    padding: 0;
    background: none;
    font-size: 0.9rem;
    line-height: 1.7;
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 16px;
}

.post-body hr {
    margin: 2.6em 0;
    border: 0;
    border-top: 1px solid var(--blog-line);
}

.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 54px;
    padding-top: 26px;
    border-top: 1px solid var(--blog-line);
}

.post-share-label {
    margin-right: 6px;
    color: var(--blog-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--blog-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.share-btn:hover {
    border-color: rgba(201, 182, 248, 0.5);
    background: rgba(140, 121, 207, 0.16);
    transform: translateY(-2px);
}

.share-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.5);
    background: rgba(37, 211, 102, 0.14);
}

.share-linkedin:hover {
    border-color: rgba(10, 102, 194, 0.6);
    background: rgba(10, 102, 194, 0.2);
}

.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 26px;
    border: 1px solid var(--blog-line);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(140, 121, 207, 0.12), rgba(255, 255, 255, 0.02));
}

.author-box img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.author-box strong {
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: 1.05rem;
}

.author-box p {
    margin: 6px 0 10px;
    color: var(--blog-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.author-box a {
    color: var(--blog-accent-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.author-box a i {
    margin-left: 4px;
    font-size: 0.7rem;
}

/* -------------------------------------------------------------------------
   Verder lezen en lege status
   ---------------------------------------------------------------------- */

.related-section {
    padding: 76px 0 0;
}

.related-title {
    margin: 0 0 28px;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: 1.8rem;
    font-weight: 600;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8c79cf 0%, #6a4bbf 100%);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(140, 121, 207, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(140, 121, 207, 0.38);
}

.blog-empty {
    max-width: 620px;
    margin: 40px auto 0;
    padding: 64px 32px;
    border: 1px dashed rgba(201, 182, 248, 0.3);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
}

.blog-empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(140, 121, 207, 0.15);
    color: var(--blog-accent-soft);
    font-size: 1.6rem;
}

.blog-empty h1,
.blog-empty h2 {
    margin: 0 0 12px;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: 1.8rem;
    font-weight: 600;
}

.blog-empty p {
    margin: 0 0 26px;
    color: var(--blog-muted);
    line-height: 1.7;
}

.blog-not-found {
    padding: 200px 0 120px;
}

.draft-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 193, 7, 0.45);
    border-radius: 999px;
    background: rgba(40, 30, 5, 0.85);
    color: #ffe9a8;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
}

.draft-banner a {
    color: #fff;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 768px) {
    .blog-hero {
        padding: 140px 20px 8px;
    }

    .blog-hero-description {
        font-size: 1rem;
    }

    .post-single {
        padding-top: 130px;
    }

    .post-cover {
        margin-top: 32px;
        border-radius: 20px;
    }

    .post-body {
        margin-top: 38px;
        font-size: 1.03rem;
    }

    .blog-list-section {
        padding-top: 40px;
    }

    .related-section {
        padding-top: 56px;
    }

    .blog-not-found {
        padding: 150px 0 90px;
    }

    .draft-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: center;
        transform: none;
        text-align: center;
        border-radius: 18px;
    }
}

@media (max-width: 560px) {
    .blog-container,
    .blog-container-narrow {
        width: calc(100% - 40px);
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .post-title {
        font-size: 1.95rem;
    }

    .post-lede {
        font-size: 1rem;
    }

    .author-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .post-share-label {
        width: 100%;
    }

    .page-link span {
        display: none;
    }

    .page-link.is-current span,
    .page-link.is-disabled span {
        display: inline;
    }
}
