/* ==========================================================================
   Studeerkompas — Vind je opleiding (page-vind-je-opleiding.php)
   Designsysteem: ink #16232E · parchment #F7F2E7 · gold #B8862E
                  forest #2F6B4F · wine #7A2E36
   Fonts: Fraunces (display) · Inter (body) · IBM Plex Mono (labels)

   NB: de resultaatkaarten zelf komen uit functions-cursuskaart.php en worden
   gestyled door cursus-archive.css — die wordt op dit sjabloon mee-enqueued
   (zie functions.php). Dit bestand dekt hero, filterbalk, teller, lege staat
   en de .vf-kaart-fallback.
   ========================================================================== */

.vf-main {
	--vf-ink: #16232E;
	--vf-parchment: #F7F2E7;
	--vf-gold: #B8862E;
	--vf-forest: #2F6B4F;
	--vf-lijn: rgba(22, 35, 46, 0.14);

	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
	font-family: "Inter", system-ui, sans-serif;
	color: var(--vf-ink);
}

/* --- Hero ---------------------------------------------------------------- */

.vf-hero { margin-bottom: 2rem; }

.vf-eyebrow {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vf-gold);
	margin: 0 0 0.5rem;
}

.vf-titel {
	font-family: "Fraunces", serif;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
	margin: 0 0 0.75rem;
}

.vf-intro {
	max-width: 40rem;
	margin: 0;
	color: rgba(22, 35, 46, 0.75);
}

/* --- Filterbalk ------------------------------------------------------------ */

.vf-filters {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr auto;
	gap: 1rem;
	align-items: end;
	background: var(--vf-parchment);
	border: 1px solid var(--vf-lijn);
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 1rem;
}

.vf-veld { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }

.vf-label {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(22, 35, 46, 0.6);
}

.vf-filters select,
.vf-filters input[type="search"] {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--vf-lijn);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: var(--vf-ink);
}

.vf-filters select:focus-visible,
.vf-filters input:focus-visible,
.vf-knop:focus-visible,
.vf-kaart:focus-visible {
	outline: 2px solid var(--vf-gold);
	outline-offset: 2px;
}

.vf-knop {
	padding: 0.7rem 1.5rem;
	border: 0;
	border-radius: 8px;
	background: var(--vf-gold);
	color: var(--vf-ink);
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.vf-knop:hover { filter: brightness(1.06); }

/* --- Notitie & teller ------------------------------------------------------ */

.vf-notitie {
	font-size: 0.82rem;
	color: rgba(22, 35, 46, 0.6);
	margin: 0 0 1rem;
}

.vf-teller {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(22, 35, 46, 0.6);
	margin: 1.5rem 0 1rem;
}

/* --- Lege staat ------------------------------------------------------------ */

.vf-leeg {
	border: 1px dashed var(--vf-lijn);
	border-radius: 12px;
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: rgba(22, 35, 46, 0.65);
}

.vf-leeg a { color: var(--vf-gold); }

/* --- Resultaten-grid -------------------------------------------------------- */

.vf-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

/* --- Fallback-kaart (alleen zichtbaar als de gedeelde renderfunctie
       uit functions-cursuskaart.php niet gevonden is) ----------------------- */

.vf-kaart {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--vf-lijn);
	border-radius: 12px;
	text-decoration: none;
	color: var(--vf-ink);
}

.vf-kaart:hover { border-color: var(--vf-gold); }

.vf-kaart__titel {
	font-family: "Fraunces", serif;
	font-size: 1.1rem;
	line-height: 1.3;
}

.vf-kaart__aanbieder {
	font-size: 0.85rem;
	color: rgba(22, 35, 46, 0.6);
}

.vf-kaart__prijs {
	margin-top: 0.4rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.8rem;
	color: var(--vf-forest);
}

/* --- Responsief ------------------------------------------------------------ */

@media (max-width: 960px) {
	.vf-filters { grid-template-columns: 1fr 1fr; }
	.vf-veld--breed { grid-column: 1 / -1; }
	.vf-knop { grid-column: 1 / -1; justify-self: start; }
	.vf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.vf-filters { grid-template-columns: 1fr; }
	.vf-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.vf-main * { transition: none !important; }
}
