/**
 * Campaign Countdown — block styles.
 *
 * @package AmbassadorHub\Campaigns\Blocks\CampaignCountdown
 */

/* ── Editor canvas preview ─────────────────────────────────────────────── */

.ambh-campaign-countdown.ambh-block-preview {
	padding: 2rem;
	background: #f0f0f1;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
}

/* ── Countdown wrapper ──────────────────────────────────────────────────── */

.ambh-campaign-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

/* ── Label ──────────────────────────────────────────────────────────────── */

.ambh-countdown__label {
	margin: 0;
	font-size: var(--ambh-font-sm, 0.875rem);
	color: var(--ambh-text-muted, #646970);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 500;
}

/* ── Units row ──────────────────────────────────────────────────────────── */

.ambh-countdown__units {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ambh-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 3.5rem;
}

.ambh-countdown__value {
	font-size: var(--ambh-font-xl, 2rem);
	font-weight: 700;
	line-height: 1;
	color: var(--ambh-text-color, #1e1e1e);
}

.ambh-countdown__unit-label {
	margin-top: 0.25rem;
	font-size: var(--ambh-font-xs, 0.75rem);
	color: var(--ambh-text-muted, #646970);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ambh-countdown__separator {
	font-size: var(--ambh-font-lg, 1.5rem);
	font-weight: 700;
	color: var(--ambh-text-color, #1e1e1e);
	align-self: flex-start;
	margin-top: 0.1rem;
	line-height: 2rem;
}

/* ── Urgency state ──────────────────────────────────────────────────────── */

.ambh-campaign-countdown.is-urgent .ambh-countdown__value {
	color: var(--ambh-color-secondary, #cc1818);
}

.ambh-campaign-countdown.is-urgent .ambh-countdown__separator {
	color: var(--ambh-color-secondary, #cc1818);
}

/* ── Ended state ────────────────────────────────────────────────────────── */

.ambh-campaign-countdown.is-ended {
	padding: 0.75rem 1.25rem;
	background: var(--ambh-bg-subtle, #f0f0f1);
	border-radius: 4px;
}

.ambh-countdown__ended-label {
	margin: 0;
	font-size: var(--ambh-font-sm, 0.875rem);
	color: var(--ambh-text-muted, #50575e);
	font-weight: 500;
}
