/**
 * Frontend Styles for JEM Tiered Progress Bar
 */

.jem-tpb-container {
	margin: 20px 0;
	padding: 15px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
	font-family: inherit;
	box-sizing: border-box;
}

.jem-tpb-message {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 15px;
	text-align: center;
	color: #333;
}

.jem-tpb-bar-wrapper {
	position: relative;
	height: 12px;
	background: #e0e0e0;
	border-radius: 10px;
	margin-bottom: 25px;
	/* space for markers */
}

.jem-tpb-bar-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background-color: var(--jem-tpb-color, hwb(54 0% 0% / 0.956));
	border-radius: 10px;
	transition: width 0.5s ease-in-out;
}

.jem-tpb-marker {
	position: absolute;
	top: -6px;
	/* center vertically wrt bar */
	width: 2px;
	height: 24px;
	background: rgba(0, 0, 0, 0.1);
	transform: translateX(-50%);
	z-index: 2;
}

.jem-tpb-icon {
	position: absolute;
	top: 26px;
	/* place below the marker */
	left: 50%;
	transform: translateX(-50%);
	font-size: 20px;
	opacity: 0.5;
	transition: opacity 0.3s ease;
	filter: grayscale(100%);
}

.jem-tpb-icon.active {
	opacity: 1;
	filter: grayscale(0%);
	transform: translateX(-50%) scale(1.2);
}

/* Animations for active icons */
@keyframes bounce_active {

	0%,
	100% {
		transform: translateX(-50%) scale(1.2);
	}

	50% {
		transform: translateX(-50%) scale(1.4);
	}
}

.jem-tpb-icon.active {
	animation: bounce_active 1s ease-in-out;
}