/**
 * Inline CTA — mid-article link, scroll bar, exit-intent bar.
 *
 * @package add
 */

/* ── Mid-article contextual link ── */
.add-mid-article-cta {
	margin: 1.5rem 0;
	padding: 0.75rem 0 0.75rem 1rem;
	border-left: 3px solid currentColor;
	font-size: 0.92rem;
	line-height: 1.5;
	opacity: 0.85;
}

.add-mid-article-cta a {
	font-style: normal;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	color: inherit;
}

.add-mid-article-cta a:hover {
	opacity: 0.7;
}

/* ── Scroll CTA — fixed bottom bar ── */
.add-scroll-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 1rem;
	background: rgb(0 0 0 / 88%);
	color: #fff;
	font-size: 0.88rem;
	transform: translateY(100%);
	animation: addScrollCtaIn 0.3s ease forwards;
}

@keyframes addScrollCtaIn {
	to {
		transform: translateY(0);
	}
}

.add-scroll-cta__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
	min-width: 0;
	color: #fff;
	text-decoration: none;
}

.add-scroll-cta__link:hover {
	opacity: 0.85;
}

.add-scroll-cta__label {
	font-weight: 600;
	flex-shrink: 0;
}

.add-scroll-cta__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.add-scroll-cta__arrow {
	flex-shrink: 0;
}

.add-scroll-cta__dismiss {
	flex-shrink: 0;
	margin-left: 0.75rem;
	padding: 0.25rem 0.5rem;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0.7;
}

.add-scroll-cta__dismiss:hover {
	opacity: 1;
}

/* ── Dark mode: invert scroll CTA ── */
[data-theme="dark"] .add-scroll-cta {
	background: rgb(255 255 255 / 92%);
	color: #111;
}

[data-theme="dark"] .add-scroll-cta__link {
	color: #111;
}

[data-theme="dark"] .add-scroll-cta__dismiss {
	color: #111;
}

/* ── Exit-intent bar — slides down from top ── */
.add-exit-intent {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9001;
	background: rgb(0 0 0 / 92%);
	color: #fff;
	transform: translateY(-100%);
	animation: addExitIntentIn 0.3s ease forwards;
}

@keyframes addExitIntentIn {
	to {
		transform: translateY(0);
	}
}

.add-exit-intent__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	max-width: 960px;
	margin: 0 auto;
	padding: 1rem 1.25rem;
}

.add-exit-intent__label {
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	flex-shrink: 0;
}

.add-exit-intent__links {
	display: flex;
	gap: 1.25rem;
	flex: 1;
	min-width: 0;
}

.add-exit-intent__link {
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.add-exit-intent__link:hover {
	text-decoration: underline;
}

.add-exit-intent__dismiss {
	flex-shrink: 0;
	padding: 0.25rem 0.5rem;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0.7;
}

.add-exit-intent__dismiss:hover {
	opacity: 1;
}

/* ── Dark mode: invert exit-intent ── */
[data-theme="dark"] .add-exit-intent {
	background: rgb(255 255 255 / 95%);
	color: #111;
}

[data-theme="dark"] .add-exit-intent__link {
	color: #111;
}

[data-theme="dark"] .add-exit-intent__dismiss {
	color: #111;
}
