/*
 * Blood Bank > Maintenance Mode — the full-screen gate shown while ON.
 * Every rule is prefixed `.bbb-maint-` so this file can never override
 * or redesign anything else in the app (same convention as
 * assets/css/profile.css's `.acct-` and announcements.css's `.ann-`).
 * Rendered server-side by inc/class-maintenance-mode.php::render_screen_html()
 * and reproduced with identical classes by assets/js/app.js so ON/OFF
 * transitions never flash mismatched styling.
 */

.bbb-maint-screen {
	--bbb-maint-primary: #B00020;
	--bbb-maint-secondary: #D32F2F;
	--bbb-maint-bg: #FFF7F7;

	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 56px 24px 32px;
	background: radial-gradient(120% 90% at 50% 0%, var(--bbb-maint-secondary) 0%, var(--bbb-maint-primary) 45%, #4A0A10 100%);
	color: #fff;
	font-family: var(--font-bn, 'Hind Siliguri', system-ui, sans-serif);
}

.bbb-maint-logo {
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}
.bbb-maint-logo img { width: 100%; height: 100%; object-fit: cover; }
.bbb-maint-logo i { font-size: 28px; color: #fff; }

.bbb-maint-brand {
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.85;
	font-weight: 600;
	margin-bottom: 36px;
}

.bbb-maint-illustration {
	position: relative;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 28px;
}
.bbb-maint-illustration > .fa-triangle-exclamation {
	font-size: 42px;
	color: #fff;
}
.bbb-maint-gear {
	position: absolute;
	color: rgba(255, 255, 255, 0.55);
	font-size: 20px;
}
.bbb-maint-gear-1 { top: 6px; left: 10px; animation: bbb-maint-spin 6s linear infinite; }
.bbb-maint-gear-2 { bottom: 8px; right: 6px; font-size: 16px; animation: bbb-maint-spin 5s linear infinite reverse; }
@keyframes bbb-maint-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.bbb-maint-gear { animation: none; }
}

.bbb-maint-heart {
	position: absolute;
	bottom: -8px;
	right: -6px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.bbb-maint-heart i { font-size: 16px; color: var(--bbb-maint-primary); }

.bbb-maint-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 14px;
	line-height: 1.5;
}

.bbb-maint-desc {
	font-size: 14px;
	line-height: 1.9;
	opacity: 0.92;
	margin: 0 0 28px;
	max-width: 320px;
}

.bbb-maint-eta {
	width: 100%;
	max-width: 340px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 18px;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.bbb-maint-eta-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.bbb-maint-eta-icon i { font-size: 18px; }
.bbb-maint-eta-text { text-align: left; }
.bbb-maint-eta-label { font-size: 11px; opacity: 0.8; }
.bbb-maint-eta-value { font-size: 14px; font-weight: 600; margin-top: 2px; }

.bbb-maint-footer {
	font-size: 13px;
	opacity: 0.85;
	margin: 20px 0 0;
}
.bbb-maint-footer i { color: #ffd4d9; margin-left: 4px; }

/* Desktop/tablet: the app's own .app-shell elsewhere caps at a phone-width
   column, so mirror that here for a consistent, centered presentation
   instead of a full-bleed edge-to-edge card on wide screens. */
@media (min-width: 560px) {
	.bbb-maint-screen {
		max-width: 420px;
		margin: 24px auto;
		min-height: calc(100vh - 48px);
		min-height: calc(100dvh - 48px);
		border-radius: 32px;
		box-shadow: 0 30px 60px -20px rgba(176, 0, 32, 0.35);
	}
}
