/* B4B Democlick - Bookchoice-stijl */
:root {
    --color-primary: #2d7a4f;
    --color-primary-dark: #1e5a38;
    --color-primary-light: #3d9a63;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e5e7eb;
    --color-accent: #f59e0b;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 38px; /* onder demo-bar */
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    max-width: 180px;
    min-width: 80px;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.logo-text {
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Demo-balk: gebruiker & organisatie switcher (boven de header) */
.demo-bar {
    background: #374151;
    color: #e5e7eb;
    padding: 8px 0;
    font-size: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 101;
}

.demo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.demo-bar-label {
    margin-right: auto;
    opacity: 0.9;
    font-weight: 500;
}

.demo-bar-switchers {
    display: flex;
    align-items: center;
    gap: 16px;
}

.demo-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-switcher-label {
    color: #9ca3af;
    font-weight: 500;
}

.demo-bar .demo-select {
    padding: 4px 8px;
    border: 1px solid #4b5563;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #1f2937;
    color: #e5e7eb;
    cursor: pointer;
}

.demo-bar .demo-select:hover {
    border-color: #6b7280;
}

.demo-org-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-org-preview {
    display: flex;
    align-items: center;
}

.demo-org-logo {
    height: 24px;
    width: auto;
    max-width: 120px;
    min-width: 60px;
    object-fit: contain;
}

/* Admin organisatie-logo's */
.org-logo-cell {
    width: 56px;
    min-width: 56px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.org-logo-thumb {
    max-width: 48px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.org-logo-cell .fw-bold {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

/* Organisatietabel: namen niet afkappen */
.org-table td,
.org-table th {
    white-space: normal;
}
.org-table .org-logo-cell {
    white-space: nowrap;
}
.org-detail-logo {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.demo-org-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Header org-switcher (niet meer gebruikt in nav, alleen in demo-bar) */
.org-switcher .org-select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
}

.org-switcher .org-select:hover {
    border-color: var(--color-primary);
}

.hero-badge {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white !important;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
}

.btn-ghost:hover {
    background: var(--color-bg-alt);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 80px 24px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero .btn-primary {
    background: white;
    color: var(--color-primary) !important;
    margin-bottom: 24px;
}

.hero .btn-primary:hover {
    background: var(--color-bg-alt);
}

.hero-disclaimer {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Bookchoice-promo: B2B-klanten triggeren om ook Bookchoice-abonnement te nemen */
.bookchoice-promo {
    padding: 24px 24px;
}

.bookchoice-promo-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: #f8faf8;
    border: 1px solid #e2e8e4;
    border-left: 4px solid #2d7a4f;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bookchoice-promo-card:hover {
    border-left-color: #1e5a38;
    box-shadow: var(--shadow-sm);
}

.bookchoice-promo-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.bookchoice-promo-body {
    flex: 1;
    min-width: 0;
}

.bookchoice-promo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.bookchoice-promo-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.bookchoice-promo-cta {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d7a4f;
    white-space: nowrap;
}

.bookchoice-promo-card:hover .bookchoice-promo-cta {
    color: #1e5a38;
}

/* Sections */
.section {
    padding: 60px 24px;
}

.section:nth-child(even) {
    background: var(--color-bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.step-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Books section */
.books-format {
    text-align: center;
    font-weight: 500;
    margin-bottom: 24px;
}

.month-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 24px;
    border: 2px solid var(--color-border);
    background: white;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
}

.book-card {
    text-align: center;
}

.book-cover {
    aspect-ratio: 2/3;
    background: var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.book-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.book-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Boekenpagina (Mijn boeken) */
.boeken-page .boeken-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.boeken-page .boeken-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.boeken-select-org {
    text-align: center;
    padding: 48px 24px;
}

.boeken-select-org .org-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.book-card-boeken .book-rating {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.book-card-boeken .book-genre {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.books-grid-boeken .no-books {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
}

.month-tabs .tab-btn {
    text-decoration: none;
    color: inherit;
}

/* Memberships */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.membership-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border);
    position: relative;
}

.membership-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.membership-card h3 {
    font-size: 1.25rem;
    margin: 24px 0 16px;
}

.price {
    margin-bottom: 24px;
}

.price .amount {
    font-size: 2rem;
    font-weight: 700;
}

.price .period {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.features {
    list-style: none;
    margin-bottom: 24px;
}

.features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.membership-card .btn {
    width: 100%;
    text-align: center;
}

/* Why Bookchoice */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.why-card {
    text-align: center;
    padding: 24px;
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--color-text-muted);
}

/* Deal section */
.section-deal {
    text-align: center;
}

.section-deal p {
    max-width: 600px;
    margin: 0 auto 24px;
}

.deal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Guarantee */
.section-guarantee {
    text-align: center;
}

.section-guarantee p {
    max-width: 700px;
    margin: 0 auto 16px;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: 40px 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .membership-grid {
        grid-template-columns: 1fr;
    }

    .bookchoice-promo-card {
        flex-direction: column;
        text-align: center;
    }

    .bookchoice-promo-cta {
        margin-top: 4px;
    }
}
