/*
 * verify-email.css -- Email verification page + shared banner styles.
 *
 * Mobile-first. Relies on tokens.css for custom properties and
 * event-instance.css for .ce-btn variants (must load before this file).
 *
 * The .ce-verify-banner and .ce-verify-flash classes are also used on
 * page-upload.php and page-my-contributions.php. Those pages load
 * upload.css / my-contributions.css which depend on event-instance.css,
 * but NOT on this file, so banner styles are duplicated in upload.css
 * and my-contributions.css via the shared classes defined here. To avoid
 * duplication we load this file on ALL three pages from functions.php
 * whenever the banner is needed.
 *
 * @package car-events
 * @since   1.2.0
 */

/* -- Page shell ──────────────────────────────────────────────────────────── */

.ce-verify-page {
	min-height: 100vh;
	padding: var(--density-pad);
}

.ce-verify-page__inner {
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: calc( var(--density-gap) * 1.5 );
}

/* -- Page header ─────────────────────────────────────────────────────────── */

.ce-verify-page__header {
	padding-top: calc( var(--density-pad) * 0.5 );
}

.ce-verify-page__title {
	font-family: var(--font-display);
	font-size: clamp( 28px, 6vw, 44px );
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 0.95;
	margin: 10px 0 0 0;
	color: var(--fg);
}

/* -- Body copy ───────────────────────────────────────────────────────────── */

.ce-verify-page__body {
	font-size: 16px;
	line-height: 1.55;
	color: var(--fg-2);
	margin: 0;
}

.ce-verify-page__hint {
	font-size: 12px;
	letter-spacing: 0.04em;
	line-height: 1.55;
	color: var(--fg-3);
	margin: 0;
}

/* -- Actions ─────────────────────────────────────────────────────────────── */

.ce-verify-page__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.ce-verify-page__resend-btn {
	min-height: 44px;
}

.ce-verify-page__resend-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* -- Inline alert (role=status feedback) ─────────────────────────────────── */

.ce-verify-alert[hidden] {
	display: none;
}

.ce-verify-alert {
	padding: 10px 14px;
	background: color-mix( in oklab, var(--accent) 8%, var(--bg-2) );
	border: 1px solid var(--line-2);
	border-radius: 8px;
	font-size: 14px;
	color: var(--fg-2);
	line-height: 1.5;
}

/* -- Shared: unverified banner (used on upload + my-contributions pages) ─── */

.ce-verify-banner {
	padding: 14px 18px;
	background: color-mix( in oklab, oklch( 82% 0.14 80 ) 8%, var(--bg-2) );
	border: 1px solid color-mix( in oklab, oklch( 72% 0.14 80 ) 30%, var(--bg-2) );
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ce-verify-banner__msg {
	font-size: 14px;
	line-height: 1.5;
	color: oklch( 88% 0.08 80 );
	margin: 0;
}

.ce-verify-banner__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.ce-verify-banner__btn {
	min-height: 38px;
	padding: 8px 16px;
	font-size: 13px;
}

.ce-verify-banner__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ce-verify-banner__feedback {
	font-size: 13px;
	color: var(--fg-3);
	line-height: 1.4;
}

/* -- Shared: verified flash (used on upload + my-contributions pages) ─────── */

.ce-verify-flash {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: color-mix( in oklab, oklch( 72% 0.16 150 ) 16%, var(--bg-2) );
	border: 1px solid oklch( 62% 0.16 150 );
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	color: oklch( 88% 0.14 150 );
	line-height: 1.4;
}

.ce-verify-flash::before {
	content: '';
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: oklch( 70% 0.18 150 );
	background-image: url( "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3,8.5 6.5,12 13,5'/></svg>" );
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}

/* -- Responsive ──────────────────────────────────────────────────────────── */

@media ( min-width: 640px ) {
	.ce-verify-page {
		padding: calc( var(--density-pad) * 1.5 ) var(--density-pad);
	}

	.ce-verify-banner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	.ce-verify-banner__actions {
		flex-shrink: 0;
	}
}

@media ( min-width: 1024px ) {
	.ce-verify-page {
		padding: 56px var(--density-pad);
	}
}
