/**
 * RSI Toolkit — Coming Soon widget.
 *
 * A full-viewport brand placeholder that bleeds edge-to-edge (and up behind the
 * theme's transparent overlapping header, `wd-header-overlap`). Dark RSI gradient
 * with a soft brand glow; message centred with generous top room so the floating
 * header never clips it. Direction-agnostic (centred), so it works LTR + RTL.
 */

.rsi-coming-soon {
	--rsi-cs-accent: #bf0031;
	--rsi-cs-text: #ffffff;

	position: relative;
	/* Full-bleed: span the whole viewport regardless of container padding. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	/* Full height, minus a touch so it never forces a scrollbar. */
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
	/* Top room clears the overlapping header; bottom keeps it optically centred. */
	padding: 160px 24px 120px;
	background:
		radial-gradient(120% 80% at 50% -10%, rgba(191, 0, 49, .28), transparent 55%),
		linear-gradient(165deg, #100608 0%, #0a0a0a 45%, #05060a 100%);
	color: var(--rsi-cs-text);
	text-align: center;
}

/* Soft floating brand glow behind the content. */
.rsi-coming-soon__glow {
	position: absolute;
	left: 50%;
	top: 42%;
	width: min(720px, 90vw);
	height: min(720px, 90vw);
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(191, 0, 49, .30), transparent 62%);
	filter: blur(20px);
	pointer-events: none;
	z-index: 0;
	animation: rsi-cs-breathe 7s ease-in-out infinite;
}

@keyframes rsi-cs-breathe {
	0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); }
	50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.rsi-coming-soon__inner {
	position: relative;
	z-index: 1;
	max-width: 680px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	animation: rsi-cs-rise .8s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes rsi-cs-rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow pill with a pulsing "in progress" dot. */
.rsi-coming-soon__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'Alexandria', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
	padding: 9px 18px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .04);
	backdrop-filter: blur(4px);
}

.rsi-coming-soon__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rsi-cs-accent);
	box-shadow: 0 0 0 0 rgba(191, 0, 49, .6);
	animation: rsi-cs-pulse 1.8s ease-out infinite;
}

@keyframes rsi-cs-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(191, 0, 49, .55); }
	70%  { box-shadow: 0 0 0 10px rgba(191, 0, 49, 0); }
	100% { box-shadow: 0 0 0 0 rgba(191, 0, 49, 0); }
}

.rsi-coming-soon__title {
	font-family: 'Alexandria', sans-serif;
	font-weight: 700;
	font-size: clamp(40px, 8vw, 92px);
	line-height: 1.04;
	letter-spacing: -1px;
	margin: 0;
	color: var(--rsi-cs-text);
}

.rsi-coming-soon__text {
	font-family: 'Alexandria', sans-serif;
	font-weight: 400;
	font-size: clamp(16px, 2.2vw, 19px);
	line-height: 1.7;
	margin: 0;
	max-width: 540px;
	color: rgba(255, 255, 255, .72);
}

/* Pill button — own classes + resets so the theme's link/button styles don't bleed in. */
.rsi-coming-soon__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 10px;
	font-family: 'Alexandria', sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .3px;
	color: #ffffff !important;
	background: var(--rsi-cs-accent);
	border: 0;
	border-radius: 999px;
	padding: 15px 30px;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(191, 0, 49, .28);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.rsi-coming-soon__btn:hover,
.rsi-coming-soon__btn:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 16px 40px rgba(191, 0, 49, .4);
	color: #ffffff !important;
}

.rsi-coming-soon__arrow {
	width: 20px;
	height: 20px;
	display: block;
}

/* Arrow points toward reading direction (flips for RTL). */
[dir="rtl"] .rsi-coming-soon__arrow {
	transform: scaleX(-1);
}

@media (max-width: 767px) {
	.rsi-coming-soon {
		padding: 130px 20px 90px;
	}

	.rsi-coming-soon__eyebrow {
		letter-spacing: 2px;
		font-size: 12px;
	}
}

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
	.rsi-coming-soon__glow,
	.rsi-coming-soon__inner,
	.rsi-coming-soon__dot {
		animation: none;
	}
}
