/**
 * WOM Social Proof Styles
 * Elegant stats bar for product pages
 *
 * @package WOM_Social_Proof
 * @version 1.0.2
 */

.stats-bar {
	background: linear-gradient(135deg, #F8FDFC 0%, #EDF8F6 50%, #E5F5F1 100%);
	padding: 12px 20px;
	max-width: fit-content;
	width: auto;
	text-align: center;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
	            0 1px 3px rgba(27, 122, 104, 0.05);
	border: 1px solid rgba(197, 232, 224, 0.3);
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	z-index: 50;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: hidden;
}

.stats-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(237, 248, 246, 0.3) 0%, rgba(248, 253, 252, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.stats-bar:hover {
	box-shadow: 0 4px 12px rgba(27, 122, 104, 0.08),
	            0 2px 6px rgba(37, 201, 182, 0.06);
	border-color: rgba(37, 201, 182, 0.3);
	transform: translateY(-2px);
}

.stats-bar:hover::before {
	opacity: 1;
}

.stats-content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-size: 14px;
	color: #374151;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	position: relative;
	z-index: 1;
}

.stat-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.stats-bar:hover .stat-group {
	transform: scale(1.02);
}

.stars {
	font-size: 15px;
	color: #1B7A68;
	display: inline-flex;
	gap: 2px;
	filter: drop-shadow(0 1px 2px rgba(37, 201, 182, 0.3));
}

/* Star styling using Unicode characters */
.stars .star {
	display: inline-block;
	font-size: 26px;
	line-height: 1;
	position: relative;
}

/* Full star - filled */
.stars .star-full {
	color: #1B7A68;
	text-shadow: 0 1px 2px rgba(27, 122, 104, 0.3);
}

/* Half star - using gradient clip */
.stars .star-half {
	background: linear-gradient(90deg, #1B7A68 50%, #D1D5DB 50%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: none;
}

/* Empty star - outlined */
.stars .star-empty {
	color: #D1D5DB;
}

.rating-value {
	font-size: 18px;
	font-weight: 700;
	color: #1B7A68;
	letter-spacing: 0.5px;
}

.stat-number {
	font-weight: 700;
	font-size: 16px;
	color: #1B7A68;
	letter-spacing: 0.3px;
}

.stat-suffix {
	font-size: 13px;
	font-weight: 500;
	color: #6B7280;
	letter-spacing: 0.2px;
}

.divider {
	font-size: 14px;
	color: #D1D5DB;
	font-weight: 300;
	padding: 0 4px;
}

/* Ensure social proof banner is always visible */
#social-proof-banner {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 50;
}

@media (max-width: 768px) {
	.stats-bar {
		padding: 10px 16px !important;
		margin: 16px 0 !important;
		border-radius: 10px !important;
	}

	.stats-content {
		gap: 12px !important;
		font-size: 13px;
		justify-content: center !important;
	}

	.stat-group {
		gap: 6px !important;
	}

	.stars {
		font-size: 13px;
		gap: 1px !important;
	}

	.rating-value,
	.stat-number {
		font-size: 15px;
		font-weight: 700;
	}

	.stat-suffix {
		font-size: 12px;
		font-weight: 500;
	}

	.divider {
		font-size: 12px;
		padding: 0 2px;
	}
}

/* Phone optimization - Very small screens */
@media (max-width: 480px) {
	.stats-bar {
		padding: 8px 12px !important;
		margin: 12px 0 !important;
		border-radius: 8px !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.stats-content {
		gap: 8px !important;
		font-size: 12px !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
	}

	.stat-group {
		gap: 5px !important;
	}

	.stars {
		font-size: 12px !important;
		gap: 1px !important;
	}

	.rating-value {
		font-size: 14px !important;
		font-weight: 700 !important;
	}

	.stat-number {
		font-size: 14px !important;
		font-weight: 700 !important;
	}

	.stat-suffix {
		font-size: 11px !important;
		font-weight: 500 !important;
	}

	.divider {
		font-size: 10px !important;
		padding: 0 2px !important;
	}
}
