/* ============================================
   Boekenkastjes Homepage — papieren thema
   Warm bruin / oker / cream — boekige look
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.bkh-home {
    font-family: 'Lora', Georgia, serif;
    color: var(--bkh-text, #2C1810);
    background: var(--bkh-bg, #FBF8F1);
    line-height: 1.65;
    font-size: 16px;
}

/* Subtiele papier-textuur via CSS gradients */
body.bkh-home::before {
    content: '';
    position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at top, rgba(212, 165, 116, 0.04), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 90, 43, 0.03), transparent 50%);
    pointer-events: none;
}

a { color: var(--bkh-brand, #8B5A2B); text-decoration: none; }
a:hover { color: var(--bkh-accent, #5C8A4B); }

img { max-width: 100%; height: auto; display: block; }

.bkh-container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ===== TOP NAV ===== */
.bkh-nav {
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 90, 43, 0.12);
    position: sticky; top: 0; z-index: 100;
}
.bkh-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px;
}
.bkh-nav-logo { display: flex; align-items: center; }
.bkh-nav-logo img { object-fit: contain; }
.bkh-nav-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--bkh-brand); }

.bkh-nav-links { display: flex; gap: 26px; align-items: center; }
.bkh-nav-links a {
    color: var(--bkh-text); font-size: 0.92rem; font-weight: 500;
    transition: color 0.2s; padding: 6px 0;
}
.bkh-nav-links a:hover { color: var(--bkh-brand); }
.bkh-nav-account {
    background: var(--bkh-brand) !important; color: #fff !important;
    padding: 8px 16px !important; border-radius: 24px;
    transition: background 0.2s;
}
.bkh-nav-account:hover { background: var(--bkh-accent) !important; color: #fff !important; }

.bkh-nav-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: 8px;
}
.bkh-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--bkh-text); transition: 0.3s; }

@media (max-width: 900px) {
    .bkh-nav-links {
        display: none;
        position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: center; justify-content: flex-start;
        gap: 18px; padding: 36px 20px; overflow-y: auto;
        background: rgba(251, 248, 241, 0.98);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        z-index: 99;
    }
    .bkh-nav-links.open { display: flex; }
    .bkh-nav-toggle { display: flex; }
}

/* ===== HERO ===== */
.bkh-hero {
    position: relative; padding: 120px 0 100px; min-height: 70vh;
    display: flex; align-items: center; overflow: hidden;
}
.bkh-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.85;
}
.bkh-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(251,248,241,0.4), rgba(251,248,241,0.95));
}
.bkh-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.bkh-hero-label {
    display: inline-block; padding: 6px 16px; margin-bottom: 24px;
    background: rgba(139, 90, 43, 0.1); color: var(--bkh-brand);
    border: 1px solid rgba(139, 90, 43, 0.25); border-radius: 24px;
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
}
.bkh-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem; line-height: 1.1; font-weight: 700;
    margin-bottom: 18px; color: var(--bkh-text);
}
.bkh-hero-subtitle {
    font-size: 1.2rem; line-height: 1.6; color: rgba(44, 24, 16, 0.75);
    margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.bkh-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 700px) {
    .bkh-hero { padding: 80px 0 60px; min-height: auto; }
    .bkh-hero-title { font-size: 2.4rem; }
    .bkh-hero-subtitle { font-size: 1.05rem; }
}

/* ===== BUTTONS ===== */
.bkh-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 28px;
    font-family: 'Lora', serif; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s; border: none; text-decoration: none;
}
.bkh-btn-primary { background: var(--bkh-brand); color: #fff; }
.bkh-btn-primary:hover { background: var(--bkh-accent); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(139,90,43,0.25); }
.bkh-btn-outline { background: transparent; color: var(--bkh-brand); border: 2px solid var(--bkh-brand); }
.bkh-btn-outline:hover { background: var(--bkh-brand); color: #fff; }
.bkh-btn-text { background: transparent; color: rgba(44,24,16,0.6); padding: 13px 18px; }
.bkh-btn-text:hover { color: var(--bkh-text); text-decoration: underline; }

/* ===== STATS ===== */
.bkh-stats-section { padding: 60px 0; background: rgba(212, 165, 116, 0.08); }
.bkh-stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center;
}
.bkh-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700; color: var(--bkh-brand);
    line-height: 1;
}
.bkh-stat-label {
    margin-top: 8px; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 1.2px; color: rgba(44,24,16,0.6); font-weight: 500;
}
@media (max-width: 700px) {
    .bkh-stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .bkh-stat-value { font-size: 2.2rem; }
}

/* ===== SECTION GENERAL ===== */
.bkh-section { padding: 80px 0; }
.bkh-section.bkh-alt { background: rgba(212, 165, 116, 0.05); }
.bkh-section-label {
    display: inline-block; font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--bkh-brand); font-weight: 600;
    margin-bottom: 12px;
}
.bkh-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem; font-weight: 700; line-height: 1.2;
    margin-bottom: 12px; color: var(--bkh-text);
}
.bkh-section-intro {
    font-size: 1.05rem; color: rgba(44,24,16,0.7); margin-bottom: 36px;
    max-width: 600px;
}
.bkh-richtext { line-height: 1.8; color: rgba(44,24,16,0.8); }
.bkh-richtext p { margin-bottom: 1.2em; }
.bkh-richtext strong { color: var(--bkh-text); }
.bkh-richtext a { color: var(--bkh-brand); text-decoration: underline; }

@media (max-width: 700px) {
    .bkh-section { padding: 60px 0; }
    .bkh-section-title { font-size: 1.8rem; }
}

/* ===== MAP ===== */
.bkh-section-map { padding-bottom: 0; }
.bkh-map-wrap { margin-top: 36px; }
.bkh-map-wrap .leaflet-container { min-height: 540px; border-top: 4px solid var(--bkh-brand); }
.bkh-map-placeholder {
    padding: 60px 24px; text-align: center;
    background: rgba(212, 165, 116, 0.1); color: rgba(44,24,16,0.6);
    border: 2px dashed rgba(139,90,43,0.3); border-radius: 8px;
    font-size: 1rem;
}

/* ===== ABOUT ===== */
.bkh-about-grid {
    display: grid; gap: 56px; align-items: center;
}
.bkh-about-image-right { grid-template-columns: 1.2fr 1fr; }
.bkh-about-image-left  { grid-template-columns: 1fr 1.2fr; }
.bkh-about-image img { border-radius: 12px; box-shadow: 0 14px 40px rgba(44,24,16,0.12); }
@media (max-width: 800px) {
    .bkh-about-grid { grid-template-columns: 1fr !important; gap: 36px; }
    .bkh-about-image { order: -1; }
}

/* ===== WERKWIJZE ===== */
.bkh-werkwijze-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px;
}
.bkh-werkwijze-card {
    padding: 32px 28px; background: #fff;
    border: 1px solid rgba(139,90,43,0.12); border-radius: 12px;
    box-shadow: 0 6px 18px rgba(44,24,16,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}
.bkh-werkwijze-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(44,24,16,0.08); }
.bkh-werkwijze-step {
    font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700;
    color: var(--bkh-accent); line-height: 1; margin-bottom: 12px;
}
.bkh-werkwijze-card h3 {
    font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 10px;
    color: var(--bkh-text);
}
.bkh-werkwijze-card p { color: rgba(44,24,16,0.7); }
@media (max-width: 800px) { .bkh-werkwijze-grid { grid-template-columns: 1fr; } }

/* ===== UPLOADS GRID ===== */
.bkh-uploads-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px; margin-top: 28px;
}
.bkh-upload-card {
    display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 8px;
    position: relative; background: #f0e9dc; transition: transform 0.25s;
}
.bkh-upload-card img { width: 100%; height: 100%; object-fit: cover; }
.bkh-upload-card:hover { transform: scale(1.02); }
.bkh-upload-title {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
    background: linear-gradient(to top, rgba(44,24,16,0.85), transparent);
    color: #fff; font-size: 0.85rem; font-weight: 500;
}

/* ===== CONTRIBUTORS ===== */
.bkh-contrib-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px; margin-top: 36px;
}
.bkh-contrib-card {
    text-align: center; padding: 20px 14px; background: #fff;
    border: 1px solid rgba(139,90,43,0.1); border-radius: 10px;
}
.bkh-contrib-card img { border-radius: 50%; margin: 0 auto 10px; }
.bkh-contrib-name { font-weight: 600; font-size: 0.92rem; }
.bkh-contrib-count { font-size: 0.78rem; color: rgba(44,24,16,0.55); margin-top: 2px; }

/* ===== REVIEWS ===== */
.bkh-reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 36px;
}
.bkh-review-card {
    padding: 28px; background: #fff;
    border: 1px solid rgba(139,90,43,0.1); border-radius: 12px;
    box-shadow: 0 4px 14px rgba(44,24,16,0.04);
}
.bkh-stars { color: #d4a574; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.bkh-review-card blockquote {
    font-style: italic; line-height: 1.7; margin-bottom: 14px;
    color: rgba(44,24,16,0.85);
}
.bkh-review-name { font-weight: 600; font-size: 0.9rem; color: rgba(44,24,16,0.65); }

/* ===== FAQ ===== */
.bkh-faq-narrow { max-width: 760px; }
.bkh-faq-list { margin-top: 28px; }
.bkh-faq-item {
    background: #fff; border: 1px solid rgba(139,90,43,0.12);
    border-radius: 10px; margin-bottom: 12px; overflow: hidden;
    transition: border-color 0.2s;
}
.bkh-faq-item[open] { border-color: var(--bkh-brand); }
.bkh-faq-item summary {
    padding: 18px 22px; cursor: pointer; font-weight: 600; font-family: 'Playfair Display', serif;
    font-size: 1.05rem; list-style: none; position: relative;
}
.bkh-faq-item summary::after {
    content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; color: var(--bkh-brand); transition: transform 0.2s;
}
.bkh-faq-item[open] summary::after { content: '−'; }
.bkh-faq-answer { padding: 0 22px 18px; color: rgba(44,24,16,0.8); line-height: 1.7; }

/* ===== ACCOUNT ===== */
.bkh-account-narrow { max-width: 880px; }
.bkh-account-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px;
}
.bkh-account-card {
    padding: 32px; background: #fff; border: 1px solid rgba(139,90,43,0.12);
    border-radius: 12px;
}
.bkh-account-card h3 {
    font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 18px;
}
.bkh-account-register { background: var(--bkh-brand); color: #fff; border-color: var(--bkh-brand); }
.bkh-account-register h3, .bkh-account-register p { color: #fff; }
.bkh-account-register .bkh-btn-primary { background: #fff; color: var(--bkh-brand); }
.bkh-account-register .bkh-btn-primary:hover { background: rgba(255,255,255,0.9); color: var(--bkh-text); }

.bkh-account-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Single account card (login + register tabs combined) */
.bkh-account-single { max-width: 480px; margin: 28px auto 0; }

/* Style voor de bka-auth shortcode binnen onze sectie */
.bkh-account-card .bka-auth-tabs {
    display: flex; gap: 0; margin-bottom: 18px; border-bottom: 1px solid rgba(139,90,43,0.15);
}
.bkh-account-card .bka-auth-tab {
    flex: 1; padding: 12px; background: transparent; border: none; cursor: pointer;
    font-family: 'Lora', serif; font-size: 0.95rem; font-weight: 500;
    color: rgba(44,24,16,0.5); border-bottom: 2px solid transparent; transition: all 0.2s;
}
.bkh-account-card .bka-auth-tab.active { color: var(--bkh-brand); border-bottom-color: var(--bkh-brand); font-weight: 600; }
.bkh-account-card .bka-auth-panel { display: none; }
.bkh-account-card .bka-auth-panel.active { display: block; }
.bkh-account-card .bka-field { margin-bottom: 14px; }
.bkh-account-card .bka-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
.bkh-account-card .bka-field input {
    width: 100%; padding: 10px 14px; border: 1px solid rgba(139,90,43,0.3);
    border-radius: 6px; font-size: 0.95rem; font-family: inherit; background: #fafafa;
}
.bkh-account-card .bka-field input:focus { outline: none; border-color: var(--bkh-brand); background: #fff; }
.bkh-account-card .bka-btn-primary, .bkh-account-card .bka-btn-block {
    width: 100%; padding: 12px; background: var(--bkh-brand); color: #fff;
    border: none; border-radius: 24px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
    transition: background 0.2s;
}
.bkh-account-card .bka-btn-primary:hover { background: var(--bkh-accent); }
.bkh-account-card .bka-error {
    background: rgba(220,53,69,0.1); border-left: 3px solid #dc3545;
    padding: 10px 14px; margin-bottom: 14px; border-radius: 4px; color: #800;
    font-size: 0.9rem;
}
.bkh-account-card .bka-disclaimer {
    font-size: 0.78rem; color: rgba(44,24,16,0.6); margin-top: 14px; line-height: 1.5;
}

/* WP login form styling */
.login-username, .login-password { margin-bottom: 14px; }
.login-username label, .login-password label, .login-remember label {
    display: block; font-size: 0.85rem; margin-bottom: 4px; font-weight: 500;
}
.login-username input, .login-password input {
    width: 100%; padding: 10px 14px; border: 1px solid rgba(139,90,43,0.3);
    border-radius: 6px; font-size: 0.95rem; font-family: inherit; background: #fafafa;
}
.login-username input:focus, .login-password input:focus { outline: none; border-color: var(--bkh-brand); background: #fff; }
.login-remember { font-size: 0.85rem; margin: 14px 0; }
.login-submit input {
    width: 100%; padding: 12px; background: var(--bkh-brand); color: #fff;
    border: none; border-radius: 24px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
.login-submit input:hover { background: var(--bkh-accent); }
.bkh-tiny { font-size: 0.82rem; margin-top: 12px; }

@media (max-width: 700px) { .bkh-account-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.bkh-footer {
    background: var(--bkh-text); color: rgba(255,255,255,0.78);
    padding: 56px 0 28px; margin-top: 60px;
}
.bkh-footer a { color: rgba(255,255,255,0.9); }
.bkh-footer a:hover { color: var(--bkh-accent); }
.bkh-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px;
    padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bkh-footer-brand strong { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #fff; display: block; margin-bottom: 10px; }
.bkh-footer-brand p { font-size: 0.92rem; line-height: 1.6; max-width: 420px; }
.bkh-footer-col h4 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.bkh-footer-col ul { list-style: none; }
.bkh-footer-col li { margin-bottom: 8px; font-size: 0.92rem; }
.bkh-footer-legal { padding-top: 24px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

@media (max-width: 700px) {
    .bkh-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* === Account dashboard ([bkh_account] shortcode) === */
.bkh-account-page {
    max-width: 980px; margin: 40px auto; padding: 0 20px;
    font-family: 'Lora', Georgia, serif; color: var(--bkh-text, #2C1810);
}
.bkh-account-hero {
    padding: 32px 28px; background: linear-gradient(135deg, var(--bkh-brand, #8B5A2B), #6b4521);
    color: #fff; border-radius: 12px; margin-bottom: 28px;
}
.bkh-account-hero h1 {
    font-family: 'Playfair Display', serif; font-size: 2rem; margin: 0 0 8px;
}
.bkh-account-hero p { margin: 0 0 6px; opacity: 0.9; }
.bkh-back-link { color: #fff; text-decoration: underline; opacity: 0.85; font-size: 0.92rem; }
.bkh-back-link:hover { opacity: 1; }

.bkh-account-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px;
}
.bkh-account-block {
    background: #fff; border: 1px solid rgba(139,90,43,0.12);
    border-radius: 10px; padding: 24px; box-shadow: 0 4px 14px rgba(44,24,16,0.04);
}
.bkh-account-block h2 {
    font-family: 'Playfair Display', serif; font-size: 1.3rem;
    margin: 0 0 16px; color: var(--bkh-brand, #8B5A2B);
}
.bkh-account-block .bka-field { margin-bottom: 14px; }
.bkh-account-block .bka-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; color: rgba(44,24,16,0.7); }
.bkh-account-block .bka-field input[type=text],
.bkh-account-block .bka-field input[type=email],
.bkh-account-block .bka-field input[type=password] {
    width: 100%; padding: 10px 14px; border: 1px solid rgba(139,90,43,0.25);
    border-radius: 6px; font-size: 0.95rem; font-family: inherit; background: #fafafa;
}
.bkh-account-block .bka-field input:focus {
    outline: none; border-color: var(--bkh-brand, #8B5A2B); background: #fff;
}
.bkh-account-block .bka-btn-primary,
.bkh-account-block .bka-btn-outline {
    padding: 10px 22px; border-radius: 24px; font-weight: 600; cursor: pointer;
    font-family: inherit; font-size: 0.92rem; border: none;
}
.bkh-account-block .bka-btn-primary { background: var(--bkh-brand, #8B5A2B); color: #fff; }
.bkh-account-block .bka-btn-primary:hover { background: var(--bkh-accent, #5C8A4B); color: #fff; }
.bkh-account-block .bka-btn-outline {
    background: transparent; color: var(--bkh-brand, #8B5A2B);
    border: 2px solid var(--bkh-brand, #8B5A2B); text-decoration: none; display: inline-block;
}
.bkh-account-block .bka-btn-outline:hover { background: var(--bkh-brand, #8B5A2B); color: #fff; }

.bkh-radio { display: block; margin: 4px 0; font-size: 0.92rem; cursor: pointer; }
.bkh-radio input { margin-right: 6px; }

.bkh-msg {
    padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 0.92rem;
}
.bkh-msg-ok { background: rgba(95,138,75,0.12); color: #2d5e22; border-left: 3px solid #5C8A4B; }
.bkh-msg-err { background: rgba(220,53,69,0.1); color: #800; border-left: 3px solid #dc3545; }

/* Empty-state */
.bkh-empty {
    text-align: center; padding: 36px; font-style: italic;
    color: rgba(44,24,16,0.5); background: rgba(212,165,116,0.06);
    border-radius: 8px;
}
