/**
 * Stijlen voor de Kennisbibliotheek shortcode
 */

/* Container */
.kennisbibliotheek-container {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 50px;
    background-color: #fff;
}

/* Hero sectie */
.hero-outer {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 0;
    background-color: #fff;
    border-bottom: 2px solid #EBEBE6;
}

.hero__title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212121;
}

.hero__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #616161;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tab navigatie */
.hero__navigation {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 0px solid #ddd;
    margin-top: 20px;
}

.hero__nav-item {
    margin: 0 10px;
    padding: 10px 15px;
    font-weight: 600;
}

.hero__nav-item a {
    text-decoration: none;
    color: #555;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero__nav-item a:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
}

.hero__nav-item.is-active {
    position: relative;
}

.hero__nav-item.is-active a {
    color: #000;
    font-weight: 700;
}

.hero__nav-item.is-active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffde00;
}

/* Main container layout */
.kennisbibliotheek-main-container {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
}

/* Filters kolom */
.kennisbibliotheek-filters-column {
    width: 25%;
    padding-right: 20px;
}

/* Filter groepen */
.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 0px solid #eee;
}

.filter-group h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
}

.filter-title {
    flex-grow: 1;
}

.toggle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-radius: 50%;
    background-color: #f0f0f0;
    position: absolute;
    right: 0;
}

.toggle-icon.toggle-open {
    display: none;
}

.toggle-icon.toggle-closed {
    display: inline-block;
}

.filter-group.is-open .toggle-icon.toggle-open {
    display: inline-block;
}

.filter-group.is-open .toggle-icon.toggle-closed {
    display: none;
}

.filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

.filter-group.is-open .filter-options {
    max-height: 500px; /* Aanpassen naar behoefte */
    overflow-y: auto;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.filter-checkbox {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.filter-checkbox input[type="checkbox"] {
  cursor: pointer;
  accent-color: #F04B4B;
  flex-shrink: 0;
}

.filter-checkbox label {
    font-size: inherit;
    cursor: pointer;
    font-family: "IBM Plex Sans" !important;
}

.filter-checkbox:hover label {
    color: #000;
}

/* Members-only filter styling */

.members-only-filter .bna_switch {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
}

.members-only-filter .bna_switch-text {
    margin-right: 15px;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
}

/* Zoekcontainer */
.search-container {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-container input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.search-container button {
    background-color: #F04B4B;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

.search-container button:hover {
    background-color: #2D2337;
}

/* Filter knoppen */
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #7D6969;
}

/* Verberg de "Filters toepassen" knop omdat filters nu direct worden toegepast */
.filter-buttons #apply-filters {
    display: none;
}

.button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: #ffde00;
    color: #000;
}

.primary-button:hover {
    background-color: #ffd000;
}

.secondary-button {
    background-color: #f0f0f0;
    color: #333;
}

.secondary-button:hover {
    background-color: #e0e0e0;
}

/* Resultaten kolom */
.kennisbibliotheek-results-column {
    width: 75%;
}

.results-total {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
    display: none; /* Standaard verborgen, wordt getoond via JavaScript bij actieve filters */
}

.results-count {
    font-weight: 700;
    color: #000;
}

/* Resultaten grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.result-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.result-image {
    height: 180px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.result-item:hover .result-image img {
    transform: scale(1.05);
}

.result-content {
    padding: 15px;
}

.result-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.result-title a {
    color: #212121;
    text-decoration: none;
}

.result-title a:hover {
    color: #000;
    text-decoration: underline;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.85em;
}

.result-date {
    color: #666;
    margin-right: 10px;
}

.result-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.result-excerpt {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Paginering */
.pagination-container {
    margin-top: 30px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.page-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #2D2337;
    color: #2D2337 !important;
    text-decoration: none;
    border-radius: 0px;
	font-family: 'IBM Plex Sans';
    transition: all 0.3s ease;
}

.page-link:hover:not(.disabled) {
    background-color: #2D2337;
    color: #fff !important;
}

.page-link.current:hover {
    background-color: #2D2337;
    border-color: #2D2337;
    color: #fff !important;
    font-weight: 600;
}

.page-link.current {
    background-color: #F04B4B;
    border-color: #F04B4B;
    color: #fff !important;
    font-weight: 600;
}

.page-link.disabled {
    color: #D2C8D2;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 6px 8px;
    color: #EBEBE6;
}

/* Mobiele stijlen */
.filters__mobile-toggle-bar {
    display: none;
    margin-bottom: 15px;
}

/* Verborgen elementen */
.hidden {
    display: none;
}

/* Berichten */
.loading-message,
.error-message,
.no-results {
    padding: 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.error-message {
    color: #d32f2f;
}

/* Responsive stijlen */
@media (max-width: 1060px) {
    .kennisbibliotheek-filters-column {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .kennisbibliotheek-results-column {
        width: 100%;
    }
    
    .filters__mobile-toggle-bar {
        display: block;
    }
    
    .filters__content {
        display: none;
    }
    
    .filters__content.filters--show {
        display: block;
    }
    
    .filters__mobile-toggle-bar button {
        width: 100%;
        padding: 10px;
        background-color: #EBEBE6;
        border: 0px solid #ddd;
        border-radius: 0px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color:#2D2337 !important;
        font-size: 16px;
        font-weight: 500;
        font-family: 'IBM Plex Sans' !important;
    }
    
    .hero__nav-item {
        margin: 0 5px;
        padding: 8px;
    }
    
    .hero__nav-item a {
        padding: 6px 8px;
        font-size: 0.9em;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .hero__navigation {
        flex-wrap: wrap;
    }
} 