/**
 * PDF Boek Viewer Deluxe - Frontend CSS v2.5.6
 *
 * Flipbook viewer, thumbnails, double page, modal, luxe book grid
 * v2.5.6: Match thumbnail & PDF canvas backgrounds with theme
 *
 * @package PDF_Boek_Viewer_Deluxe
 */

/* === Page-level background matching (eliminates body flash) === */
body.pbv-viewer-page {
    transition: background-color 0.3s ease;
}
/* Restore original background when navigating away (JS removes class) */
body.pbv-viewer-page-exit {
    transition: background-color 0.4s ease;
}

/* === CSS Variables === */
:root {
    --pbv-accent: #0073aa;
    --pbv-accent-light: rgba(0, 115, 170, 0.12);
    --pbv-accent-dark: #005a87;
    --pbv-radius: 8px;
    --pbv-radius-lg: 16px;
    --pbv-radius-xl: 20px;
    --pbv-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --pbv-shadow-md: 0 4px 24px rgba(0, 0, 0, 0.1);
    --pbv-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.15);
    --pbv-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --pbv-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pbv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pbv-gradient-primary: linear-gradient(135deg, var(--pbv-accent) 0%, var(--pbv-accent-dark) 100%);
    --pbv-gradient-shine: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
}

/* === Viewer Wrapper === */
.pbv-viewer-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--pbv-radius);
    box-shadow: var(--pbv-shadow-md);
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    font-family: var(--pbv-font);
    /* Use full available width and proper height */
    width: 100%;
    min-height: 500px;
    /* Calculate height based on viewport */
    height: 80vh;
    max-height: 900px;
}

/* === Anti White Flash v2.5.3: initializing state === */
.pbv-viewer-wrapper.pbv-viewer-initializing {
    /* Viewer wrapper already has background-color via inline style + critical CSS */
}

.pbv-viewer-wrapper.pbv-viewer-initializing .pbv-flipbook-container,
.pbv-viewer-wrapper.pbv-viewer-initializing .pbv-toolbar {
    opacity: 0 !important;
    pointer-events: none;
}

/* Smooth fade-in when viewer is ready */
.pbv-viewer-wrapper .pbv-flipbook-container,
.pbv-viewer-wrapper .pbv-toolbar {
    transition: opacity 0.4s ease-in-out;
}

/* === Skeleton Screen (replaces old spinner for zero-flash loading) === */
.pbv-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
    /* background-color set by critical inline CSS */
    transition: opacity 0.35s ease-out;
}

.pbv-skeleton.pbv-skeleton-fade-out {
    opacity: 0;
    pointer-events: none;
}

.pbv-skeleton-pages {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.pbv-skeleton-page {
    width: 45%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    background: linear-gradient(110deg, rgba(0,0,0,.04) 8%, rgba(0,0,0,.08) 18%, rgba(0,0,0,.04) 33%);
    background-size: 200% 100%;
    animation: pbv-skeleton-shimmer 1.5s linear infinite;
}

.pbv-skeleton-text {
    width: 120px;
    height: 12px;
    border-radius: 6px;
    opacity: 0.3;
    background: rgba(0,0,0,.12);
}

/* Dark theme skeleton */
.pbv-theme-dark .pbv-skeleton-page {
    background: linear-gradient(110deg, rgba(255,255,255,.04) 8%, rgba(255,255,255,.08) 18%, rgba(255,255,255,.04) 33%);
    background-size: 200% 100%;
    animation: pbv-skeleton-shimmer 1.5s linear infinite;
}

.pbv-theme-dark .pbv-skeleton-text {
    background: rgba(255,255,255,.15);
}

@keyframes pbv-skeleton-shimmer {
    to { background-position: -200% 0; }
}

/* === Loading State (fallback) === */
.pbv-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: inherit;
    z-index: 100;
    transition: opacity 0.3s ease-out;
}

.pbv-loading.pbv-loading-fade-out {
    opacity: 0;
    pointer-events: none;
}

.pbv-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--pbv-accent);
    border-radius: 50%;
    animation: pbv-spin 0.8s linear infinite;
}

@keyframes pbv-spin {
    to { transform: rotate(360deg); }
}

.pbv-loading p {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

/* === Error Message === */
.pbv-error-message {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c0392b;
    z-index: 90;
}

.pbv-error-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.pbv-error {
    color: #c0392b;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* === Flipbook Container === */
.pbv-flipbook-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, margin-left 0.3s ease;
    /* Use all available space - minimal padding */
    min-height: 0;
    padding: 4px;
}

.pbv-flipbook {
    position: relative;
}

/* PageFlip page styling */
.pbv-page {
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
}

/* HiDPI canvas: ensure CSS dimensions are respected */
.pbv-page-canvas {
    display: block;
    max-width: 100%;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

/* Cover pages (hard) styling */
.pbv-page[data-density="hard"] {
    background-color: #ffffff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* PageFlip overrides for better look */
.stf__parent {
    margin: 0 auto;
}

.stf__wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* Book spine shadow */
.stf__block::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    margin-left: -3px;
    background: linear-gradient(to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.15) 30%,
        rgba(0,0,0,0.3) 49%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.3) 51%,
        rgba(0,0,0,0.15) 70%,
        rgba(0,0,0,0) 100%
    );
    z-index: 20;
    pointer-events: none;
}

/* === Toolbar === */
.pbv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    gap: 8px;
    flex-shrink: 0;
    z-index: 10;
}

.pbv-toolbar-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 40px;
}

.pbv-nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pbv-action-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === Buttons === */
.pbv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
    position: relative;
    outline: none;
}

.pbv-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--pbv-accent);
    transform: scale(1.05);
}

.pbv-btn:active {
    transform: scale(0.95);
}

.pbv-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.pbv-btn:disabled:hover {
    background: transparent;
    color: #555;
    transform: none;
}

.pbv-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Fit mode active state */
.pbv-btn.pbv-fit-active {
    background: var(--pbv-accent-light);
    color: var(--pbv-accent);
}

/* Button style: rounded */
.pbv-buttons-rounded .pbv-btn { border-radius: 8px; }
.pbv-buttons-square .pbv-btn { border-radius: 2px; }
.pbv-buttons-pill .pbv-btn { border-radius: 50%; }

/* === Quality Selector === */
.pbv-quality-select {
    font-size: 11px;
    padding: 3px 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
    color: #555;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    max-width: 70px;
}

.pbv-quality-select:focus {
    border-color: var(--pbv-accent);
}

/* === Page Info === */
.pbv-page-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.pbv-current-page {
    width: 44px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
    transition: border-color 0.2s ease;
}

.pbv-current-page:focus {
    border-color: var(--pbv-accent);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.pbv-current-page::-webkit-inner-spin-button,
.pbv-current-page::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pbv-total-pages {
    font-weight: 600;
    color: #333;
}

/* === Zoom Level === */
.pbv-zoom-level {
    font-size: 12px;
    color: #777;
    min-width: 36px;
    text-align: center;
    font-weight: 500;
}

/* === Thumbnails Sidebar === */
.pbv-thumbnails-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 120;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.pbv-thumbnails-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.3px;
}

.pbv-thumbnails-close {
    border: none;
    background: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.pbv-thumbnails-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.06);
}

.pbv-thumbnails-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pbv-thumbnails-list::-webkit-scrollbar {
    width: 5px;
}

.pbv-thumbnails-list::-webkit-scrollbar-track {
    background: transparent;
}

.pbv-thumbnails-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

.pbv-thumbnails-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.pbv-thumbnail-item,
.pbv-thumbnail {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

.pbv-thumbnail-item:hover,
.pbv-thumbnail:hover {
    border-color: rgba(0, 115, 170, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pbv-thumbnail-item:focus-visible,
.pbv-thumbnail:focus-visible {
    outline: 2px solid var(--pbv-accent);
    outline-offset: 2px;
}

.pbv-thumbnail-item.pbv-thumbnail-active,
.pbv-thumbnail.pbv-thumbnail-active {
    border-color: var(--pbv-accent);
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.3);
    transform: translateY(-1px);
}

.pbv-thumbnail-canvas {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
}

.pbv-thumbnail-label {
    display: block;
    font-size: 11px;
    color: #888;
    padding: 5px 0;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pbv-thumbnail-active .pbv-thumbnail-label {
    color: var(--pbv-accent);
    font-weight: 700;
    background: var(--pbv-accent-light);
}

/* Viewer with open thumbnails */
.pbv-thumbnails-open .pbv-flipbook-container {
    margin-left: 200px;
}

/* === Fullscreen Mode === */

/* CSS fallback fullscreen (position: fixed) */
.pbv-is-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    /* Gebruik de viewer achtergrondkleur uit CSS variable, fallback naar inline bg */
    background-color: var(--pbv-viewer-bg, inherit) !important;
    max-height: none !important;
    min-height: 100vh !important;
    z-index: 999999;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Wanneer fullscreen actief is, geen scrollbars */
body.pbv-fullscreen-active {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Native Fullscreen API styles */
.pbv-viewer-wrapper:fullscreen,
.pbv-viewer-wrapper:-webkit-full-screen,
.pbv-viewer-wrapper:-moz-full-screen,
.pbv-viewer-wrapper:-ms-fullscreen,
.pbv-viewer-container:fullscreen,
.pbv-viewer-container:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--pbv-viewer-bg, inherit) !important;
    z-index: 999999 !important;
}

/* Requested fallback selector */
.pbv-viewer-container:fullscreen {
    background-color: var(--pbv-viewer-bg, inherit) !important;
}

/* Fullscreen: zorg dat alle elementen zichtbaar zijn */
.pbv-is-fullscreen {
    display: flex !important;
    flex-direction: column !important;
}

.pbv-is-fullscreen .pbv-flipbook-container {
    flex: 1 !important;
    display: flex !important;
}

.pbv-is-fullscreen .pbv-toolbar {
    display: flex !important;
}

/* Native fullscreen API extra styling */
.pbv-viewer-wrapper:fullscreen {
    display: flex !important;
    flex-direction: column !important;
}

.pbv-viewer-wrapper:-webkit-full-screen {
    display: flex !important;
    flex-direction: column !important;
}

/* Flipbook container styling in fullscreen */
.pbv-is-fullscreen .pbv-flipbook-container {
    min-height: 0;
    padding: 8px;
    overflow: hidden;
    background: transparent !important;
}

/* Debug mode overlay */
.pbv-debug-active {
    outline: 2px dashed rgba(0, 115, 170, 0.45);
    outline-offset: -2px;
}

.pbv-debug-active .pbv-flipbook-container {
    box-shadow: inset 0 0 0 2px rgba(0, 115, 170, 0.3);
}

.pbv-debug-panel {
    position: absolute;
    right: 8px;
    top: 8px;
    width: min(360px, calc(100% - 16px));
    z-index: 120;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    font-size: 11px;
    line-height: 1.3;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

.pbv-debug-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #93c5fd;
}

.pbv-debug-dimensions {
    margin-bottom: 8px;
    color: #dbeafe;
}

.pbv-debug-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.pbv-debug-btn {
    border: 1px solid rgba(147, 197, 253, 0.5);
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 10px;
    padding: 6px;
    cursor: pointer;
}

.pbv-debug-btn:hover {
    background: rgba(51, 65, 85, 1);
}

.pbv-debug-log {
    margin: 0;
    height: 120px;
    overflow: auto;
    white-space: pre-wrap;
    background: rgba(2, 6, 23, 0.55);
    border-radius: 6px;
    padding: 8px;
    color: #d1fae5;
}

/* Dark theme in fullscreen */
.pbv-is-fullscreen.pbv-theme-dark,
.pbv-theme-dark:fullscreen,
.pbv-theme-dark:-webkit-full-screen {
    background-color: var(--pbv-viewer-bg, #1a1a2e) !important;
}

/* === Custom Styling via CSS Variables === */

/* Toolbar achtergrondkleur */
.pbv-viewer-wrapper[style*="--pbv-toolbar-bg"] .pbv-toolbar {
    background-color: var(--pbv-toolbar-bg) !important;
}

/* Tekst kleur */
.pbv-viewer-wrapper[style*="--pbv-text-color"] .pbv-toolbar,
.pbv-viewer-wrapper[style*="--pbv-text-color"] .pbv-toolbar .pbv-btn,
.pbv-viewer-wrapper[style*="--pbv-text-color"] .pbv-toolbar .pbv-page-info,
.pbv-viewer-wrapper[style*="--pbv-text-color"] .pbv-toolbar .pbv-zoom-level,
.pbv-viewer-wrapper[style*="--pbv-text-color"] .pbv-toolbar .pbv-quality-select,
.pbv-viewer-wrapper[style*="--pbv-text-color"] .pbv-toolbar a {
    color: var(--pbv-text-color) !important;
}

.pbv-viewer-wrapper[style*="--pbv-text-color"] .pbv-toolbar .pbv-btn svg {
    fill: var(--pbv-text-color) !important;
}

/* Achtergrond afbeelding overlay */
.pbv-has-bg-image {
    position: relative;
    isolation: isolate; /* Creëert stacking context zodat z-index:-1 op ::before werkt */
}

.pbv-has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pbv-bg-image);
    background-repeat: var(--pbv-bg-repeat, no-repeat);
    background-position: var(--pbv-bg-position, center);
    background-size: var(--pbv-bg-size, cover);
    opacity: var(--pbv-bg-opacity, 1);
    z-index: -1; /* Achter alle content maar boven de wrapper achtergrondkleur */
    pointer-events: none;
    border-radius: inherit;
}

/* Background image ook in fullscreen */
.pbv-is-fullscreen.pbv-has-bg-image::before {
    border-radius: 0;
}

/* Custom theme: gebruik de CSS variabelen */
.pbv-theme-custom {
    background-color: var(--pbv-viewer-bg, #f5f5f5);
}

.pbv-theme-custom .pbv-flipbook-container {
    background: transparent;
}

/* Custom theme: thumbnails & canvas inherit custom background */
.pbv-theme-custom .pbv-thumbnails-sidebar {
    background: var(--pbv-viewer-bg, rgba(255, 255, 255, 0.98));
    border-right-color: rgba(128, 128, 128, 0.15);
}
.pbv-theme-custom .pbv-thumbnail-item,
.pbv-theme-custom .pbv-thumbnail { background: var(--pbv-viewer-bg, #fff); }
.pbv-theme-custom .pbv-thumbnail-canvas { background-color: var(--pbv-viewer-bg, #f5f5f5); }
.pbv-theme-custom .pbv-page-canvas { background-color: var(--pbv-viewer-bg, #f5f5f5); }

/* === Dark Theme === */
.pbv-theme-dark {
    background-color: #1a1a2e !important;
}

.pbv-theme-dark .pbv-toolbar {
    background: rgba(26, 26, 46, 0.95);
    border-top-color: rgba(255, 255, 255, 0.08);
}

.pbv-theme-dark .pbv-btn { color: #ccc; }
.pbv-theme-dark .pbv-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pbv-theme-dark .pbv-page-info, .pbv-theme-dark .pbv-zoom-level { color: #aaa; }
.pbv-theme-dark .pbv-current-page { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: #eee; }
.pbv-theme-dark .pbv-total-pages { color: #ddd; }
.pbv-theme-dark .pbv-loading p { color: #aaa; }
.pbv-theme-dark .pbv-spinner { border-color: rgba(255, 255, 255, 0.1); border-top-color: var(--pbv-accent); }

.pbv-theme-dark .pbv-thumbnails-sidebar {
    background: rgba(26, 26, 46, 0.97);
    border-right-color: rgba(255, 255, 255, 0.08);
}

.pbv-theme-dark .pbv-thumbnails-header { color: #ddd; border-bottom-color: rgba(255, 255, 255, 0.08); }
.pbv-theme-dark .pbv-thumbnail-item,
.pbv-theme-dark .pbv-thumbnail { background: rgba(255, 255, 255, 0.05); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.pbv-theme-dark .pbv-thumbnail-canvas { background-color: #1a1a2e; }
.pbv-theme-dark .pbv-thumbnail-label { color: #aaa; background: rgba(255, 255, 255, 0.03); border-top-color: rgba(255, 255, 255, 0.06); }
.pbv-theme-dark .pbv-thumbnails-close { color: #aaa; }
.pbv-theme-dark .pbv-thumbnails-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.pbv-theme-dark .pbv-thumbnails-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }
.pbv-theme-dark .pbv-thumbnails-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }
/* PDF canvas & PageFlip backgrounds — prevent white flash during render */
.pbv-theme-dark .pbv-page-canvas { background-color: #1a1a2e; }
.pbv-theme-dark .stf__parent,
.pbv-theme-dark .stf__wrapper,
.pbv-theme-dark .stf__block { background-color: transparent; }
.pbv-theme-dark .pbv-flipbook-container { background-color: transparent; }
.pbv-theme-dark .pbv-quality-select { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: #ddd; }

/* ============================================== */
/* === LUXE Book Grid (pdf_boek_lijst) === */
/* ============================================== */

.pbv-book-grid {
    display: grid;
    gap: 32px;
    margin: 30px 0;
    padding: 0;
}

.pbv-grid-cols-1 { grid-template-columns: 1fr; }
.pbv-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pbv-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pbv-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pbv-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.pbv-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* === Luxe Book Card === */
.pbv-book-card {
    position: relative;
    background: #fff;
    border-radius: var(--pbv-radius-xl);
    overflow: hidden;
    box-shadow: var(--pbv-shadow-md);
    transition: all var(--pbv-transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pbv-book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pbv-shadow-xl);
    border-color: rgba(0, 0, 0, 0.06);
}

/* === Cover Image === */
.pbv-book-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.pbv-book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.06) 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--pbv-transition);
}

.pbv-book-card:hover .pbv-book-cover::after {
    opacity: 0;
}

.pbv-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.pbv-book-card:hover .pbv-book-cover img {
    transform: scale(1.08);
}

.pbv-book-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ced4da;
    background: linear-gradient(145deg, #f1f3f5 0%, #dee2e6 100%);
}

.pbv-book-no-cover svg {
    width: 56px;
    height: 56px;
    opacity: 0.5;
}

/* === Badge === */
.pbv-book-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 50px;
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pbv-badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
}

.pbv-badge-popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
}

/* === Book Info Section === */
.pbv-book-info {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pbv-book-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px 0;
    line-height: 1.35;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Book Meta (page count, views, date) === */
.pbv-book-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 6px;
    flex-wrap: wrap;
}

.pbv-book-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #868e96;
    font-weight: 500;
}

.pbv-book-meta-item svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
    opacity: 0.7;
}

/* === Book Description === */
.pbv-book-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Book Actions === */
.pbv-book-actions {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.pbv-btn-view {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: var(--pbv-gradient-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--pbv-transition);
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.pbv-btn-view::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pbv-gradient-shine);
    border-radius: inherit;
    pointer-events: none;
}

.pbv-btn-view svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pbv-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
    filter: brightness(1.08);
}

.pbv-btn-view:hover svg {
    transform: translateX(2px);
}

.pbv-btn-view:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

/* Loading state for button */
.pbv-btn-view.pbv-loading-btn {
    pointer-events: none;
    opacity: 0.8;
}

.pbv-btn-view.pbv-loading-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pbv-spin 0.7s linear infinite;
}

/* === Share Button === */
.pbv-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--pbv-transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.pbv-share-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.pbv-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pbv-share-btn:hover {
    background: #43A047;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.pbv-share-btn:hover svg {
    transform: scale(1.1);
}

.pbv-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Share toast notification */
.pbv-share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pbv-share-toast.pbv-share-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === Loading Skeleton === */
.pbv-book-card.pbv-skeleton {
    pointer-events: none;
}

.pbv-skeleton .pbv-book-cover {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pbv-shimmer 1.5s ease-in-out infinite;
}

@keyframes pbv-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Dark theme book grid */
.pbv-theme-dark .pbv-book-card {
    background: linear-gradient(145deg, #252540 0%, #1e1e35 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

.pbv-theme-dark .pbv-book-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pbv-theme-dark .pbv-book-title {
    color: #f1f3f5;
}

.pbv-theme-dark .pbv-book-description {
    color: #adb5bd;
}

.pbv-theme-dark .pbv-book-meta-item {
    color: #868e96;
}

.pbv-theme-dark .pbv-book-no-cover {
    background: linear-gradient(145deg, #2a2a45 0%, #1e1e35 100%);
    color: #4a4a6a;
}

/* === Modal === */
.pbv-modal {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbv-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pbv-modal-content {
    position: relative;
    width: 94%;
    height: 92%;
    max-width: 1400px;
    max-height: 900px;
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--pbv-shadow-xl);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.pbv-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 60;
    transition: all 0.2s ease;
    padding: 0;
    backdrop-filter: blur(4px);
}

.pbv-modal-close:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.1);
}

.pbv-modal-body {
    flex: 1;
    overflow: hidden;
}

.pbv-modal-body .pbv-viewer-wrapper {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-height: none !important;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .pbv-book-grid {
        gap: 24px;
    }

    .pbv-grid-cols-4,
    .pbv-grid-cols-5,
    .pbv-grid-cols-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .pbv-book-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }

    .pbv-book-info {
        padding: 16px;
    }

    .pbv-book-title {
        font-size: 15px;
    }

    .pbv-book-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .pbv-btn-view {
        padding: 11px 18px;
        font-size: 13px;
        border-radius: 10px;
    }

    .pbv-share-btn {
        width: 42px;
        min-width: 42px;
        border-radius: 10px;
    }

    .pbv-viewer-wrapper {
        border-radius: 0;
        min-height: 350px;
        height: 70vh;
    }

    .pbv-toolbar {
        padding: 6px 10px;
        flex-wrap: wrap;
    }

    .pbv-toolbar-left { min-width: auto; }

    .pbv-btn {
        width: 32px;
        height: 32px;
    }

    .pbv-current-page {
        width: 36px;
        font-size: 12px;
    }

    .pbv-page-info { font-size: 12px; }
    .pbv-zoom-level { display: none; }
    .pbv-quality-select { display: none; }

    .pbv-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .pbv-thumbnails-sidebar {
        width: 160px;
    }

    .pbv-thumbnails-open .pbv-flipbook-container {
        margin-left: 160px;
    }

    .pbv-book-meta {
        gap: 8px;
    }

    .pbv-book-badge {
        font-size: 10px;
        padding: 4px 9px;
    }
}

@media (max-width: 480px) {
    .pbv-book-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .pbv-book-card {
        border-radius: var(--pbv-radius-lg);
    }

    .pbv-toolbar {
        padding: 4px 8px;
    }

    .pbv-nav-controls, .pbv-action-controls { gap: 2px; }

    .pbv-btn {
        width: 28px;
        height: 28px;
    }

    .pbv-btn svg {
        width: 14px;
        height: 14px;
    }

    .pbv-thumbnails-sidebar {
        width: 130px;
    }

    .pbv-thumbnails-open .pbv-flipbook-container {
        margin-left: 130px;
    }

    .pbv-viewer-wrapper {
        height: 60vh;
        min-height: 300px;
    }
}

/* === Print === */
@media print {
    .pbv-toolbar,
    .pbv-thumbnails-sidebar {
        display: none !important;
    }
}

/* === No-books message === */
.pbv-no-books {
    text-align: center;
    color: #888;
    padding: 60px 20px;
    font-size: 16px;
}

/* === Accessibility === */
.pbv-btn:focus-visible,
.pbv-btn-view:focus-visible,
.pbv-thumbnail-item:focus-visible {
    outline: 2px solid var(--pbv-accent);
    outline-offset: 2px;
}



/* ==========================================================================
   HOTSPOT SYSTEM - v2.4.0
   ========================================================================== */

/* Hotspots Container */
.pbv-hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

/* Device-disabled state: hotspots uitgeschakeld voor dit device type */
.pbv-hotspots-container.pbv-hotspots-device-disabled {
    display: none !important;
    visibility: hidden !important;
}

/* Individual Hotspot Pin */
.pbv-hotspot {
    position: absolute;
    width: var(--pbv-hotspot-size, 36px);
    height: var(--pbv-hotspot-size, 36px);
    margin-left: calc(var(--pbv-hotspot-size, 36px) / -2);
    margin-top: calc(var(--pbv-hotspot-size, 36px) / -2);
    border-radius: 50%;
    background-color: var(--pbv-hotspot-color, #2196F3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    z-index: 51;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* Ensure touch targets are large enough on mobile */
    min-width: 36px;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pbv-hotspot:hover {
    transform: scale(1.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 12;
}

.pbv-hotspot-icon {
    font-size: 16px;
    line-height: 1;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Pulserende animatie */
.pbv-hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--pbv-hotspot-color, #2196F3);
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    animation: pbv-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pbv-pulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.2);
    }
}

/* Animatie uitschakelen */
.pbv-hotspots-no-animation .pbv-hotspot-pulse {
    display: none;
}

/* Type-specifieke kleuren (als fallback) */
.pbv-hotspot-type-prijs {
    --pbv-hotspot-color: #4CAF50;
}
.pbv-hotspot-type-aanbieding {
    --pbv-hotspot-color: #F44336;
}
.pbv-hotspot-type-info {
    --pbv-hotspot-color: #2196F3;
}
.pbv-hotspot-type-link {
    --pbv-hotspot-color: #9C27B0;
}
.pbv-hotspot-type-afbeelding {
    --pbv-hotspot-color: #FF9800;
}

/* ==========================================================================
   HOTSPOT MODAL
   ========================================================================== */

.pbv-hotspot-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbv-hotspot-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pbv-hotspot-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pbv-modal-slide-up 0.3s ease;
    z-index: 101;
}

@keyframes pbv-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pbv-hotspot-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    padding: 0;
}

.pbv-hotspot-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.pbv-hotspot-modal-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 12px;
}

.pbv-hotspot-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    text-align: center;
    line-height: 1.3;
}

.pbv-hotspot-modal-body {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 16px;
}

.pbv-hotspot-modal-body:empty {
    display: none;
}

.pbv-hotspot-modal-footer {
    text-align: center;
    padding-top: 8px;
}

.pbv-hotspot-modal-button {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff;
    background: #0073aa;
}

/* Type-based modal button colors */
.pbv-hotspot-modal-content[data-type="prijs"] .pbv-hotspot-modal-button {
    background: #4CAF50;
}
.pbv-hotspot-modal-content[data-type="aanbieding"] .pbv-hotspot-modal-button {
    background: #F44336;
}
.pbv-hotspot-modal-content[data-type="info"] .pbv-hotspot-modal-button {
    background: #2196F3;
}

.pbv-hotspot-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   HOTSPOT LIGHTBOX
   ========================================================================== */

.pbv-hotspot-lightbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbv-hotspot-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pbv-hotspot-lightbox-content {
    position: relative;
    z-index: 101;
    max-width: 90%;
    max-height: 90%;
    animation: pbv-modal-slide-up 0.3s ease;
}

.pbv-hotspot-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    line-height: 1;
    padding: 0;
}

.pbv-hotspot-lightbox-close:hover {
    transform: scale(1.1);
}

.pbv-hotspot-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: block;
}

/* ==========================================================================
   RESPONSIVE HOTSPOTS
   ========================================================================== */

@media (max-width: 768px) {
    .pbv-hotspot {
        --pbv-hotspot-size-mobile: min(var(--pbv-hotspot-size, 36px), 30px);
        width: var(--pbv-hotspot-size-mobile);
        height: var(--pbv-hotspot-size-mobile);
        margin-left: calc(var(--pbv-hotspot-size-mobile) / -2);
        margin-top: calc(var(--pbv-hotspot-size-mobile) / -2);
        /* Ensure minimum touch target size on mobile (44x44 per Apple HIG) */
        min-width: 44px;
        min-height: 44px;
    }

    /* Hotspots container must remain visible on mobile */
    .pbv-hotspots-container {
        display: block !important;
        visibility: visible !important;
        z-index: 50 !important;
    }

    .pbv-hotspot-icon {
        font-size: 13px;
    }

    .pbv-hotspot-modal-content {
        padding: 24px 20px;
        max-width: 95%;
        border-radius: 12px;
    }

    .pbv-hotspot-modal-icon {
        font-size: 32px;
    }

    .pbv-hotspot-modal-title {
        font-size: 17px;
    }

    .pbv-hotspot-modal-body {
        font-size: 14px;
    }

    .pbv-hotspot-lightbox-content {
        max-width: 95%;
    }
}

/* Touch devices: geen hover effecten */
@media (hover: none) {
    .pbv-hotspot:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Fullscreen mode z-index fixes */
.pbv-is-fullscreen .pbv-hotspots-container {
    z-index: 50;
}

.pbv-is-fullscreen .pbv-hotspot-modal,
.pbv-is-fullscreen .pbv-hotspot-lightbox {
    z-index: 100;
}

/* Dark theme adjustments */
.pbv-theme-dark .pbv-hotspot-modal-content {
    background: #2a2a3e;
    color: #e0e0e0;
}

.pbv-theme-dark .pbv-hotspot-modal-title {
    color: #f0f0f0;
}

.pbv-theme-dark .pbv-hotspot-modal-body {
    color: #ccc;
}

.pbv-theme-dark .pbv-hotspot-modal-close {
    color: #aaa;
}

.pbv-theme-dark .pbv-hotspot-modal-close:hover {
    background: #3a3a4e;
    color: #fff;
}



/* === MOBILE: Verberg pagina-vouw/streep (fold/seam) op mobiel ===
   Op mobiel wordt maar 1 pagina getoond, dus de fold-lijn, spine shadow
   en alle PageFlip shadow-elementen zijn onnodig en storend. */
@media (max-width: 768px) {
    /* PageFlip shadow DOM elementen */
    .stf__outerShadow,
    .stf__innerShadow,
    .stf__hardShadow,
    .stf__hardInnerShadow {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Book spine/seam pseudo-element */
    .stf__block::before {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        content: none !important;
    }
}
