/* Laatste Social Posts – front-end styling */

.lsp-item {
	--lsp-radius: 14px;
	--lsp-border: rgba(0, 0, 0, 0.1);
	--lsp-bg: #fff;
	--lsp-text: inherit;
	--lsp-muted: #6b7280;
	max-width: 420px;
	margin: 0 0 1.5em;
	font-size: 15px;
	line-height: 1.45;
}

.lsp-item--tiktok {
	--lsp-accent: #111;
}

.lsp-item--instagram {
	--lsp-accent: #c13584;
}

/* ---------- Kaartweergave ---------- */

.lsp-card {
	display: block;
	overflow: hidden;
	border: 1px solid var(--lsp-border);
	border-radius: var(--lsp-radius);
	background: var(--lsp-bg);
	color: var(--lsp-text);
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.lsp-card:hover,
a.lsp-card:focus-visible {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	text-decoration: none;
}

.lsp-card__media {
	position: relative;
	display: block;
	background: #0f0f0f;
	aspect-ratio: 9 / 16;
	overflow: hidden;
}

.lsp-item--instagram .lsp-card__media {
	aspect-ratio: 1 / 1;
}

.lsp-card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	margin: 0;
}

.lsp-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--lsp-accent);
	line-height: 0;
}

.lsp-card__badge svg {
	width: 18px;
	height: 18px;
}

.lsp-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(2px);
}

.lsp-card__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
}

.lsp-card__body {
	display: block;
	padding: 12px 14px 14px;
}

.lsp-card__caption {
	display: block;
	margin: 0 0 6px;
	color: var(--lsp-text);
	word-break: break-word;
}

.lsp-card__date {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--lsp-muted);
}

.lsp-card__cta {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--lsp-accent);
}

a.lsp-card:hover .lsp-card__cta {
	text-decoration: underline;
}

/* ---------- Embedweergave ---------- */

.lsp-embed {
	max-width: 100%;
}

.lsp-embed iframe,
.lsp-embed blockquote {
	max-width: 100% !important;
}

/* ---------- Melding voor beheerders ---------- */

.lsp-notice {
	max-width: 520px;
	padding: 12px 14px;
	border-left: 4px solid #d63638;
	border-radius: 4px;
	background: #fcf0f1;
	color: #1d2327;
	font-size: 14px;
}

.lsp-notice a {
	color: #2271b1;
}

/* ---------- Donkere modus ---------- */

@media (prefers-color-scheme: dark) {
	.lsp-item {
		--lsp-bg: #18181b;
		--lsp-border: rgba(255, 255, 255, 0.14);
		--lsp-muted: #9ca3af;
	}

	.lsp-item--tiktok {
		--lsp-accent: #f4f4f5;
	}

	.lsp-item--instagram {
		--lsp-accent: #f472b6;
	}
}

/* ---------- Klein scherm ---------- */

@media (max-width: 480px) {
	.lsp-item {
		max-width: 100%;
	}
}
