/* ============================================================
   Florette Vervloet — blog
   Aanvulling op style.css. Gebruikt dezelfde tokens en ritmes,
   voegt alleen toe wat een artikelpagina extra nodig heeft.
   ============================================================ */

/* ---------- overzicht ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: var(--pure-white); border: 1px solid rgba(0,41,38,0.12); border-radius: 14px; box-shadow: 0 6px 24px rgba(0,41,38,0.06); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,41,38,0.12); }
.post-card__img { display: block; }
/* 1200x630 is de maat van het blogbeeld. Stond op 16/9, waardoor de kaart er
   links en rechts een strook afsneed en de titel op het beeld wegviel. */
.post-card__img img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; }

/* ---------- veelgestelde vragen als accordion ---------- */
.faq { margin: 2rem 0 2.6rem; border-top: 1px solid rgba(0,41,38,0.15); }
.faq details { border-bottom: 1px solid rgba(0,41,38,0.15); padding: 1.15rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; line-height: 1.4;
  list-style: none; display: flex; justify-content: space-between; align-items: start; gap: 1.2rem;
  color: var(--moss-green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-heading); font-weight: 300;
  font-size: 1.7rem; line-height: 1; color: var(--cobalt-blue); flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--cobalt-blue); }
.faq details > *:not(summary) { margin-top: 0.9rem; }
.faq details p:last-child { margin-bottom: 0; }
.post-card__body { padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
/* .card-label krijgt zijn kapitalen in style.css via `.card .card-label`; deze
   kaart heet .post-card, dus die opmaak herhalen we hier expliciet. */
.post-card__body .card-label { color: var(--cobalt-blue); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; }
.post-card h3 { font-size: 1.28rem; line-height: 1.25; }
.post-card h3 a { color: var(--moss-green); text-decoration: none; }
.post-card h3 a:hover { color: var(--cobalt-blue); }
.post-card p { font-size: 0.95rem; color: var(--core-black); opacity: 0.85; margin-bottom: 0; }
.post-card__meta { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; opacity: 0.6; }
.post-card .card-link { margin-top: auto; color: var(--cobalt-blue); }

/* ---------- artikelkop ---------- */
.post-hero { padding-bottom: clamp(3rem, 6vw, 5rem); }
.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.post-meta { margin-top: 1.6rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--signal-green); }
.post-cover { max-width: 1140px; margin: -3rem auto 0; padding: 0 clamp(1.2rem, 4vw, 2.5rem); position: relative; z-index: 3; }
.post-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 44px rgba(0,41,38,0.18); }

/* ---------- artikelinhoud ---------- */
.post-body { font-size: 1.06rem; }
.post-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: 2.8rem; margin-bottom: 1rem; color: var(--moss-green); }
.post-body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 2rem; margin-bottom: 0.8rem; color: var(--moss-green); }
.post-body h4 { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; margin-top: 1.8rem; margin-bottom: 0.6rem; color: var(--cobalt-blue); }
.post-body p { margin-bottom: 1.35em; }
/* :not(.btn) is nodig: de CTA-knop staat binnen de post-body, en zonder deze
   uitzondering kreeg een kobaltblauwe knop kobaltblauwe tekst met een streep eronder. */
.post-body a:not(.btn) { color: var(--cobalt-blue); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:not(.btn):hover { color: var(--moss-green); }
.post-body ul, .post-body ol { margin: 0 0 1.5em 1.3em; display: grid; gap: 0.7rem; }
.post-body li { padding-left: 0.3rem; }
.post-body ul { list-style: none; margin-left: 0; }
.post-body ul li { padding-left: 1.8rem; position: relative; }
.post-body ul li::before { content: '◆'; position: absolute; left: 0; top: 0.4em; font-size: 0.6rem; color: var(--cobalt-blue); }
.post-body blockquote { background: rgba(0,41,38,0.04); border-left: 3px solid var(--cobalt-blue); padding: 1.6rem 1.8rem; border-radius: 0 14px 14px 0; margin: 2rem 0; font-size: 1.02rem; }
.post-body figure { margin: 2.2rem 0; }
.post-body figure img { border-radius: 14px; width: 100%; }
.post-body figcaption { font-size: 0.82rem; opacity: 0.7; margin-top: 0.6rem; text-align: center; }
.post-body pre { background: var(--moss-green); color: var(--pure-white); padding: 1.4rem; border-radius: 12px; overflow-x: auto; margin: 1.8rem 0; font-size: 0.9rem; }
.post-divider { border: 0; border-top: 1px solid rgba(0,41,38,0.15); margin: 2.6rem 0; }
.post-cta { margin: 2.4rem 0; text-align: center; }

/* Brede tabellen scrollen in hun eigen kader; de pagina zelf nooit. */
.table-scroll { overflow-x: auto; margin: 2rem 0; }
.post-body table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 0.95rem; }
.post-body th, .post-body td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid rgba(0,41,38,0.12); vertical-align: top; }
.post-body thead th { background: var(--software-grey); font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--moss-green); }

.post-tags { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-tags span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; background: rgba(66,93,251,0.08); color: var(--cobalt-blue); padding: 0.35rem 0.8rem; border-radius: 999px; }
.post-back { margin-top: 2.4rem; }
.post-back a { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--cobalt-blue); text-decoration: none; }

/* ---------- responsief ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-cover { margin-top: -2rem; }
  .post-cover img { aspect-ratio: 16/10; }
}
