/* =========================================================
   WPFilter — Frontend stijlen
   Pas aan naar wens; alle klassen beginnen met .wpf-
   ========================================================= */

/* ─── Wrapper ─── */
.wpf-filter-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

/* ─── Filterbalk ─── */
.wpf-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	padding: 20px 24px;
	background: #f8f9fa;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-bottom: 32px;
}

.wpf-filter-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 200px;
}

.wpf-filter-label {
	font-weight: 600;
	font-size: 13px;
	color: #374151;
}

.wpf-select {
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
	appearance: auto;
}

.wpf-select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* ─── Resultatenraster ─── */
.wpf-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	transition: opacity 0.2s ease;
}

.wpf-results.wpf-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* ─── Post-kaart ─── */
.wpf-post-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
}

.wpf-post-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
	transform: translateY(-2px);
}

/* Thumbnail */
.wpf-post-card__thumbnail {
	position: relative;
	overflow: hidden;
}

.wpf-post-card__thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.wpf-post-card:hover .wpf-post-card__thumbnail img {
	transform: scale(1.04);
}

.wpf-post-card__thumbnail.wpf-no-thumbnail {
	height: 200px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpf-thumbnail-placeholder {
	display: block;
	width: 48px;
	height: 48px;
	background: #cbd5e1;
	border-radius: 50%;
	/* Optioneel: vervang door een SVG icoon */
}

/* Berichttekst */
.wpf-post-card__body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.wpf-post-card__title {
	margin: 0 0 8px;
	font-size: 1em;
	line-height: 1.35;
}

.wpf-post-card__title a {
	text-decoration: none;
	color: inherit;
}

.wpf-post-card__title a:hover {
	color: #0073aa;
}

.wpf-post-card__excerpt {
	font-size: 0.88em;
	color: #64748b;
	margin: 0 0 14px;
	line-height: 1.55;
	flex: 1;
}

.wpf-post-card__link {
	display: inline-block;
	font-size: 0.85em;
	font-weight: 600;
	color: #0073aa;
	text-decoration: none;
	margin-top: auto;
}

.wpf-post-card__link:hover {
	text-decoration: underline;
}

/* ─── Geen resultaten ─── */
.wpf-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 20px;
	color: #94a3b8;
	font-size: 1em;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
	.wpf-filter-bar {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
	}

	.wpf-filter-group {
		min-width: unset;
		width: 100%;
	}

	.wpf-results {
		grid-template-columns: 1fr;
	}
}
