/* ==========================================================================
   AGE GATE — Full-viewport modal
   BlushTheme v1.0.0
   ========================================================================== */

.age-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.age-gate.is-hidden {
	display: none;
}

/* Background layer */
.age-gate__bg {
	position: absolute;
	inset: 0;
	background-color: var(--color-bg-primary);
	z-index: 1;
	opacity: 0;
	animation: fadeIn 800ms var(--ease-out) both;
}

/* Content layer */
.age-gate__content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--space-lg);
}

/* Provider name above card */
.age-gate__name {
	font-family: var(--font-display);
	font-weight: var(--font-display-weight);
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	color: var(--color-accent);
	letter-spacing: var(--tracking-tight);
	margin-bottom: var(--space-2xl);
	opacity: 0;
	animation: fadeIn 600ms var(--ease-out) 200ms both;
}

/* Card */
.age-gate__card {
	max-width: 480px;
	width: 100%;
	background-color: var(--color-bg-elevated);
	border: 1px solid var(--color-accent);
	border-radius: var(--card-radius);
	padding: var(--space-3xl) var(--space-2xl);
	opacity: 0;
	animation: fadeUp 600ms var(--ease-out) 500ms both;
}

.age-gate__title {
	font-family: var(--font-display);
	font-weight: var(--font-display-weight);
	font-size: var(--text-h4);
	color: var(--color-text-heading);
	margin-bottom: var(--space-lg);
}

.age-gate__text {
	font-family: var(--font-body);
	font-weight: var(--font-body-weight, 300);
	font-size: var(--text-body);
	color: var(--color-text-secondary);
	line-height: var(--leading-body);
	margin-bottom: var(--space-2xl);
}

/* Buttons */
.age-gate__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-lg);
}

.age-gate__enter {
	width: 100%;
	max-width: 280px;
	opacity: 0;
	animation: fadeUp 400ms var(--ease-out) 700ms both;
}

.age-gate__leave {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--text-sm);
	color: var(--color-text-secondary);
	text-transform: uppercase;
	letter-spacing: var(--tracking-uppercase);
	transition: color var(--duration-medium) var(--ease-out);
	opacity: 0;
	animation: fadeIn 400ms var(--ease-out) 800ms both;
}

.age-gate__leave:hover {
	color: var(--color-text-primary);
}

/* Decorative flourish — hidden by default, shown by theme overrides */
.age-gate__flourish {
	display: none;
}

/* Curtain halves for reveal animation */
.age-gate__curtain {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	background-color: var(--color-bg-primary);
	z-index: 2;
	pointer-events: none;
}

.age-gate__curtain--left {
	left: 0;
}

.age-gate__curtain--right {
	right: 0;
}

/* Curtain animation when entering */
.age-gate.is-entering .age-gate__content {
	animation: fadeIn 200ms var(--ease-out) reverse both;
}

.age-gate.is-entering .age-gate__curtain--left {
	animation: curtainLeft 600ms var(--ease-in-out) 200ms both;
}

.age-gate.is-entering .age-gate__curtain--right {
	animation: curtainRight 600ms var(--ease-in-out) 200ms both;
}

.age-gate.is-entering .age-gate__bg {
	animation: fadeIn 400ms var(--ease-out) 600ms reverse both;
}

/* Prevent body scroll when age gate is shown */
body.age-gate-active {
	overflow: hidden;
}
