/**
 * GBDB Video Filter Complete CSS
 * Styling voor de geavanceerde video filter functionaliteit
 */

/* === ALGEMENE PAGINA CONTAINER === */
.gbdb-video-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* === FILTER CONTAINER === */
.gbdb-video-filters {
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none; /* Standaard verborgen */
    border: none; /* Verwijder eventuele debug borders */
}

/* Match Elementor e-con-boxed styling */
.gbdb-video-container,
.gbdb-video-filters {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid layout should use full width like homepage scroll */
.gbdb-video-grid,
.gbdb-homepage-scroll,
.gbdb-video-grid.gbdb-video-wall {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gbdb-video-filters.show-filters {
    display: block; /* Toon alleen als show-filters class aanwezig is */
}

/* === RIJ 1: VIDEO TYPES + ZOEKBALK === */
.filter-row-1 {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    min-height: 60px;
    width: 100%;
}

.video-type-filters {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 280px;
}

.search-container {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    min-width: 250px;
    max-width: 300px;
}

.filter-reset-container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 180px;
    justify-content: flex-end;
}

/* === DOELGROEP SELECTOR (SCHUIF KNOPPEN) === */
.doelgroep-selector {
    position: relative;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 6px;
    display: inline-block;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.doelgroep-options {
    display: flex;
    position: relative;
    z-index: 2;
}

.doelgroep-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    position: relative;
    z-index: 2;
    min-width: 85px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.doelgroep-btn:hover {
    color: #212529;
    background: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.doelgroep-btn.active {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.doelgroep-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    width: calc(33.333% - 4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Slider position wordt nu via JavaScript gecontroleerd */

/* === FILTER RESET BUTTON === */

.filter-reset-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    min-width: auto;
}

.filter-reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filter-reset-button .reset-icon {
    font-size: 1rem;
}

/* === RIJ 2: THEMA'S === */
.filter-row-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    width: 100%;
    justify-content: flex-start;
}

/* === RIJ 3: SUBTHEMA'S === */
.filter-row-3 {
    display: none; /* Verberg standaard */
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    justify-content: flex-start;
}

.filter-row-3.show-subthemas {
    display: flex; /* Toon alleen als er thema's geselecteerd zijn */
}

/* Thema filters */
.thema-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
    width: 100%;
    justify-content: flex-start;
}

.thema-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.thema-filter {
    width: 18px;
    height: 18px;
    accent-color: #2e7d32;
    cursor: pointer;
    margin-right: 8px;
}

.thema-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

/* Video Type filters */
.video-type-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.video-type-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-type-filter {
    width: 18px;
    height: 18px;
    accent-color: #2ecc71;
    cursor: pointer;
}

.video-type-filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
}

/* Zoekveld */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.gbdb-search-input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 180px;
    padding: 8px 10px;
    background: transparent;
}

.search-icon {
    font-size: 16px;
    color: #7f8c8d;
    margin-right: 5px;
}

.search-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.search-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.subthema-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    justify-content: flex-start;
}

.subthema-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.subthema-filter {
    width: 16px;
    height: 16px;
    accent-color: #2e7d32;
    cursor: pointer;
    margin-right: 6px;
}

.subthema-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.subthema-filter-item.highlighted {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* === VIDEO GRID === */
.gbdb-video-grid {
    display: grid;
    gap: 20px;
    margin: 20px auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

/* Force consistent grid layout */
.gbdb-video-grid .gbdb-video-item {
    width: 100%;
    max-width: none;
    min-width: 280px;
}

/* === HOMEPAGE SCROLL LAYOUT === */
.gbdb-homepage-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
    align-items: flex-start;
    max-width: 100%;
}

/* === NEW GRID LAYOUT (based on wall/scroll) === */
.gbdb-video-grid-new {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
    align-items: flex-start;
    max-width: 100%;
    padding: 0 20px;
}

.gbdb-video-grid.gbdb-video-wall {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.gbdb-video-grid.gbdb-video-wall .gbdb-video-item {
    flex: 0 0 280px;
    min-width: 280px;
}

/* Dynamic width for wall layout based on visible cards */
.gbdb-video-wall[data-visible-cards="1"] .gbdb-video-item {
    flex: 0 0 calc(20% - 16px);
    min-width: calc(20% - 16px);
    max-width: 300px;
}

.gbdb-video-wall[data-visible-cards="2"] .gbdb-video-item {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
}

.gbdb-video-wall[data-visible-cards="3"] .gbdb-video-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
}

.gbdb-video-wall[data-visible-cards="4"] .gbdb-video-item {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
}

.gbdb-video-wall[data-visible-cards="5"] .gbdb-video-item {
    flex: 0 0 calc(20% - 16px);
    min-width: calc(20% - 16px);
}

.gbdb-video-wall[data-visible-cards="6"] .gbdb-video-item {
    flex: 0 0 calc(16.666% - 17px);
    min-width: calc(16.666% - 17px);
}

/* Dynamic width for homepage scroll layout based on visible cards */
.gbdb-homepage-scroll[data-visible-cards="1"] .gbdb-video-item {
    width: calc(20% - 16px);
    max-width: 300px;
}

.gbdb-homepage-scroll[data-visible-cards="2"] .gbdb-video-item {
    width: calc(50% - 10px);
}

.gbdb-homepage-scroll[data-visible-cards="3"] .gbdb-video-item {
    width: calc(33.333% - 14px);
}

.gbdb-homepage-scroll[data-visible-cards="4"] .gbdb-video-item {
    width: calc(25% - 15px);
}

.gbdb-homepage-scroll[data-visible-cards="5"] .gbdb-video-item {
    width: calc(20% - 16px);
}

.gbdb-homepage-scroll[data-visible-cards="6"] .gbdb-video-item {
    width: calc(16.666% - 17px);
}

/* Dynamic width for new grid layout based on visible cards */
.gbdb-video-grid-new[data-visible-cards="1"] .gbdb-video-item {
    width: calc(20% - 16px);
    max-width: 300px;
}

.gbdb-video-grid-new[data-visible-cards="2"] .gbdb-video-item {
    width: calc(50% - 10px);
}

.gbdb-video-grid-new[data-visible-cards="3"] .gbdb-video-item {
    width: calc(33.333% - 14px);
}

.gbdb-video-grid-new[data-visible-cards="4"] .gbdb-video-item {
    width: calc(25% - 15px);
}

.gbdb-video-grid-new[data-visible-cards="5"] .gbdb-video-item {
    width: calc(20% - 16px);
}

.gbdb-video-grid-new[data-visible-cards="6"] .gbdb-video-item {
    width: calc(16.666% - 17px);
}

/* === VIDEO NAVIGATION === */
.gbdb-video-navigation a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    border-color: #007cba !important;
}

.gbdb-video-navigation .nav-arrow {
    transition: all 0.3s ease !important;
}

.gbdb-video-navigation a:hover .nav-arrow {
    transform: scale(1.2) !important;
}

/* === THEME TAG BUTTONS === */
.gbdb-theme-tag-btn:hover,
.gbdb-subthema-tag-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    text-decoration: none !important;
}

.gbdb-theme-tag-btn:hover {
    background: #bbdefb !important;
    border-color: #90caf9 !important;
}

.gbdb-subthema-tag-btn:hover {
    background: #ce93d8 !important;
    border-color: #ba68c8 !important;
}

/* === VIDEO CARDS === */
.gbdb-video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    min-width: 220px;
    max-width: 260px;
    width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

/* === THEMA EN SUBTHEMA TAGS === */
.video-thema, .video-subthema {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thema-tag, .subthema-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.thema-tag {
    background: rgba(74, 144, 226, 0.1);
    color: #1a4480;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.thema-tag:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateY(-1px);
}

.subthema-tag {
    background: rgba(155, 89, 182, 0.1);
    color: #6a1b9a;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.subthema-tag:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.5);
    transform: translateY(-1px);
}

.gbdb-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    overflow: hidden;
    max-height: 200px;
    width: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gbdb-video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Play Button Styling */
.gbdb-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #27ae60;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
}

.gbdb-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-info {
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Video card titles (widget and related videos) - NOT main page title */
.gbdb-video-item .gbdb-video-title,
.gbdb-video-item h3.gbdb-video-title {
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px !important;
    word-spacing: 0px !important;
    color: #2c3e50 !important;
    text-transform: normal !important;
    overflow: visible !important;
    white-space: normal !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    min-height: 1.3em !important;
}

.video-excerpt {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Lightbox styles verwijderd - gebruik single-video.php systeem */

/* Lightbox CSS verwijderd */

/* Lightbox CSS verwijderd */

/* Lightbox CSS verwijderd */

/* === NO RESULTS MESSAGE === */
.gbdb-no-results {
    text-align: left;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 18px;
    font-weight: 500;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.gbdb-no-results .no-results-content h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.gbdb-no-results .no-results-content p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .gbdb-video-filters {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .filter-row-1 {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .thema-filters {
        justify-content: center;
    }
    
    .video-type-filters {
        justify-content: center;
    }
    
    .search-container {
        justify-content: center;
    }
    
    .search-input-wrapper {
        width: 100%;
        max-width: 300px;
    }
    
    .gbdb-search-input {
        width: 100%;
    }
    
    .gbdb-video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .gbdb-video-grid.gbdb-video-wall .gbdb-video-item {
        flex: 0 0 65%;
        min-width: 65%;
    }
    
    .gbdb-video-grid.gbdb-video-wall::-webkit-scrollbar {
        height: 12px;
    }
    
    .gbdb-video-grid.gbdb-video-wall::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 6px;
    }
    
    .gbdb-video-grid.gbdb-video-wall::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #3498db, #2ecc71);
        border-radius: 6px;
    }
    
    .gbdb-video-wall {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
    
    .gbdb-video-wall .gbdb-video-item {
        scroll-snap-align: center;
    }
    
    .lightbox-content {
        padding: 15px;
    }
    
    .video-player-section {
        height: 50vh;
        margin-bottom: 15px;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .control-btn {
        padding: 10px 16px;
        min-width: 100px;
        font-size: 13px;
    }
    
    .lightbox-video-title {
        font-size: 24px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .gbdb-video-filters {
        padding: 10px;
    }
    
    .thema-filters,
    .video-type-filters,
    .subthema-filters {
        gap: 10px;
    }
    
    .gbdb-video-grid {
        grid-template-columns: 1fr;
    }
    
    .gbdb-video-item {
        min-width: auto;
    }
    
    .video-player-section {
        height: 40vh;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .lightbox-video-title {
        font-size: 20px;
    }
    
    .video-meta-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* === LIGHTBOX ACTIVE STATES === */
.lightbox-open {
    overflow: hidden;
}

.gbdb-video-wall.lightbox-active,
.gbdb-video-grid.gbdb-video-wall.lightbox-active {
    pointer-events: none !important;
    overflow: hidden !important;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   SINGLE VIDEO TEMPLATE STYLES
   ============================================================================ */

/* Single Video Container */
.gbdb-single-video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.gbdb-video-content {
    width: 100%;
}

/* Video Header */
.gbdb-video-header {
    margin-bottom: 2rem;
}

.gbdb-video-header .gbdb-video-title,
h1.gbdb-video-title {
    margin: 0 0 1rem 0;
    /* Standaard H1 styling behouden - geen Poppins override */
}

.gbdb-video-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Video Player Section */
.gbdb-video-player-section {
    margin: 2rem 0;
}

.gbdb-video-player {
    width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gbdb-video-element {
    border: none;
    width: 100%;
    height: 500px;
    display: block;
}

/* No Video State */
.gbdb-no-video {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.gbdb-no-video-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gbdb-no-video h3 {
    color: #333;
    margin-bottom: 1rem;
}

.gbdb-no-video p {
    color: #666;
    margin-bottom: 1rem;
}

.gbdb-edit-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.gbdb-edit-link:hover {
    background: #005a87;
}

/* Video Metadata */
.gbdb-video-metadata {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.gbdb-video-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.gbdb-video-description h4,
.gbdb-video-duration-detail h4,
.gbdb-video-id h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.gbdb-video-description .description-content {
    color: #666;
    line-height: 1.6;
}

.gbdb-copy-id {
    background: #007cba;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.gbdb-copy-id:hover {
    background: #005a87;
}

/* Captions */
.gbdb-captions-info {
    margin: 1rem 0;
}

.gbdb-captions-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.gbdb-captions-list li {
    padding: 0.25rem 0;
    color: #666;
}

.gbdb-captions-note {
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Video Tags */
.gbdb-video-tags {
    margin: 2rem 0;
}

.gbdb-video-tags h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.gbdb-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    transition: background-color 0.2s ease;
}

.gbdb-tag:hover {
    background: #dee2e6;
    color: #495057;
}

.gbdb-no-tags {
    color: #666;
    font-style: italic;
}

/* Navigation */
.gbdb-video-navigation {
    margin: 2rem 0;
}

.gbdb-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.gbdb-nav-previous,
.gbdb-nav-next {
    flex: 1;
    max-width: 45%;
}

.gbdb-nav-previous a,
.gbdb-nav-next a {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.gbdb-nav-previous a:hover,
.gbdb-nav-next a:hover {
    background: #e9ecef;
}

.gbdb-nav-arrow {
    font-size: 1.2rem;
    font-weight: bold;
}

.gbdb-nav-title {
    display: block;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Related Videos */
.gbdb-video-sidebar {
    margin-top: 2rem;
    width: 100%;
}

/* Force horizontal layout for related videos */
.gbdb-related-videos .gbdb-related-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.gbdb-related-videos h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
}

.gbdb-related-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
    white-space: nowrap;
    width: 100%;
}

.gbdb-related-list::-webkit-scrollbar {
    height: 8px;
}

.gbdb-related-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gbdb-related-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.gbdb-related-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.gbdb-related-video {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 0 0 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    width: 260px !important;
    display: inline-block;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Force horizontal layout for related video items */
.gbdb-related-videos .gbdb-related-video {
    flex: 0 0 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    width: 260px !important;
    display: inline-block !important;
}

.gbdb-related-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gbdb-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gbdb-related-thumbnail {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}

.gbdb-related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gbdb-related-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.gbdb-related-content {
    padding: 1rem;
}

.gbdb-related-title,
h4.gbdb-related-title {
    margin: 0 0 0.5rem 0;
    font-family: 'Poppins', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-decoration: none !important;
    line-height: 20px !important;
    letter-spacing: -0.5px !important;
    word-spacing: 0px !important;
    color: #333 !important;
    text-transform: normal !important;
}

/* Related video meta row (duration + type) */
.gbdb-related-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    gap: 0.5rem;
}

.gbdb-related-duration-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.gbdb-related-type-btn {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.gbdb-related-type-bewoner,
.gbdb-related-type-bewoners {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.gbdb-related-type-adviseur,
.gbdb-related-type-adviseurs {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #e1bee7;
}

/* Related video theme buttons */
.gbdb-related-theme-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.gbdb-related-theme-btn {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    border: 1px solid;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.gbdb-related-theme-btn:nth-child(1) {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.gbdb-related-theme-btn:nth-child(1):hover {
    background: #c8e6c9;
    color: #1b5e20;
    text-decoration: none;
}

.gbdb-related-theme-btn:nth-child(2) {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc02;
}

.gbdb-related-theme-btn:nth-child(2):hover {
    background: #ffcc02;
    color: #e65100;
    text-decoration: none;
}

.gbdb-no-related {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Lightbox */
.gbdb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
}

.gbdb-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gbdb-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gbdb-lightbox-close:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.gbdb-lightbox-video-container {
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
}

.gbdb-lightbox-video-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gbdb-single-video-container {
        padding: 1rem;
    }
    
    .gbdb-video-title {
        font-size: 2rem;
    }
    
    .gbdb-video-element {
        height: 250px;
    }
    
    .gbdb-video-details {
        grid-template-columns: 1fr;
    }
    
    .gbdb-nav-links {
        flex-direction: column;
    }
    
    .gbdb-nav-previous,
    .gbdb-nav-next {
        max-width: 100%;
    }
    
    .gbdb-lightbox-video-container {
        width: 95%;
        height: 95%;
    }
}

/* ============================================================================
   BUNNY SYNC PLUGIN STYLES
   ============================================================================ */

/* Bunny Metabox */
.gbdb-bunny-metabox {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

/* Tags Container */
.gbdb-tags-container {
    margin: 15px 0;
}

.gbdb-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    min-height: 40px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.gbdb-tag {
    display: inline-flex;
    align-items: center;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    margin: 2px;
}

.gbdb-tag-text {
    margin-right: 4px;
}

.gbdb-tag-remove {
    cursor: pointer;
    font-weight: bold;
    margin-left: 4px;
    padding: 0 2px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
}

.gbdb-tag-remove:hover {
    background: rgba(255,255,255,0.3);
}

/* Autocomplete Suggestions */
.gbdb-autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gbdb-autocomplete-suggestions .suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.gbdb-autocomplete-suggestions .suggestion-item:hover {
    background: #f0f0f0;
}

.gbdb-autocomplete-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

/* Input Field Styling */
#gbdb_video_subthema {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#gbdb_video_subthema:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Status Messages */
#gbdb_fetch_status {
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
}

#gbdb_fetch_status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#gbdb_fetch_status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#gbdb_fetch_status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ACF Notice Styles */
.gbdb-no-acf {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.gbdb-content {
    margin: 20px 0;
}

.gbdb-acf-notice {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

/* === FORCE HORIZONTAL SCROLL FOR RELATED VIDEOS === */
/* Override any conflicting CSS with maximum specificity */
.gbdb-single-video-container .gbdb-video-sidebar .gbdb-related-videos .gbdb-related-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 1rem !important;
    padding-bottom: 1rem !important;
    width: 100% !important;
    white-space: nowrap !important;
}

.gbdb-single-video-container .gbdb-video-sidebar .gbdb-related-videos .gbdb-related-list .gbdb-related-video {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    width: 280px !important;
    display: inline-block !important;
    vertical-align: top !important;
}

/* === VIDEO ACTION BUTTONS === */
.gbdb-video-actions {
    margin: 2rem 0;
    padding: 1rem 0;
}

.gbdb-actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

/* Theme buttons can be smaller and fit more per row */
.gbdb-theme-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
}

.gbdb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 45px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gbdb-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.gbdb-action-btn:active {
    transform: translateY(0);
}

/* Random Video Button */
.gbdb-random-video {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gbdb-random-video:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
}

.gbdb-random-video:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Theme Buttons */
.gbdb-theme-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.gbdb-theme-btn:hover {
    background: linear-gradient(135deg, #ee82f0 0%, #f3455a 100%);
    color: white;
}

/* Custom Buttons */
.gbdb-custom-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.gbdb-custom-btn:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00e0fe 100%);
    color: white;
}

/* Button Icons */
.gbdb-action-btn .btn-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.gbdb-action-btn .btn-text {
    font-weight: 500;
}

/* Sober Button Design */
.gbdb-actions-sober {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.gbdb-action-btn-sober {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
}

.gbdb-action-btn-sober:hover {
    background: #e9ecef !important;
    color: #495057 !important;
    border-color: #adb5bd !important;
    transform: none !important;
    box-shadow: none !important;
}

.gbdb-action-btn-sober:active {
    background: #dee2e6 !important;
    transform: none !important;
}

/* Sober Random Video Button */
.gbdb-action-btn-sober.gbdb-random-video {
    background: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
}

.gbdb-action-btn-sober.gbdb-random-video:hover {
    background: #5a6268 !important;
    color: white !important;
    border-color: #5a6268 !important;
}

/* Sober Theme Buttons */
.gbdb-action-btn-sober.gbdb-theme-btn {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.gbdb-action-btn-sober.gbdb-theme-btn:hover {
    background: #c82333 !important;
    color: white !important;
    border-color: #c82333 !important;
}

/* Sober Custom Buttons */
.gbdb-action-btn-sober.gbdb-custom-btn {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.gbdb-action-btn-sober.gbdb-custom-btn:hover {
    background: #0056b3 !important;
    color: white !important;
    border-color: #0056b3 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gbdb-actions-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .gbdb-action-btn {
        justify-content: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .gbdb-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .gbdb-action-btn .btn-icon {
        font-size: 1rem;
    }
}

/* === DOELGROEP BADGES === */
.video-doelgroep {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.doelgroep-bewoners {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.doelgroep-adviseurs {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #2196f3;
}

.doelgroep-beide {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #9c27b0;
}

/* === THEMA-SUBTHEMA KOPPELING KLEUREN === */
.thema-filter-item {
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    margin: 2px;
    cursor: pointer;
}

.thema-filter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.thema-filter-item.isoleren {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #4caf50;
    color: #1b5e20;
}

.thema-filter-item.energie-opwek {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    border-color: #ff9800;
    color: #e65100;
}

.thema-filter-item.besparen {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    color: #0d47a1;
}

.thema-filter-item.warmte {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
    color: #b71c1c;
}

.subthema-filter-item {
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 2px;
    cursor: pointer;
}

.subthema-filter-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subthema-filter-item.dak,
.subthema-filter-item.muur,
.subthema-filter-item.vloer,
.subthema-filter-item.bodem {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #4caf50;
    color: #1b5e20;
}

.subthema-filter-item.zonnepanelen,
.subthema-filter-item.warmtepomp,
.subthema-filter-item.thuisbatterij {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    border-color: #ff9800;
    color: #e65100;
}

.subthema-filter-item.energiecontract,
.subthema-filter-item.netcongestie {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    color: #0d47a1;
}

.subthema-filter-item.warmtenet,
.subthema-filter-item.zonneboiler {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
    color: #b71c1c;
}

/* Video Card Thema Tags */
.thema-tag.isoleren {
    background-color: #2e7d32;
    color: white;
}

.thema-tag.energie-opwek {
    background-color: #f57c00;
    color: white;
}

.thema-tag.besparen {
    background-color: #1976d2;
    color: white;
}

.thema-tag.warmte {
    background-color: #d32f2f;
    color: white;
}

/* Video Card Subthema Tags */
.subthema-tag.dak,
.subthema-tag.muur,
.subthema-tag.vloer,
.subthema-tag.bodem {
    background-color: #2e7d32;
    color: white;
}

.subthema-tag.zonnepanelen,
.subthema-tag.warmtepomp,
.subthema-tag.thuisbatterij {
    background-color: #f57c00;
    color: white;
}

.subthema-tag.energiecontract,
.subthema-tag.netcongestie {
    background-color: #1976d2;
    color: white;
}

.subthema-tag.warmtenet,
.subthema-tag.zonneboiler {
    background-color: #d32f2f;
    color: white;
}

.doelgroep-icon {
    font-size: 0.8rem;
}