/**
 * Leergebieden Grid Shortcode Styles
 *
 * Used by [vdk_leergebieden_grid]
 *
 * @package VDK_Learning_Objectives
 * @since   2.9.0
 */

/* =========================================================================
   Grid wrapper
   ========================================================================= */

.vdk-lggrid {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
}

/* columns="auto" → responsive: 1 col mobile, 2 col tablet, 3 col desktop */
.vdk-lggrid[data-columns="auto"] {
	grid-template-columns: 1fr;
}

@media ( min-width: 640px ) {
	.vdk-lggrid[data-columns="auto"] {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 1024px ) {
	.vdk-lggrid[data-columns="auto"] {
		grid-template-columns: repeat( 3, 1fr );
	}
}

/* columns="2" */
.vdk-lggrid[data-columns="2"] {
	grid-template-columns: 1fr;
}

@media ( min-width: 640px ) {
	.vdk-lggrid[data-columns="2"] {
		grid-template-columns: repeat( 2, 1fr );
	}
}

/* columns="3" */
.vdk-lggrid[data-columns="3"] {
	grid-template-columns: 1fr;
}

@media ( min-width: 640px ) {
	.vdk-lggrid[data-columns="3"] {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 1024px ) {
	.vdk-lggrid[data-columns="3"] {
		grid-template-columns: repeat( 3, 1fr );
	}
}

/* =========================================================================
   Card
   ========================================================================= */

/* Elementor article reset */
.elementor-shortcode .vdk-lggrid article {
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	box-shadow: 0px 1px 4px 0px rgba( 0, 0, 0, 0.06 );
}

.vdk-lgcard {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 0px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.06 );
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.vdk-lgcard:hover {
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.1 );
	border-color: #d1d5db;
}

/* =========================================================================
   Card header
   ========================================================================= */

.vdk-lgcard__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px 12px;
	border-bottom: 1px solid #f3f4f6;
}

/* Icon tile */
.vdk-lgcard__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background: #ffffff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vdk-lgcard__icon img {
	display: block;
	width: 20px;
	height: 20px;
}

.vdk-lgcard__icon lottie-player {
	display: block;
}

.vdk-lgcard__title {
	flex: 1;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.vdk-lgcard__title a {
	color: inherit;
	text-decoration: none;
}

.vdk-lgcard__title a:hover {
	color: #2563eb;
}

/* "4 KD" badge top-right of header */
.vdk-lgcard__kd-badge {
	flex-shrink: 0;
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	color: #6b7280;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

/* =========================================================================
   Kerndoelen list
   ========================================================================= */

.vdk-lgcard__list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	flex: 1;
}

.vdk-lgrow {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 5px 16px;
	font-size: 13px;
	line-height: 1.4;
}

.vdk-lgrow:hover {
	background: #f9fafb;
}

/* "K26" pill badge */
.vdk-lgrow__num {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 18px;
	padding: 0 5px;
	background: rgba( 0, 23, 166, 0.08 );
	color: #0017a6;
	font-size: 10px;
	font-weight: 700;
	border-radius: 4px;
	line-height: 1;
	margin-top: 1px;
}

/* Allow text to wrap across multiple lines */
.vdk-lgrow__text {
	flex: 1;
	color: #374151;
	text-decoration: none;
}

a.vdk-lgrow__text:hover {
	color: #2563eb;
	text-decoration: underline;
}

/* Plain bold number, right-aligned */
.vdk-lgrow__count {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	min-width: 18px;
	text-align: right;
	margin-top: 1px;
}

.vdk-lgrow__count.is-empty {
	color: #d1d5db;
}

/* "+ N meer" row */
.vdk-lgrow--meer {
	padding-top: 3px;
	padding-bottom: 6px;
}

.vdk-lgrow--meer a {
	font-size: 12px;
	color: #9ca3af;
	text-decoration: none;
}

.vdk-lgrow--meer a:hover {
	color: #2563eb;
	text-decoration: underline;
}

/* =========================================================================
   Card footer link
   ========================================================================= */

.vdk-lgcard__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	border-top: 1px solid #f3f4f6;
	font-size: 13px;
	font-weight: 500;
	color: #00b6b8;
	text-decoration: none;
	transition: color 0.1s ease;
}

.vdk-lgcard__foot:hover {
	color: #2563eb;
}

.vdk-lgcard__foot .vdk-icn {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}
