/*
 * Affiliate Playground Pro — Highlight Module
 * Drie stijlvarianten: A (hoeklabel flush), B (ribbon links), C (zwevend label).
 * Actieve stijl: WordPress option 'app_highlight_style' (waarden: a | b | c).
 * Labelkleur:    WordPress option 'app_label_color' → CSS custom property via inline style.
 */

/* ── Base block ──────────────────────────────────────────────────────────── */

.app-highlight {
	position: relative;
	margin: 2em 0;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.app-highlight__link {
	display: flex;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
}

.app-highlight__link:hover {
	text-decoration: none;
}

/* ── Afbeelding wrapper (label zweeft hierbinnen) ────────────────────────── */

.app-highlight__image-wrap {
	position: relative;
	flex-shrink: 0;
	width: 140px;
	overflow: hidden;
}

.app-highlight__image {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

/* ── Tekst kolom ─────────────────────────────────────────────────────────── */

.app-highlight__content {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.app-highlight__text1 {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

/* ── Label base (kleur via CSS custom property) ──────────────────────────── */

.app-highlight__label {
	background-color: var(--app-label-color, #DE369D);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1;
	white-space: nowrap;
	z-index: 1;
	text-decoration: none !important;
}

/* ── Stijl A — Hoeklabel flush ───────────────────────────────────────────── */

.app-style-a .app-highlight__image-wrap {
	border-radius: 12px 0 0 12px;
}

.app-style-a .app-highlight__label {
	position: absolute;
	top: 0;
	left: 0;
	font-size: 10px;
	padding: 4px 10px;
	border-radius: 0 0 8px 0;
}

/* ── Stijl B — Ribbon links ──────────────────────────────────────────────── */

.app-style-b .app-highlight__image-wrap {
	border-radius: 12px 0 0 12px;
}

.app-style-b .app-highlight__label {
	position: absolute;
	top: 18px;
	left: -24px;
	font-size: 9px;
	padding: 4px 32px;
	transform: rotate(-45deg);
}

/* ── Stijl C — Zwevend label ─────────────────────────────────────────────── */

.app-style-c .app-highlight__image-wrap {
	border-radius: 12px 0 0 12px;
}

.app-style-c .app-highlight__label {
	position: absolute;
	top: 8px;
	left: 8px;
	font-size: 10px;
	padding: 4px 10px;
	border-radius: 6px;
}

/* ── CTA knop ────────────────────────────────────────────────────────────── */

.app-highlight__cta {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 14px;
	background-color: var(--app-label-color, #DE369D);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 4px;
	align-self: flex-start;
	letter-spacing: 0.02em;
}

/* ── Fallback zonder afbeelding — inline pill ────────────────────────────── */

.app-highlight--no-image .app-highlight__link {
	flex-direction: column;
	padding: 14px 16px;
}

/* Label wordt een inline pill boven de titel, niet absoluut gepositioneerd. */
.app-highlight--no-image .app-highlight__label {
	position: static;
	display: inline-block;
	align-self: flex-start;
	font-size: 10px;
	padding: 4px 10px;
	border-radius: 50px;
	margin-bottom: 8px;
}

.app-highlight--no-image .app-highlight__content {
	padding: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.app-highlight__link {
		flex-direction: column;
	}

	.app-highlight__image-wrap {
		width: 100%;
		border-radius: 12px 12px 0 0 !important;
	}

	.app-highlight__image {
		width: 100% !important;
		height: auto !important;
		min-width: unset !important;
		aspect-ratio: 1 / 1 !important;
		object-fit: contain !important;
	}
}

/* ── Stijl 1 — Ronde sticker ─────────────────────────────────────────────── */

.app-highlight--sticker {
	border: none;
	background: transparent;
	overflow: visible;
}

.app-highlight--sticker .app-highlight__sticker-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 32px 0;
	position: relative;
	clear: both;
}

.app-highlight--sticker .app-highlight__sticker-wrap::before {
	content: '';
	position: absolute;
	left: 0; right: 0; top: 50%;
	height: 1px;
	background: #f0f0f0;
}

.app-highlight--sticker .app-highlight__sticker-wrap--float {
	float: right;
	justify-content: flex-end;
	margin: 0 0 16px 24px;
	width: auto;
	clear: none;
}

.app-highlight--sticker .app-highlight__sticker-wrap--float::before {
	display: none;
}

.app-highlight__sticker {
	width: 195px;
	height: 195px;
	border-radius: 50%;
	background: var(--app-highlight-color, #00239A);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	transform: rotate(-4deg);
	box-shadow:
		4px 6px 24px rgba(0, 0, 0, 0.20),
		0 0 0 6px #fff,
		0 0 0 8px rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 1;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-highlight__sticker:hover {
	transform: rotate(-4deg) scale(1.04);
	box-shadow:
		6px 8px 28px rgba(0, 0, 0, 0.25),
		0 0 0 6px #fff,
		0 0 0 8px rgba(0, 0, 0, 0.10);
}

.app-highlight__sticker-tag {
	display: block;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 6px;
}

.app-highlight__sticker-text {
	display: block;
	font-size: 14px;
	font-weight: 800;
	color: #fff;
	line-height: 1.3;
	margin-bottom: 10px;
}

.app-highlight__sticker-cta {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: var(--app-highlight-color, #00239A);
	background: #fff;
	padding: 5px 14px;
	border-radius: 20px;
	text-decoration: none;
}

@media (max-width: 600px) {
	.app-highlight--sticker .app-highlight__sticker-wrap--float {
		float: none;
		margin: 32px 0;
		justify-content: center;
	}
	.app-highlight--sticker .app-highlight__sticker-wrap--float::before {
		display: block;
	}
}

/* ── Stijl 2 — Organische blob ───────────────────────────────────────────── */

.app-highlight--blob {
	border: none;
	background: transparent;
	overflow: visible;
}

.app-highlight--blob .app-highlight__blob-wrap {
	margin: 28px 0;
	width: 70%;
	max-width: 520px;
}

.app-highlight__blob-shape {
	border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
	background: var(--app-highlight-color, #00239A);
	padding: 32px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	min-height: 120px;
	justify-content: center;
}

.app-highlight__blob-tag {
	display: block;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.6);
}

.app-highlight__blob-text {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: #fff;
	line-height: 1.35;
}

.app-highlight__blob-cta {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	background: #fff;
	color: var(--app-highlight-color, #00239A);
	padding: 6px 18px;
	border-radius: 20px;
	text-decoration: none;
	margin-top: 4px;
}

@media (max-width: 480px) {
	.app-highlight--blob .app-highlight__blob-wrap {
		width: 90%;
	}
	.app-highlight__blob-shape {
		padding: 24px 28px;
	}
}
