/**
 * Fundraiser Stats Block Styles
 */

.fundraiser-stats-block {
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--ambh-border-color, #e0e0e0);
	border-radius: 4px;
}

/* Stats Container */
.stats-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}

/* Stat Cards */
.stat-card {
	padding: 15px;
	background: var(--ambh-bg-subtle, #f6f7f7);
	border: 1px solid var(--ambh-border-color, #e0e0e0);
	border-radius: 4px;
	text-align: center;
}

.stat-card.stat-primary {
	background: var(--ambh-color-primary, #2271b1);
	color: #fff;
	border-color: var(--ambh-color-primary, #2271b1);
}

.stat-card.stat-primary .stat-label {
	color: rgba(255, 255, 255, 0.9);
}

/* Stat Content */
.stat-value {
	font-size: var(--ambh-font-lg, 1.5rem);
	font-weight: 700;
	margin-bottom: 4px;
}

.stat-card.stat-primary .stat-value {
	color: #fff;
}

.stat-label {
	font-size: var(--ambh-font-base, 1rem);
	color: var(--ambh-text-muted, #646970);
}

/* Progress Section */
.progress-section {
	padding: 15px;
	background: var(--ambh-bg-subtle, #f6f7f7);
	border: 1px solid var(--ambh-border-color, #e0e0e0);
	border-radius: 4px;
}

.progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.progress-label {
	font-size: var(--ambh-font-base, 1rem);
	font-weight: 600;
}

.progress-percentage {
	font-size: var(--ambh-font-base, 1rem);
	font-weight: 700;
	color: var(--ambh-text-color, #1e1e1e);
}

.progress-bar-wrapper {
	width: 100%;
	height: 16px;
	background: color-mix(in srgb, var(--ambh-color-progress, #27ae60) 18%, #fff);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 10px;
}

.progress-bar-fill {
	height: 100%;
	background: var(--ambh-color-progress, #27ae60);
	border-radius: 4px;
	transition: width 0.6s ease;
}

.progress-footer {
	text-align: center;
	font-size: var(--ambh-font-xs, 0.75rem);
	color: var(--ambh-text-muted, #646970);
}

/* Responsive Design */
@media (max-width: 768px) {
	.stats-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	
	.stat-card {
		padding: 12px;
	}
	
	.stat-icon {
		font-size: var(--ambh-font-lg, 1.5rem);
	}
	
	.stat-value {
		font-size: var(--ambh-font-md, 1.25rem);
	}
}

@media (max-width: 480px) {
	.stats-container {
		grid-template-columns: 1fr;
	}
}
