/*
 * Site-wide "back to top" button: fixed circle in the bottom-right corner,
 * hidden until the page has been scrolled (assets/js/back-to-top.js toggles
 * ".is-visible"). Fade/slide transitions live behind
 * prefers-reduced-motion: no-preference, matching scroll-reveal.css — the
 * button still appears/disappears for reduced-motion users, just without
 * the animation.
 */
.solea-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(162, 126, 254, 0.5);
	background: rgb(18, 7, 31);
	color: rgb(255, 255, 255);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	box-shadow: 0 12px 24px -14px rgba(18, 11, 34, 0.45);
}

.solea-back-to-top svg {
	width: 20px;
	height: 20px;
}

.solea-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.solea-back-to-top:hover {
	background: var(--wp--preset--color--brand-purple-light);
}

.solea-back-to-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.solea-back-to-top {
		transform: translateY(16px);
		transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.25s ease, box-shadow 0.25s ease;
	}

	.solea-back-to-top.is-visible {
		transform: translateY(0);
	}

	.solea-back-to-top:hover {
		transform: translateY(-2px);
		box-shadow: 0 14px 28px -14px rgba(66, 18, 102, 0.5);
	}
}
