/*
 * Blog (home.php) en artikelen (single.php). Alleen geladen op de blogpagina en op berichten.
 * Verplaatst uit de inline <style>-blokken van die templates; kleuren aangepast voor WCAG AA-contrast.
 */

/* ===== home.php ===== */
:root {
    --hkb-cta1: #C8441A;
    --hkb-cta2: #D0214B;
    --hkb-dark-bg: #0d0620;
    --hkb-card: #1a0e3a;
    --hkb-border: #2f1c56;
    --hkb-text: #ffffff;
    --hkb-text-gray: #b7a9d6;
    --hkb-text-muted: #a996cf;
    --hkb-gradient-cta: linear-gradient(135deg, var(--hkb-cta1) 0%, var(--hkb-cta2) 100%);
    --hkb-shadow: 0 4px 20px rgba(255,61,104,.25);
    --hkb-radius-md: 12px;
    --hkb-radius-full: 50px;
}

.hkb-hero {
    padding: 130px 0 46px;
    background: linear-gradient(135deg, #1B0740 0%, #0d0620 100%);
    text-align: center;
}
.hkb-label {
    display: inline-block; background: var(--hkb-gradient-cta); color: #fff;
    padding: 6px 16px; border-radius: var(--hkb-radius-full); font-size: 12px; font-weight: 700;
    letter-spacing: 1px; margin-bottom: 18px;
}
.hkb-title { font-size: clamp(30px, 5.5vw, 46px); font-weight: 800; margin-bottom: 14px; color: var(--hkb-text); }
.hkb-gradient { background: var(--hkb-gradient-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hkb-desc { color: var(--hkb-text-gray); font-size: 16px; max-width: 520px; margin: 0 auto; }

.hkb-content { padding: 50px 0; background: var(--hkb-dark-bg); }
.hkb-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }

.hkb-card { background: var(--hkb-card); border-radius: var(--hkb-radius-md); overflow: hidden; border: 1px solid var(--hkb-border); transition: all .25s ease; }
.hkb-card:hover { transform: translateY(-4px); box-shadow: var(--hkb-shadow); border-color: var(--hkb-cta2); }
.hkb-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.hkb-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hkb-card:hover .hkb-card-image img { transform: scale(1.05); }
.hkb-card-placeholder { background: var(--hkb-gradient-cta); display: flex; align-items: center; justify-content: center; }
.hkb-card-placeholder .hk-icon { font-size: 46px; color: rgba(255,255,255,.35); }
.hkb-card-content { padding: 22px; }
.hkb-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 12px; }
.hkb-card-category { background: rgba(255,106,61,.18); color: #FF7A45; padding: 4px 12px; border-radius: var(--hkb-radius-full); font-weight: 700; text-transform: uppercase; }
.hkb-card-date { color: var(--hkb-text-muted); }
.hkb-card-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.hkb-card-title a { color: var(--hkb-text); text-decoration: none; }
.hkb-card-title a:hover { color: #FF7A45; }
.hkb-card-excerpt { color: var(--hkb-text-gray); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.hkb-card-link { display: inline-flex; align-items: center; gap: 8px; color: #FF7A45; font-weight: 600; font-size: 14px; text-decoration: none; transition: gap .2s ease; }
.hkb-card-link:hover { gap: 12px; }

.hkb-pagination { margin-top: 46px; text-align: center; }
.hkb-pagination .nav-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hkb-pagination a, .hkb-pagination span { padding: 10px 18px; background: var(--hkb-card); border-radius: 8px; color: var(--hkb-text-gray); font-weight: 500; text-decoration: none; }
.hkb-pagination a:hover { background: var(--hkb-cta2); color: #fff; }
.hkb-pagination .current { background: var(--hkb-gradient-cta); color: #fff; }

.hkb-empty { text-align: center; padding: 70px 20px; }
.hkb-empty .hk-icon { font-size: 54px; color: #FF7A45; margin-bottom: 18px; opacity: .6; }
.hkb-empty h2 { font-size: 22px; margin-bottom: 10px; color: var(--hkb-text); }
.hkb-empty p { color: var(--hkb-text-gray); margin-bottom: 22px; }

.hkb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: var(--hkb-radius-full); font-weight: 700; font-size: 14px; text-decoration: none; transition: all .25s ease; border: none; }
.hkb-btn-primary { background: var(--hkb-gradient-cta); color: #fff; box-shadow: var(--hkb-shadow); }
.hkb-btn-primary:hover { transform: translateY(-2px); color: #fff; }
.hkb-btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.hkb-btn-outline:hover { background: #fff; color: var(--hkb-cta2); }
.hkb-btn-lg { padding: 15px 30px; font-size: 15.5px; }

.hkb-cta { padding: 56px 0; background: linear-gradient(135deg,#1B0740 0%,#5B21B6 100%); text-align: center; color: #fff; }
.hkb-cta h2 { font-size: 26px; margin-bottom: 8px; }
.hkb-cta p { opacity: .9; margin-bottom: 22px; }
.hkb-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hkb-cta-links { margin-top: 22px; }
.hkb-cta-links a { color: #E9DBFF; text-decoration: underline; margin: 0 8px; font-size: 13.5px; }

@media (min-width: 768px) {
    .hkb-hero { padding: 150px 0 55px; }
    .hkb-content { padding: 70px 0; }
    .hkb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .hkb-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== single.php ===== */
:root {
    --hks-cta1: #C8441A;
    --hks-cta2: #D0214B;
    --hks-dark-bg: #0d0620;
    --hks-card: #1a0e3a;
    --hks-border: #2f1c56;
    --hks-text: #ffffff;
    --hks-text-gray: #b7a9d6;
    --hks-text-muted: #a996cf;
    --hks-gradient-cta: linear-gradient(135deg, var(--hks-cta1) 0%, var(--hks-cta2) 100%);
    --hks-shadow: 0 4px 20px rgba(255,61,104,.25);
    --hks-radius-md: 12px;
    --hks-radius-lg: 16px;
    --hks-radius-full: 50px;
}

.hks-post .hks-hero { padding: 130px 0 46px; background: linear-gradient(135deg, #1B0740 0%, #0d0620 100%); text-align: center; }
.hks-meta-top { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.hks-category { background: var(--hks-gradient-cta); color: #fff; padding: 5px 15px; border-radius: var(--hks-radius-full); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hks-date { color: var(--hks-text-gray); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hks-title { font-size: clamp(26px, 4.6vw, 40px); font-weight: 800; line-height: 1.25; max-width: 800px; margin: 0 auto; color: var(--hks-text); }

.hks-wrapper { padding: 46px 0; background: var(--hks-dark-bg); }
.hks-layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
.hks-featured-image { margin-bottom: 26px; border-radius: var(--hks-radius-md); overflow: hidden; }
.hks-featured-image img { width: 100%; height: auto; }

.hks-body { font-size: 16px; line-height: 1.85; color: var(--hks-text-gray); }
.hks-body h2 { font-size: 23px; font-weight: 700; margin: 36px 0 18px; color: var(--hks-text); }
.hks-body h3 { font-size: 19px; font-weight: 700; margin: 28px 0 14px; color: var(--hks-text); }
.hks-body p { margin-bottom: 18px; }
.hks-body ul, .hks-body ol { margin: 18px 0; padding-left: 24px; }
.hks-body li { margin-bottom: 9px; }
.hks-body a { color: #FF7A45; text-decoration: underline; }
.hks-body strong { color: var(--hks-text); }
.hks-body img { border-radius: var(--hks-radius-md); }

.hks-inlinks { margin-top: 34px; padding: 18px 20px; background: var(--hks-card); border: 1px solid var(--hks-border); border-radius: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hks-inlinks span { color: var(--hks-text); font-weight: 700; font-size: 13.5px; }
.hks-inlinks a { color: #FF7A45; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.hks-inlinks a:hover { text-decoration: underline; }

.hks-share { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hks-border); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hks-share span { font-weight: 700; color: var(--hks-text); }
.hks-share-buttons { display: flex; gap: 10px; }
.hks-share-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--hks-card); display: flex; align-items: center; justify-content: center; color: var(--hks-text-gray); transition: all .2s ease; }
.hks-share-btn:hover { background: var(--hks-cta2); color: #fff; }

.hks-sidebar { display: none; }
.hks-sidebar-card { background: var(--hks-card); border-radius: var(--hks-radius-lg); padding: 28px; border: 2px solid #C8441A; }
.hks-sticky { position: sticky; top: 100px; }
.hks-sidebar-card h2 { text-align: center; font-size: 19px; margin-bottom: 18px; color: var(--hks-text); }
.hks-price { text-align: center; margin-bottom: 22px; }
.hks-price-from { display: block; font-size: 13px; color: var(--hks-text-muted); }
.hks-price-amount { font-size: 44px; font-weight: 800; color: #FF7A45; }
.hks-price-period { font-size: 15px; color: var(--hks-text-muted); }
.hks-features { padding: 0; margin-bottom: 22px; list-style: none; }
.hks-features li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--hks-border); color: var(--hks-text-gray); }
.hks-features li:last-child { border-bottom: none; }
.hks-features .hk-icon { color: #FF7A45; }
.hks-note { text-align: center; font-size: 12px; color: var(--hks-text-muted); margin-top: 14px; }
.hks-sidebar-links { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hks-border); display: flex; flex-direction: column; gap: 10px; }
.hks-sidebar-links a { color: var(--hks-text-gray); font-size: 13.5px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.hks-sidebar-links a:hover { color: #FF7A45; }

.hks-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: var(--hks-radius-full); font-weight: 700; font-size: 14px; text-decoration: none; transition: all .25s ease; border: none; }
.hks-btn-primary { background: var(--hks-gradient-cta); color: #fff !important; box-shadow: var(--hks-shadow); }
.hks-btn-primary:hover { transform: translateY(-2px); }
.hks-btn-block { width: 100%; }
.hks-btn-lg { padding: 15px 30px; font-size: 15.5px; }

.hks-cta { padding: 56px 0; background: linear-gradient(135deg,#1B0740 0%,#5B21B6 100%); text-align: center; color: #fff; }
.hks-cta h2 { font-size: 26px; margin-bottom: 8px; }
.hks-cta p { opacity: .9; margin-bottom: 22px; }

@media (min-width: 768px) {
    .hks-post .hks-hero { padding: 150px 0 55px; }
}
@media (min-width: 1024px) {
    .hks-layout { grid-template-columns: 1fr 320px; gap: 50px; }
    .hks-sidebar { display: block; }
}

/* Lege blog: links naar de handleidingen */
.hkb-empty-links { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; }
.hkb-empty-links a { color: #FFB089; text-decoration: underline; }
.hkb-card-link .hk-icon { font-size: 13px; }
