/**
 * Age Gate overlay styles.
 *
 * Colors are driven by CSS custom properties set inline from the admin settings.
 * Defaults below are fallbacks only.
 */

.age-gate-overlay {
	--age-gate-primary: #e63946;
	--age-gate-bg: #111111;
	--age-gate-text: #ffffff;

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: var(--age-gate-bg);
	background-image: var(--age-gate-bg-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--age-gate-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	overflow: auto;
}

/* Darken the background image so text stays readable. */
.age-gate-overlay::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	pointer-events: none;
}

.age-gate-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 760px;
	padding: 48px 56px;
	text-align: left;
	background: rgba(10, 10, 10, 0.92);
	border: 1px solid var(--age-gate-primary);
	border-radius: 6px;
	box-shadow: 0 0 42px -6px var(--age-gate-primary), 0 24px 64px rgba(0, 0, 0, 0.6);
}

.age-gate-logo {
	max-width: 120px;
	max-height: 120px;
	margin-bottom: 20px;
	display: inline-block;
}

.age-gate-title {
	margin: 0 0 24px;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--age-gate-primary);
}

.age-gate-subtitle {
	margin: 0 0 20px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
}

.age-gate-description {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.65;
	opacity: 0.78;
}

.age-gate-emphasis {
	margin: 36px 0 0;
	font-size: 1.15rem;
	font-weight: 700;
	text-align: center;
}

.age-gate-actions {
	display: flex;
	flex-direction: row;
	gap: 16px;
	margin-top: 40px;
}

.age-gate-btn {
	appearance: none;
	flex: 1 1 0;
	border: 0;
	border-radius: 4px;
	padding: 16px 24px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.age-gate-btn:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.7);
	outline-offset: 2px;
}

.age-gate-btn-confirm {
	background-color: var(--age-gate-primary);
	color: #ffffff;
}

.age-gate-btn-confirm:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
	transform: translateY(-1px);
}

.age-gate-btn-deny {
	background-color: transparent;
	color: var(--age-gate-text);
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.age-gate-btn-deny:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.age-gate-blocked {
	margin-top: 24px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.age-gate-blocked p {
	margin: 0 0 12px;
}

.age-gate-leave {
	color: var(--age-gate-text);
	text-decoration: underline;
}

.age-gate-leave:hover {
	text-decoration: none;
}

@media (max-width: 560px) {
	.age-gate-card {
		padding: 32px 24px;
	}

	.age-gate-title {
		font-size: 1.5rem;
	}

	.age-gate-actions {
		flex-direction: column;
	}
}
