/* ── Riemenlabel Blog Systeem — Frontend CSS ── */

:root {
    --rbp-goud:   #C8973A;
    --rbp-navy:   #1A1A2E;
    --rbp-licht:  #FDF8F0;
    --rbp-grijs:  #6b7280;
    --rbp-groen:  #065f46;
    --rbp-groen-bg: #d1fae5;
    --rbp-blauw:  #1e40af;
    --rbp-blauw-bg: #dbeafe;
    --rbp-rand:   #e5e7eb;
}

/* ── Meta balk (datum + leestijd) ──────────────────── */
.rbp-meta-balk {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    color: var(--rbp-grijs);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rbp-rand);
}
.rbp-meta-balk span { display: flex; align-items: center; gap: 5px; }

/* ── Definitieblok ─────────────────────────────────── */
.rbp-definitie-blok {
    background: var(--rbp-navy);
    color: #fff;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 0 0 28px;
}
.rbp-definitie-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rbp-goud);
    margin-bottom: 8px;
}
.rbp-definitie-blok p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #e5e7eb;
}

/* ── Answer Block (AI Overviews highlight) ─────────── */
.rbp-answer-block {
    background: var(--rbp-licht);
    border-left: 5px solid var(--rbp-goud);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 0 0 28px;
}
.rbp-answer-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rbp-goud);
    margin-bottom: 8px;
}
.rbp-answer-block p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--rbp-navy);
    font-weight: 500;
}

/* ── Statistiek blok ───────────────────────────────── */
.rbp-statistiek {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--rbp-blauw-bg);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 28px 0;
}
.rbp-statistiek-icon { font-size: 22px; flex-shrink: 0; }
.rbp-statistiek p {
    margin: 0;
    font-size: 15px;
    color: var(--rbp-blauw);
    font-weight: 500;
    line-height: 1.6;
}

/* ── E-E-A-T blok (gouden sterretje) ───────────────── */
.rbp-eeat-blok {
    background: #FFFBF0;
    border-left: 4px solid var(--rbp-goud);
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #444;
    font-style: italic;
    line-height: 1.6;
}
.rbp-eeat-ster {
    color: var(--rbp-goud);
    font-style: normal;
    font-weight: 700;
    margin-right: 6px;
}

/* ── Sectie antwoord highlight ─────────────────────── */
.rbp-sectie-antwoord {
    background: #f8fafc;
    border: 1px solid var(--rbp-rand);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* ── Tip blok (Wist je dat) ────────────────────────── */
.rbp-tip-blok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
}
.rbp-tip-icon {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rbp-groen);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rbp-tip-blok p {
    margin: 0;
    font-size: 14px;
    color: #065f46;
    line-height: 1.6;
}

/* ── Vergelijkingstabel ────────────────────────────── */
.rbp-vergelijk-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 8px;
    border: 1px solid var(--rbp-rand);
}
.rbp-vergelijk-tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.rbp-vergelijk-tabel th {
    background: var(--rbp-navy);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.rbp-vergelijk-tabel td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--rbp-rand);
    color: #374151;
}
.rbp-vergelijk-tabel tr:last-child td { border-bottom: none; }
.rbp-vergelijk-tabel tr:nth-child(even) td { background: #f9fafb; }
.rbp-vergelijk-tabel .rbp-col-goed {
    color: var(--rbp-groen);
    font-weight: 600;
}

/* ── Product CTA blok ──────────────────────────────── */
.rbp-product-cta {
    background: linear-gradient(135deg, var(--rbp-navy) 0%, #2d2d4e 100%);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.rbp-product-cta-tekst {
    color: #e5e7eb;
    font-size: 15px;
    line-height: 1.5;
    flex: 1;
}
.rbp-product-cta-knop {
    display: inline-block;
    background: var(--rbp-goud);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: background .2s;
}
.rbp-product-cta-knop:hover { background: #b8832a; }

/* ── Auteursvak ────────────────────────────────────── */
.rbp-auteur-vak {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--rbp-licht);
    border: 1px solid #e9d8b8;
    border-radius: 10px;
    padding: 24px;
    margin: 40px 0 28px;
}
.rbp-auteur-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rbp-navy);
    color: var(--rbp-goud);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.rbp-auteur-naam {
    display: block;
    font-size: 16px;
    color: var(--rbp-navy);
    margin-bottom: 6px;
}
.rbp-auteur-bio {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}
.rbp-auteur-meta {
    font-size: 12px;
    color: var(--rbp-grijs);
}

/* ── Gerelateerde posts ────────────────────────────── */
.rbp-gerelateerd {
    margin: 40px 0 0;
    padding-top: 28px;
    border-top: 2px solid var(--rbp-rand);
}
.rbp-gerelateerd-titel {
    font-size: 18px;
    color: var(--rbp-navy);
    margin: 0 0 20px;
}
.rbp-gerelateerd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.rbp-gerelateerd-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rbp-rand);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    transition: box-shadow .2s, transform .2s;
}
.rbp-gerelateerd-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.rbp-gerelateerd-img img { width: 100%; height: 120px; object-fit: cover; display: block; }
.rbp-gerelateerd-naam {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rbp-navy);
    line-height: 1.4;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
    .rbp-product-cta { flex-direction: column; }
    .rbp-auteur-vak  { flex-direction: column; }
    .rbp-gerelateerd-grid { grid-template-columns: repeat(2, 1fr); }
    .rbp-meta-balk { flex-direction: column; gap: 8px; }
}
