/* --- 1. Algemene Variabelen (Makkelijk aan te passen) --- */
:root {
    --wcs-primary: #2271b1;       /* WordPress Blauw - pas aan naar jouw huisstijl */
    --wcs-bg-light: #f9f9f9;      /* Achtergrond filters */
    --wcs-border: #e0e0e0;        /* Randen */
    --wcs-text: #333333;          /* Tekstkleur */
    --wcs-text-muted: #666666;    /* Lichte tekst */
}

/* --- 2. De Sidebar (Filters) --- */
.wcs-facets-wrapper {
    background: var(--wcs-bg-light);
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.wcs-facet {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.wcs-facet:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wcs-facet-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--wcs-text);
}

/* Checkboxes & Radio's */
.wcs-checkbox-item, 
.wcs-radio-item {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--wcs-text-muted);
    transition: color 0.2s;
}

.wcs-checkbox-item:hover, 
.wcs-radio-item:hover {
    color: var(--wcs-primary);
}

.wcs-checkbox-item label, 
.wcs-radio-item label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom kleur voor de vinkjes (accent color) */
.wcs-filter-input {
    accent-color: var(--wcs-primary);
    cursor: pointer;
}

/* Select Dropdown */
.wcs-facet select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--wcs-border);
    border-radius: 4px;
    background: #fff;
    color: var(--wcs-text);
}

/* --- 3. De Resultaten (Grid & Cards) --- */
.wcs-results-wrapper {
    position: relative;
    min-height: 200px; /* Voorkomt verspringen bij laden */
}

/* Fade effect tijdens laden (JS regelt opacity, wij regelen transitie) */
#wcs-results-container {
    transition: opacity 0.3s ease-in-out;
}

/* De Kaartjes (Fallback Card styling) */
.wcs-card {
    background: #fff;
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--wcs-primary);
}

.wcs-card-img {
    height: 180px;
    background: #eee;
    overflow: hidden;
}

.wcs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wcs-card:hover .wcs-card-img img {
    transform: scale(1.05);
}

.wcs-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wcs-card-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.wcs-card-body h3 a {
    text-decoration: none;
    color: var(--wcs-text);
    transition: color 0.2s;
}

.wcs-card-body h3 a:hover {
    color: var(--wcs-primary);
}

.wcs-card-body .button {
    margin-top: auto; /* Duwt de knop naar beneden */
    align-self: flex-start;
    background: var(--wcs-primary);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.wcs-card-body .button:hover {
    background: #1a5c8e; /* Iets donkerder blauw */
}

/* --- 4. De Loader (Spinner) --- */
/* Dit vervangt de tekst "Laden..." met een draaiend cirkeltje */
.wcs-loader {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-weight: bold;
    color: var(--wcs-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcs-loader::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid var(--wcs-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: wcs-spin 0.8s linear infinite;
}

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

/* --- 5. Responsiveness --- */
@media (max-width: 768px) {
    .wcs-grid-container {
        grid-template-columns: 1fr !important; /* Op mobiel 1 kolom */
    }
}

/* --- 6. Pagination Styling (Minimalist) --- */
#wcs-pagination {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee; /* Subtiel scheidingslijntje */
    display: flex;
    justify-content: center;
}

#wcs-pagination ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 10px;
    align-items: center;
}

#wcs-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    color: #999; /* Zacht grijs voor niet-actief */
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    border: none;
    transition: color 0.2s;
}

#wcs-pagination .page-numbers:hover {
    color: var(--wcs-primary);
    background: transparent;
}

/* Actieve pagina: Dikgedrukt & donker */
#wcs-pagination .page-numbers.current {
    color: #000;
    font-weight: 700;
    border-bottom: 2px solid var(--wcs-primary); /* Klein accentje */
    cursor: default;
}

/* Vorige / Volgende knoppen */
#wcs-pagination .next,
#wcs-pagination .prev {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wcs-text);
}