/**
 * VDK Kerndoel Selector — frontend explore-filter component styles
 *
 * Designed to blend naturally into MyListing's sidebar aesthetic.
 * The wrapper carries the existing `form-group md-group` classes so it inherits
 * MyListing's spacing, border and label rules. Only component-specific rules
 * are defined here.
 *
 * @package VDK_Learning_Objectives
 * @since   2.9.5
 */

/* ---------------------------------------------------------------------
   Wrapper
   --------------------------------------------------------------------- */

.vdk-ks-wrapper {
	/* Inherits spacing from MyListing's .form-group / .md-group.
	   No extra margin needed. */
}

/* ---------------------------------------------------------------------
   Label
   --------------------------------------------------------------------- */

.vdk-ks-label {
	display: block;
	/* Match MyListing's sidebar label style: small caps, muted colour. */
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9e9e9e;
	margin-bottom: 6px;
}

/* ---------------------------------------------------------------------
   Breadcrumb trail
   --------------------------------------------------------------------- */

.vdk-ks-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	font-size: 12px;
	line-height: 1.4;
	margin-bottom: 8px;
	min-height: 0;
}

.vdk-ks-breadcrumb:empty {
	margin-bottom: 0;
}

.vdk-ks-crumb {
	/* Shared reset for both link and current crumb variants. */
	font-size: 12px;
	line-height: 1.4;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	font-family: inherit;
}

.vdk-ks-crumb--link {
	color: #1565c0;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: transparent;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.vdk-ks-crumb--link:hover,
.vdk-ks-crumb--link:focus {
	color: #0d47a1;
	text-decoration-color: currentColor;
	outline: none;
}

.vdk-ks-crumb--current {
	color: #616161;
}

.vdk-ks-sep {
	display: inline-block;
	margin: 0 4px;
	color: #bdbdbd;
	font-size: 12px;
	line-height: 1;
	user-select: none;
}

/* ---------------------------------------------------------------------
   Term list
   --------------------------------------------------------------------- */

.vdk-ks-terms {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 200px;
	overflow-y: auto;
	/* Thin scrollbar on webkit. */
	scrollbar-width: thin;
	scrollbar-color: #e0e0e0 transparent;
}

.vdk-ks-terms::-webkit-scrollbar {
	width: 4px;
}

.vdk-ks-terms::-webkit-scrollbar-track {
	background: transparent;
}

.vdk-ks-terms::-webkit-scrollbar-thumb {
	background: #e0e0e0;
	border-radius: 2px;
}

.vdk-ks-terms li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---------------------------------------------------------------------
   Buttons (shared)
   --------------------------------------------------------------------- */

.vdk-ks-btn {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 6px 0;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	line-height: 1.4;
	transition: background-color 0.12s ease, color 0.12s ease;
	border-radius: 3px;
}

.vdk-ks-btn:focus {
	outline: 2px solid #1565c0;
	outline-offset: 1px;
}

/* Level buttons: slightly larger, bolder. */
.vdk-ks-level {
	font-size: 14px;
	font-weight: 500;
	color: #212121;
	padding: 8px 6px;
}

.vdk-ks-level:hover,
.vdk-ks-level:focus {
	background-color: #f5f5f5;
	color: #1565c0;
}

/* Term (leergebied / kerndoel / subdoel) buttons. */
.vdk-ks-term {
	font-size: 13px;
	color: #424242;
	padding: 6px 6px;
}

.vdk-ks-term:hover,
.vdk-ks-term:focus {
	background-color: #f5f5f5;
	color: #1565c0;
}

/* ---------------------------------------------------------------------
   Status / feedback text
   --------------------------------------------------------------------- */

.vdk-ks-loading,
.vdk-ks-empty,
.vdk-ks-error,
.vdk-ks-current {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.5;
}

.vdk-ks-loading {
	color: #9e9e9e;
	font-style: italic;
}

.vdk-ks-empty {
	color: #9e9e9e;
}

.vdk-ks-error {
	color: #c62828;
}

/* Current selection confirmation (leaf / subdoel). */
.vdk-ks-current {
	color: #2e7d32;
	font-style: italic;
}
