/**
 * Age verification gate — matches Directory theme (dark + pink accent).
 */

/* Hide gate when verified (class set by inline head script or main JS) */
html.age-gate-verified #directory-age-gate {
	display: none !important;
}

html:not(.age-gate-verified) body {
	overflow: hidden;
}

/* Full-screen overlay — visible by default until verified */
.age-gate {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	direction: rtl;
	font-family: inherit;
}

.age-gate__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(255, 0, 116, 0.18) 0%, transparent 55%),
		rgba(15, 12, 20, 0.96);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* Panel card */
.age-gate__panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	padding: 36px 28px 28px;
	text-align: center;
	background: linear-gradient(160deg, hsl(266, 17%, 16%) 0%, hsl(266, 17%, 11%) 100%);
	border: 1px solid rgba(255, 0, 116, 0.35);
	border-radius: 14px;
	box-shadow:
		0 24px 64px rgba(0, 0, 0, 0.55),
		0 0 48px rgba(255, 0, 116, 0.12);
	animation: age-gate-enter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes age-gate-enter {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* 18+ badge */
.age-gate__badge {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	margin-bottom: 20px;
	padding: 10px 18px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(255, 0, 116, 0.25) 0%, rgba(255, 158, 253, 0.12) 100%);
	border: 2px solid rgba(255, 0, 116, 0.6);
	box-shadow: 0 0 24px rgba(255, 0, 116, 0.25);
	line-height: 1;
}

.age-gate__badge-number {
	font-size: 42px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -1px;
}

.age-gate__badge-plus {
	font-size: 22px;
	font-weight: 700;
	color: #ff9efd;
	margin-top: 4px;
	margin-right: 2px;
}

/* Logo / site name */
.age-gate__logo {
	margin-bottom: 16px;
}

.age-gate__logo img {
	max-height: 56px;
	width: auto;
	margin: 0 auto;
	display: block;
	object-fit: contain;
}

.age-gate__site-name {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

/* Typography */
.age-gate__title {
	margin: 0 0 14px;
	font-size: clamp(20px, 4.5vw, 26px);
	font-weight: 700;
	color: #fff;
	line-height: 1.35;
}

.age-gate__text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.82);
}

.age-gate__legal {
	margin: 20px 0 0;
	font-size: 12px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.45);
}

/* Buttons */
.age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.age-gate__btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	border: 1px solid transparent;
	transition:
		background 0.25s ease,
		border-color 0.25s ease,
		transform 0.2s ease,
		box-shadow 0.25s ease;
	text-align: center;
	line-height: 1.4;
}

.age-gate__btn:focus-visible {
	outline: 2px solid #ff9efd;
	outline-offset: 3px;
}

.age-gate__btn--enter {
	background: linear-gradient(135deg, #ff0074 0%, #c8005c 100%);
	border-color: rgba(255, 0, 116, 0.8);
	color: #fff;
	box-shadow: 0 6px 24px rgba(255, 0, 116, 0.35);
}

.age-gate__btn--enter:hover {
	background: linear-gradient(135deg, #ff1a85 0%, #e00068 100%);
	transform: translateY(-1px);
	box-shadow: 0 10px 32px rgba(255, 0, 116, 0.45);
}

.age-gate__btn--exit {
	background: transparent;
	border-color: rgba(255, 158, 253, 0.35);
	color: rgba(255, 255, 255, 0.75);
}

.age-gate__btn--exit:hover {
	border-color: rgba(255, 158, 253, 0.65);
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}

/* Noscript fallback */
.age-gate-noscript {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: #201c27;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	direction: rtl;
	text-align: center;
	color: #fff;
}

.age-gate-noscript__inner {
	max-width: 420px;
	padding: 32px;
	border: 1px solid rgba(255, 0, 116, 0.4);
	border-radius: 12px;
	background: hsl(266, 17%, 14%);
}

.age-gate-noscript p {
	margin: 0 0 12px;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.age-gate__panel {
		padding: 44px 40px 32px;
	}

	.age-gate__text {
		font-size: 16px;
	}
}
