/*
 * 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: 0 !important;
	}

	.app-highlight__image {
		height: 180px;
	}
}
