/**
 * ACF block: Смуга «Читати більше» — pink CTA bar.
 * Mobile: mark stacked on top, text centered below.
 * Desktop (≥768): single row, mark pinned left, text centered.
 * Nested selector (.cta-bar .cta-bar__link) beats the shared entry-content link
 * styling so the link is white and not underlined.
 */

.cta-bar .cta-bar__link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	overflow: hidden;
	padding: 0 20px 18px;
	border-radius: var(--radius-md);
	background: var(--color-pink);
	color: var(--color-white);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
	transition:
		box-shadow var(--transition-hover),
		transform var(--transition-hover);
}

/* Diagonal shine that sweeps across on hover. */
.cta-bar__link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		120deg,
		transparent,
		rgba(255, 255, 255, 0.35),
		transparent
	);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
	pointer-events: none;
}

.cta-bar__link:hover,
.cta-bar__link:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(255, 0, 110, 0.35);
}

.cta-bar__link:hover::before,
.cta-bar__link:focus-visible::before {
	left: 125%;
}

.cta-bar__mark {
	width: auto;
	height: 24px;
}

.cta-bar__text {
	font-size: 22px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	text-align: center;
}

@media (min-width: 768px) {
	.cta-bar .cta-bar__link {
		flex-direction: row;
		gap: 0;
		min-height: 95px;
		/* Left/right padding clears the 115px logo mark pinned at the left. */
		padding: 0 135px;
	}

	.cta-bar__mark {
		position: absolute;
		top: 50%;
		left: 0;
		height: 35px;
		transform: translateY(-50%);
	}

	.cta-bar__text {
		font-size: 24px;
		line-height: 1.2;
	}
}

@media (min-width: 1200px) {
	.cta-bar__text {
		font-size: 30px;
		line-height: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cta-bar .cta-bar__link,
	.cta-bar__link::before {
		transition: none;
	}

	.cta-bar__link:hover,
	.cta-bar__link:focus-visible {
		transform: none;
	}
}
