/**
 * Progress bar — used inside icon cards.
 */

.uw-progress {
	margin-top: 1.25rem;
}

.uw-progress__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
	font-size: max(0.75rem, 12px);
	color: var(--wp--preset--color--slate-teal);
	text-transform: lowercase;
}

.uw-progress__track {
	position: relative;
	height: 0.5rem;
	border-radius: var(--uw-radius-pill);
	background: var(--wp--preset--color--mint);
	overflow: hidden;
}

.uw-progress__fill {
	height: 100%;
	width: var(--uw-progress, 0%);
	border-radius: var(--uw-radius-pill);
	background: var(--uw-accent, #7bc47c);
	transition: width 0.3s ease;
}

/* Planned: empty bar + small dot at start */
.uw-progress[data-status="planned"] .uw-progress__fill {
	width: 0;
}

.uw-progress[data-status="planned"] .uw-progress__track::after {
	content: "";
	position: absolute;
	left: 0.125rem;
	top: 50%;
	translate: 0 -50%;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background: var(--uw-accent, #7bc47c);
}

@media (prefers-reduced-motion: reduce) {
	.uw-progress__fill {
		transition: none;
	}
}
