/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 */

.wp-block-n8finch-goal-progress {
	margin: 2rem 0;
}

.goal-progress-container {
	max-width: 100%;
	width: 100%;
}

.goal-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.goal-progress-label {
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e1e1e;
}

.goal-progress-value {
	font-size: 1rem;
	font-weight: 500;
	color: #757575;
}

.goal-progress-thermometer {
	position: relative;
	width: 100%;
}

.goal-progress-track {
	position: relative;
	width: 100%;
	height: 40px;
	background-color: #f0f0f0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goal-progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 20px;
	transition: width 0.6s ease-in-out, background 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Circle styles */
.goal-progress-circle-wrapper {
	position: relative;
	width: 160px;
	height: 160px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.goal-progress-circle {
	width: 100%;
	height: 100%;
}

.goal-progress-circle-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	pointer-events: none;
}

.goal-progress-circle-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1e1e1e;
	margin-bottom: 0.25rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.goal-progress-circle-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #757575;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.goal-progress-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.goal-progress-label {
		font-size: 1rem;
	}

	.goal-progress-value {
		font-size: 0.875rem;
	}

	.goal-progress-track {
		height: 32px;
	}

	.goal-progress-circle-wrapper {
		width: 140px;
		height: 140px;
	}

	.goal-progress-circle-value {
		font-size: 1.25rem;
	}

	.goal-progress-circle-label {
		font-size: 0.75rem;
	}
}
