/* ==========================================================================
   SPVC Frontend Styles
   ========================================================================== */

/* Inline view counter */
.spvc-views {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875em;
	color: #646970;
}

.spvc-views::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23646970'%3E%3Cpath d='M12 4.5C7 4.5 2.7 7.6 1 12c1.7 4.4 6 7.5 11 7.5s9.3-3.1 11-7.5C21.3 7.6 17 4.5 12 4.5zm0 12.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	vertical-align: middle;
}

/* Real-time count badge */
.spvc-realtime-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8em;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 20px;
	padding: 2px 10px;
	color: #856404;
}

.spvc-realtime-pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #28a745;
	animation: spvc-pulse 1.5s infinite;
}

@keyframes spvc-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: 0.5; transform: scale(1.3); }
}

/* Popular / Trending post lists */
.spvc-popular-posts,
.spvc-trending-posts,
.spvc-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.spvc-item,
.spvc-widget-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f1;
}

.spvc-item:last-child,
.spvc-widget-item:last-child {
	border-bottom: none;
}

.spvc-thumb img,
.spvc-widget-item img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.spvc-post-meta,
.spvc-post-info {
	flex: 1;
	min-width: 0;
}

.spvc-post-title,
.spvc-post-info a {
	display: block;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spvc-post-title:hover,
.spvc-post-info a:hover {
	color: #2271b1;
}

.spvc-views-count,
.spvc-view-count {
	display: block;
	font-size: 0.8em;
	color: #646970;
	margin-top: 2px;
}

.spvc-post-date {
	display: block;
	font-size: 0.75em;
	color: #9ca3af;
	margin-top: 2px;
}

/* WooCommerce product badge */
.spvc-product-views-badge {
	display: inline-block;
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 3px;
	position: absolute;
	bottom: 4px;
	left: 4px;
	z-index: 2;
}

/* Single product meta */
.spvc-single-product-views {
	display: block;
	font-size: 0.85em;
	color: #646970;
	margin-top: 8px;
}
