/**
 * Variant CSS: social--follow-cta-band
 *
 * A dark invitation band: lead text (kicker + headline) on the left, a row of
 * platform icons each stacked over a follower COUNT in the middle, and a single
 * pill "Obserwuj" CTA on the right. The follower-count metric is the social
 * proof that sets this apart from bare icon bars. Dark surface → text uses
 * --text-on-dark; accent lift = color-mix(accent, on-dark) for KI-020 safety.
 * URLs + counts are swapped via data-aiss-bind. Part of the `social` role.
 */

body.aibt-universal .universal-social--follow-cta-band {
	padding-block: calc(clamp(2.6rem, 6vw, 4rem) * var(--density, 1));
}

/* Dark band shell. */
body.aibt-universal .universal-social--follow-cta-band .universal-social__band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.6rem, 4vw, 3rem);
	background: var(--background-dark, #141414);
	border-radius: var(--decor-radius, 14px);
	padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.6rem, 4vw, 3rem);
}

/* Lead text. */
body.aibt-universal .universal-social--follow-cta-band .universal-social__lead {
	flex: 1 1 280px;
	min-width: 0;
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #ffffff)) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__headline {
	font-family: var(--font-display) !important;
	color: var(--text-on-dark, #ffffff) !important;
	margin: 0 !important;
}

/* Counts cluster. */
body.aibt-universal .universal-social--follow-cta-band .universal-social__counts {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.2rem, 3vw, 2.2rem);
	align-items: flex-start;
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	text-decoration: none;
	min-width: 72px;
	transition: transform var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__stat:hover,
body.aibt-universal .universal-social--follow-cta-band .universal-social__stat:focus-visible {
	transform: translateY(-2px);
}

/* Keyboard focus ring — accent reads against the dark band. */
body.aibt-universal .universal-social--follow-cta-band .universal-social__stat:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: var(--decor-radius, 10px);
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__staticon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--decor-radius-pill, 999px);
	color: var(--text-on-dark, #ffffff);
	background: color-mix(in srgb, var(--on-dark, #ffffff) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--on-dark, #ffffff) 16%, transparent);
	transition: background var(--duration-fast, 0.18s) var(--ease-default, ease),
		color var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__stat:hover .universal-social__staticon,
body.aibt-universal .universal-social--follow-cta-band .universal-social__stat:focus-visible .universal-social__staticon {
	background: color-mix(in srgb, var(--accent) 70%, var(--on-dark, #ffffff));
	color: var(--background-dark, #141414);
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__staticon svg {
	display: block;
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__statnum {
	font-family: var(--font-display) !important;
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text-on-dark, #ffffff);
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__statlabel {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: color-mix(in srgb, var(--on-dark, #ffffff) 68%, transparent);
}

/* CTA. */
body.aibt-universal .universal-social--follow-cta-band .universal-social__ctawrap {
	flex: 0 0 auto;
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__cta .wp-block-button__link {
	background: var(--cta-bg-primary, var(--accent)) !important;
	color: var(--cta-text-primary, #ffffff) !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	font-weight: 600 !important;
	padding: 0.8rem 1.8rem !important;
	border-radius: var(--decor-radius-pill, 999px) !important;
	border: none !important;
	transition: background var(--duration-fast, 0.18s) var(--ease-default, ease),
		transform var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-social--follow-cta-band .universal-social__cta .wp-block-button__link:hover,
body.aibt-universal .universal-social--follow-cta-band .universal-social__cta .wp-block-button__link:focus-visible {
	background: var(--accent-hover, var(--accent)) !important;
	transform: translateY(-2px);
}

/* Visible keyboard focus ring on the CTA — on-dark glyph + accent ring. */
body.aibt-universal .universal-social--follow-cta-band .universal-social__cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--on-dark, #ffffff);
	outline-offset: 3px;
}

/* Tablet: stack band into a centered column. */
@media (max-width: 781px) {
	body.aibt-universal .universal-social--follow-cta-band .universal-social__band {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	body.aibt-universal .universal-social--follow-cta-band .universal-social__lead {
		flex-basis: auto;
	}

	body.aibt-universal .universal-social--follow-cta-band .universal-social__counts {
		justify-content: center;
	}
}

/* Mobile: cap tracking on uppercase. */
@media (max-width: 640px) {
	body.aibt-universal .universal-social--follow-cta-band .universal-social__kicker,
	body.aibt-universal .universal-social--follow-cta-band .universal-social__statlabel {
		letter-spacing: 0 !important;
	}
}

/* Honor reduced-motion: drop the stat + CTA lift. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-social--follow-cta-band .universal-social__stat:hover,
	body.aibt-universal .universal-social--follow-cta-band .universal-social__stat:focus-visible,
	body.aibt-universal .universal-social--follow-cta-band .universal-social__cta .wp-block-button__link:hover,
	body.aibt-universal .universal-social--follow-cta-band .universal-social__cta .wp-block-button__link:focus-visible {
		transform: none;
	}
}
