/**
 * Show Certificates Anywhere for LearnDash — weekly offer card.
 *
 * Light palette matching the plugin's WordPress.org banner: white and
 * pale-blue surfaces, navy text, bright-blue action, gold deal accent.
 *
 * @package ShowCertificatesAnywhereForLearnDash
 */

@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/outfit/Outfit-Variable.woff2") format("woff2");
}

.slca-promo {
	--slca-promo-ink: #0b2a5b;
	--slca-promo-text: #4a5b75;
	--slca-promo-muted: #6b7a90;
	--slca-promo-line: #dbe7f7;
	--slca-promo-soft: #f3f8ff;
	--slca-promo-blue: #1d6fe0;
	--slca-promo-blue-dark: #1559c4;
	--slca-promo-gold: #f5b400;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	overflow: hidden;
	box-sizing: border-box;
	padding: 22px 56px 22px 22px;
	margin: 16px 0;
	color: var(--slca-promo-ink);
	background:
		radial-gradient(circle at 92% 20%, rgba(29, 111, 224, 0.08), transparent 40%),
		linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
	border: 1px solid var(--slca-promo-line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(11, 42, 91, 0.04), 0 12px 28px -24px rgba(29, 111, 224, 0.45);
	font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Soft dot pattern, as on the plugin's WordPress.org banner. */
.slca-promo::after {
	content: '';
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	width: 240px;
	height: 100%;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%231d6fe0' fill-opacity='0.12'/%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 75%);
	mask-image: linear-gradient(90deg, transparent, #000 75%);
}

.slca-promo__body,
.slca-promo__icon {
	position: relative;
	z-index: 1;
}

.slca-promo *,
.slca-promo *::before,
.slca-promo *::after {
	box-sizing: border-box;
}

.slca-promo.notice {
	border-left-width: 1px;
	border-left-color: var(--slca-promo-line);
	padding: 22px 56px 22px 22px;
}

.slca-promo.is-leaving {
	opacity: 0;
	transform: translateY(-4px);
}

.slca-promo__icon {
	display: inline-flex;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
}

.slca-promo__icon svg {
	display: block;
	width: 44px;
	height: 44px;
	box-shadow: 0 6px 14px -6px rgba(11, 42, 91, 0.45);
	border-radius: 11px;
}

.slca-promo__body {
	min-width: 0;
	flex: 1;
}

.slca-promo .slca-promo__eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 6px;
	padding: 0;
	color: var(--slca-promo-muted);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}

.slca-promo__deal {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	color: #7a5200;
	background: #fff6d9;
	border: 1px solid #f7dc8a;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.slca-promo .slca-promo__title {
	margin: 0;
	padding: 0;
	color: var(--slca-promo-ink);
	font-family: inherit;
	font-size: 19px;
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.slca-promo .slca-promo__text {
	max-width: 760px;
	margin: 4px 0 0;
	padding: 0;
	color: var(--slca-promo-text);
	font-size: 14px;
	line-height: 1.55;
}

.slca-promo__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.slca-promo__chips li {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 4px 10px 4px 6px;
	color: #24406b;
	background: #fff;
	border: 1px solid var(--slca-promo-line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.2;
}

.slca-promo__chips .dashicons {
	width: 16px;
	height: 16px;
	color: var(--slca-promo-blue);
	font-size: 16px;
}

.slca-promo__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 16px;
}

.slca-promo__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 6px 8px 6px 16px;
	color: #fff !important;
	background: linear-gradient(180deg, #2a7bea 0%, var(--slca-promo-blue) 100%);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 8px 18px -10px rgba(29, 111, 224, 0.75);
	transition: background 0.15s ease, transform 0.15s ease;
}

.slca-promo__cta:hover,
.slca-promo__cta:focus {
	background: var(--slca-promo-blue-dark);
	transform: translateY(-1px);
}

.slca-promo__cta:focus-visible,
.slca-promo__later:focus-visible,
.slca-promo__close:focus-visible {
	outline: 2px solid var(--slca-promo-blue);
	outline-offset: 2px;
	box-shadow: none;
}

.slca-promo__cta-save {
	padding: 4px 8px;
	color: var(--slca-promo-blue-dark);
	background: #fff;
	border-radius: 7px;
	font-size: 11.5px;
	font-weight: 700;
}

.slca-promo__code {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--slca-promo-muted);
	font-size: 12.5px;
}

.slca-promo__code code {
	padding: 3px 7px;
	color: var(--slca-promo-blue-dark);
	background: #fff;
	border: 1px dashed #9cc2f5;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.slca-promo__later {
	color: var(--slca-promo-muted);
	font-size: 12.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.slca-promo__later:hover {
	color: var(--slca-promo-ink);
}

.slca-promo__close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #98a2b3 !important;
	border-radius: 8px;
	text-decoration: none !important;
	box-shadow: none !important;
}

.slca-promo__close:hover {
	color: var(--slca-promo-ink) !important;
	background: #eaf2fe;
}

/* Inline variant on the plugin settings screen. */
.slca-promo--inline {
	margin: 0 0 14px;
}

@media (max-width: 600px) {
	.slca-promo,
	.slca-promo.notice {
		flex-direction: column;
		padding: 18px 44px 18px 18px;
	}

	.slca-promo__code span {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slca-promo,
	.slca-promo__cta {
		transition: none;
	}
}
