/* Basis (kleuren, header, footer) staat in ../assets/site.css */

/* ── OVERZICHT ────────────────────────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--wit);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--tekst);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: var(--lichtblauw);
  box-shadow: 0 8px 32px rgba(43,46,131,0.12);
  transform: translateY(-3px);
}
.post-thumb { aspect-ratio: 16/9; background: #111; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-date { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lichtblauw); margin-bottom: 6px; }
.post-title { font-family: 'BoardMarker', sans-serif; font-size: 1.15rem; color: var(--donkerblauw); }

/* ── DETAIL ───────────────────────────────────────────── */
.post-detail h1 {
  font-family: 'BoardMarker', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--donkerblauw);
  margin-bottom: 8px;
}
.post-detail .post-date { margin-bottom: 24px; display: block; }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: #111;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.post-intro { font-size: 1.05rem; margin-bottom: 28px; }

.section-header {
  display: flex; align-items: center; gap: 14px; margin: 36px 0 20px;
}
.section-header h3 {
  font-family: 'BoardMarker', sans-serif;
  font-size: 1.3rem;
  color: var(--donkerblauw);
  white-space: nowrap;
}
.section-header .line {
  flex: 1; height: 2px;
  background: linear-gradient(to right, var(--lichtblauw), transparent);
  border-radius: 2px;
}

.product-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.product-link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--wit); border: 2px solid var(--border); border-radius: 10px;
  padding: 14px 18px; text-decoration: none; color: var(--tekst);
  transition: border-color 0.2s;
}
.product-link-card:hover { border-color: var(--lichtblauw); }
.product-link-card .label { font-weight: 700; color: var(--donkerblauw); }
.product-link-card .code-badge {
  background: var(--geel); color: var(--donkerblauw);
  font-weight: 800; font-family: monospace; letter-spacing: 0.04em;
  border-radius: 5px; padding: 3px 9px; font-size: 0.8rem;
}
.product-link-card .arrow { color: var(--lichtblauw); font-weight: 700; }

.post-summary { color: var(--tekst); }
.post-summary p { margin-bottom: 14px; }
.post-summary ul { margin: 0 0 14px 22px; }
.post-summary li { margin-bottom: 4px; }
.post-summary h2 {
  font-family: 'BoardMarker', sans-serif;
  font-size: 1.3rem;
  color: var(--donkerblauw);
  margin: 28px 0 10px;
}
.post-summary h3 {
  font-family: 'BoardMarker', sans-serif;
  font-size: 1.1rem;
  color: var(--donkerblauw);
  margin: 20px 0 8px;
}
.post-summary a { color: var(--donkerblauw); }

.empty-state { text-align: center; color: var(--muted); padding: 60px 0; }

/* ── PAGINERING ───────────────────────────────────────────── */
.pagination-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-bottom: 8px;
}
.pagination { display: flex; align-items: center; gap: 6px; }
.pg-arrow { display: inline-flex; align-items: center; justify-content: center; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  color: var(--donkerblauw); background: var(--wit);
  transition: border-color 0.15s, background 0.15s;
}
.pg-btn:hover { border-color: var(--lichtblauw); background: #f0f4fb; }
.pg-btn.pg-active { background: var(--donkerblauw); color: var(--wit); border-color: var(--donkerblauw); }
.pg-btn.pg-disabled { color: var(--muted); cursor: default; }
.pg-btn.pg-disabled:hover { border-color: var(--border); background: var(--wit); }
.pg-ellipsis { color: var(--muted); padding: 0 4px; font-weight: 700; line-height: 38px; }
.pp-form { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.pp-form select {
  border: 2px solid var(--border); border-radius: 8px;
  padding: 6px 10px; font-size: 0.85rem; font-family: inherit;
  background: var(--wit); color: var(--tekst); cursor: pointer;
}
.pp-form select:focus { outline: none; border-color: var(--lichtblauw); }

@media (max-width: 640px) {
  main { padding: 32px 16px 60px; }
}
