/* ABSD Under Maintenance — Shared base styles for all templates */

.absd-um {
	/* --absd-accent and --absd-overlay-opacity are intentionally NOT
	   declared here. They're injected per-request as :root custom
	   properties (see ABSD_Maintenance::build_inline_css()) so the admin's
	   saved accent color/overlay darkness take effect. Redeclaring them on
	   this element would shadow the :root values with a fixed default,
	   since an element's own declaration always wins over an inherited
	   one — which is exactly the bug this comment is here to prevent
	   reintroducing. Each var() usage below carries its own fallback. */

	box-sizing: border-box;
	min-height: 100vh;
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: #101010;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #ffffff;
	text-align: center;
	padding: 40px 24px;
}

.absd-um *,
.absd-um *::before,
.absd-um *::after {
	box-sizing: border-box;
}

.absd-um__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.absd-um__overlay {
	position: absolute;
	inset: 0;
	background-color: #000;
	opacity: var(--absd-overlay-opacity, 0.7);
	z-index: 1;
}

.absd-um__content {
	position: relative;
	z-index: 2;
	max-width: 720px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: auto;
}

.absd-um__logo {
	max-width: 180px;
	max-height: 90px;
	margin-bottom: 28px;
	object-fit: contain;
}

.absd-um__logo-fallback {
	font-size: 22px;
	letter-spacing: 4px;
	font-weight: 700;
	margin-bottom: 28px;
	color: var(--absd-accent, #c9a15a);
	text-transform: uppercase;
}

.absd-um__small-text {
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--absd-accent, #c9a15a);
	margin: 0 0 14px;
	font-weight: 600;
}

.absd-um__heading {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 20px;
	letter-spacing: -0.5px;
}

.absd-um__divider {
	width: 90px;
	height: 1px;
	background: var(--absd-accent, #c9a15a);
	margin: 8px auto 24px;
	opacity: 0.6;
}

.absd-um__description {
	font-size: clamp(1rem, 2vw, 1.15rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 28px;
	max-width: 560px;
}

.absd-um__icon {
	width: 64px;
	height: 64px;
	border: 1px solid var(--absd-accent, #c9a15a);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px auto 24px;
	color: var(--absd-accent, #c9a15a);
}

.absd-um__icon svg {
	width: 26px;
	height: 26px;
}

.absd-um__icon img {
	max-width: 32px;
	max-height: 32px;
	object-fit: contain;
}

.absd-um__retry {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 8px;
}

.absd-um__contact {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 6px;
}

.absd-um__contact a {
	color: var(--absd-accent, #c9a15a);
	text-decoration: none;
}

.absd-um__footer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 18px 24px;
	text-align: center;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.55);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Tablet --- */
@media (max-width: 782px) {
	.absd-um__heading {
		font-size: clamp(1.7rem, 6vw, 2.6rem);
	}

	.absd-um__logo {
		max-width: 140px;
		max-height: 70px;
	}
}

/* --- Mobile --- */
@media (max-width: 480px) {
	.absd-um {
		padding: 28px 18px 80px;
	}

	.absd-um__heading {
		font-size: 1.6rem;
	}

	.absd-um__description {
		font-size: 0.95rem;
	}

	.absd-um__small-text {
		font-size: 12px;
		letter-spacing: 1.5px;
	}

	.absd-um__icon {
		width: 52px;
		height: 52px;
	}

	.absd-um__footer {
		font-size: 0.72rem;
		padding: 12px 16px;
	}
}

/* ============ Template-specific modifiers ============ */

/* Template 2 — Minimal Dark */
.absd-um--t2 .absd-um__content {
	max-width: 560px;
}
.absd-um--t2 .absd-um__heading {
	font-weight: 600;
	letter-spacing: -0.5px;
}
.absd-um--t2 .absd-um__divider {
	width: 40px;
}

/* Template 3 — Modern Center (card) */
.absd-um--t3 .absd-um__content {
	background: rgba(20, 20, 20, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 56px 48px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
@media (max-width: 480px) {
	.absd-um--t3 .absd-um__content {
		padding: 36px 22px;
	}
}

/* Template 4 — Elegant */
.absd-um--t4 .absd-um__heading {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-style: italic;
}
.absd-um--t4 .absd-um__small-text {
	font-weight: 400;
	letter-spacing: 4px;
}

/* Template 5 — Corporate */
.absd-um--t5 {
	background-color: #12161c;
}
.absd-um--t5 .absd-um__heading {
	font-weight: 700;
	letter-spacing: -0.5px;
}
.absd-um--t5 .absd-um__content {
	max-width: 640px;
}
.absd-um--t5 .absd-um__icon {
	border-radius: 8px;
}

/* Template 6 — Fullscreen */
.absd-um--t6 .absd-um__heading {
	font-size: clamp(2.4rem, 7vw, 5rem);
	font-weight: 900;
	letter-spacing: -1px;
}
.absd-um--t6 .absd-um__content {
	max-width: 820px;
}
