/**
 * Campaign skin: Black Friday & Cyber Monday (`ta-campaign--bfcm`).
 * Loaded after campaign.css by inc/campaign.php. Tokens first, then the
 * pieces that echo the Black Friday banner: the yellow "80% off" sticker,
 * the faint grid behind the hero and the scrolling ticker.
 */

:root {
	--ta-cp-bg: #0a0a0a;
	--ta-cp-bg-2: #050505;
	--ta-cp-surface: #161616;
	--ta-cp-raised: #222222;
	--ta-cp-line: rgba(255, 255, 255, 0.08);
	--ta-cp-line-strong: rgba(255, 255, 255, 0.2);
	--ta-cp-heading: #ffffff;
	--ta-cp-text: #d9d9d9;
	--ta-cp-muted: #a0a0a0;
	--ta-cp-accent: #ffd400;
	--ta-cp-accent-hover: #ffe04d;
	--ta-cp-accent-text: #ffd400;
	--ta-cp-on-accent: #0a0a0a;
	--ta-cp-star: #ffd400;
	--ta-cp-glow-1: rgba(255, 212, 0, 0.18);
	--ta-cp-glow-2: rgba(255, 255, 255, 0.06);
	--ta-cp-accent-font: 'Archivo', var(--ta-cp-display);
}

.ta-campaign--bfcm .ta-cp-accent {
	font-stretch: 112%;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ta-campaign--bfcm .ta-cp-lead strong {
	background: none;
	color: var(--ta-cp-accent-text);
	-webkit-text-fill-color: currentColor;
	font-weight: 700;
}

/* Promo bar: dark countdown pills on the yellow. */
.ta-campaign--bfcm.ta-cp-promo .ta-cp-countdown > span:not(.ta-cp-countdown__label, .ta-cp-countdown__date) {
	background: #0a0a0a;
	color: #ffd400;
}

/* Hero: the banner's faint grid, fading out from the sticker -------------- */

.ta-campaign--bfcm.ta-cp-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 45%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 80% at 30% 45%, #000 20%, transparent 75%);
	pointer-events: none;
}

.ta-campaign--bfcm.ta-cp-hero::before {
	background:
		radial-gradient(ellipse 45% 60% at 22% 50%, var(--ta-cp-glow-1), transparent 70%),
		radial-gradient(ellipse 40% 40% at 85% 20%, var(--ta-cp-glow-2), transparent 70%);
}

/* Desktop: text column reads left-aligned next to the sticker. Tablet and
   phone stack the columns, so everything centres again (the headings carry
   their own tablet/mobile alignment). */
@media (min-width: 1025px) {
	.ta-cp-hero--split .ta-cp-pill {
		margin-inline: 0;
	}

	.ta-cp-hero--split :is(.ta-cp-countdown--boxes, .ta-cp-proof, .ta-cp-hero__icons) {
		justify-content: flex-start;
	}

	.ta-cp-hero--split .ta-cp-lead {
		margin-inline: 0;
	}
}

/* The sticker ------------------------------------------------------------- */

.ta-campaign .ta-cp-sticker {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(100%, 400px);
	margin-inline: auto;
	padding: 52px 24px 44px;
	border-radius: 28px;
	background: linear-gradient(150deg, #ffe14a 0%, #ffd400 45%, #f5b800 100%);
	color: #0a0a0a;
	font-family: 'Archivo', var(--ta-cp-display);
	text-align: center;
	text-transform: uppercase;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.25) inset,
		0 40px 80px -30px rgba(255, 212, 0, 0.45),
		0 30px 60px -30px rgba(0, 0, 0, 0.9);
	transform: rotate(-4deg);
}

.ta-cp-sticker__tag {
	position: absolute;
	top: -14px;
	right: 28px;
	padding: 7px 14px;
	border-radius: 8px;
	background: #ffffff;
	color: #0a0a0a;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.6);
	transform: rotate(6deg);
}

.ta-cp-sticker__up,
.ta-cp-sticker__off {
	font-stretch: 112%;
	font-weight: 800;
	line-height: 1;
}

.ta-cp-sticker__up {
	font-size: 46px;
}

.ta-cp-sticker__big {
	margin: 4px 0 2px;
	font-size: 132px;
	font-stretch: 105%;
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 0.9;
}

.ta-cp-sticker__off {
	font-size: 72px;
}

@media (max-width: 1024px) {
	.ta-campaign .ta-cp-sticker {
		width: min(100%, 340px);
		padding: 40px 20px 34px;
	}

	.ta-cp-sticker__up {
		font-size: 36px;
	}

	.ta-cp-sticker__big {
		font-size: 104px;
	}

	.ta-cp-sticker__off {
		font-size: 56px;
	}
}

@media (max-width: 767px) {
	.ta-campaign .ta-cp-sticker {
		width: min(100%, 260px);
		padding: 30px 16px 26px;
		border-radius: 22px;
	}

	.ta-cp-sticker__tag {
		top: -12px;
		right: 18px;
		font-size: 11px;
	}

	.ta-cp-sticker__up {
		font-size: 26px;
	}

	.ta-cp-sticker__big {
		font-size: 78px;
	}

	.ta-cp-sticker__off {
		font-size: 42px;
	}
}

/* A gentle wobble draws the eye without getting in the way. */
@media (prefers-reduced-motion: no-preference) {
	.ta-cp-sticker {
		animation: ta-cp-bf-wobble 6s ease-in-out infinite;
	}

	@keyframes ta-cp-bf-wobble {
		50% {
			transform: rotate(-2deg) translateY(-6px);
		}
	}
}

/* The seven plugin icons under the hero copy ------------------------------ */

.ta-cp-hero__icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.ta-cp-hero__icons img {
	width: 52px;
	height: 52px;
	padding: 8px;
	border: 1px solid var(--ta-cp-line);
	border-radius: 14px;
	background: #ffffff;
	object-fit: contain;
}

/* All seven stay on one row down to a 320px phone. */
@media (max-width: 767px) {
	.ta-cp-hero__icons {
		flex-wrap: nowrap;
		gap: 6px;
	}

	.ta-cp-hero__icons img {
		width: 40px;
		min-width: 0;
		height: auto;
		flex: 0 1 40px;
		aspect-ratio: 1;
		padding: 5px;
		border-radius: 10px;
	}
}

/* Ticker ------------------------------------------------------------------ */

.ta-cp-ticker {
	overflow: hidden;
	border-block: 1px solid rgba(0, 0, 0, 0.3);
}

.ta-cp-ticker .kt-row-column-wrap {
	max-width: none;
	padding: 0;
}

.ta-cp-ticker__track {
	display: flex;
	width: max-content;
	font-family: 'Archivo', var(--ta-cp-display);
	font-stretch: 112%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ta-cp-ticker__run {
	display: flex;
}

.ta-cp-ticker__run span {
	display: inline-flex;
	align-items: center;
	padding: 18px 0;
}

.ta-cp-ticker__run span::after {
	content: '✦';
	margin: 0 28px;
	font-size: 0.8em;
}

@media (prefers-reduced-motion: no-preference) {
	.ta-cp-ticker__track {
		animation: ta-cp-bf-ticker 40s linear infinite;
	}

	.ta-cp-ticker:hover .ta-cp-ticker__track {
		animation-play-state: paused;
	}

	@keyframes ta-cp-bf-ticker {
		to {
			transform: translateX(-50%);
		}
	}
}

/* Deal cards: badges read as little yellow stickers. ---------------------- */

.ta-campaign--bfcm .ta-cp-deal__badge {
	border-radius: 8px;
	font-family: 'Archivo', var(--ta-cp-display);
	font-stretch: 105%;
	text-transform: uppercase;
	transform: rotate(-2deg);
}

.ta-campaign--bfcm .ta-cp-deal:hover {
	border-color: rgba(255, 212, 0, 0.45);
}
