/* ==========================================================================
   SPVC View Counter — Layout Styles (Layouts 1–6)
   ========================================================================== */

/* ── Shared base ─────────────────────────────────────────────────────────── */
.spvc-views-wrap {
	font-family: inherit;
	font-size: 0.875rem;
	line-height: 1;
	display: block;
	margin: 0.75em 0;
}

.spvc-views-wrap .spvc-icon {
	width: 1em;
	height: 1em;
	fill: currentColor;
	flex-shrink: 0;
	vertical-align: -0.1em;
}

/* ── Layout 1: Minimal inline ────────────────────────────────────────────── */
.spvc-layout-1 {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #555;
}

.spvc-layout-1 .spvc-count {
	font-weight: 600;
	color: #333;
}

.spvc-layout-1 .spvc-label {
	color: #777;
}

/* ── Layout 2: Rounded badge ─────────────────────────────────────────────── */
.spvc-layout-2 {
	display: inline-block;
}

.spvc-layout-2 .spvc-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #f0f0f0;
	border: 1px solid #d9d9d9;
	border-radius: 20px;
	padding: 4px 12px;
	color: #444;
	font-size: 0.82rem;
	white-space: nowrap;
}

.spvc-layout-2 .spvc-badge .spvc-icon {
	color: #666;
}

.spvc-layout-2 .spvc-count {
	font-weight: 700;
	color: #222;
}

.spvc-layout-2 .spvc-label {
	color: #666;
}

/* ── Layout 3: Gradient pill ─────────────────────────────────────────────── */
.spvc-layout-3 {
	display: block;
}

.spvc-layout-3 .spvc-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient( 135deg, #667eea 0%, #764ba2 100% );
	border-radius: 999px;
	padding: 6px 16px;
	color: #fff;
	font-size: 0.84rem;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}

.spvc-layout-3 .spvc-pill-icon {
	display: flex;
	align-items: center;
	opacity: 0.9;
}

.spvc-layout-3 .spvc-pill .spvc-icon {
	width: 0.95em;
	height: 0.95em;
}

.spvc-layout-3 .spvc-count {
	font-weight: 700;
	font-size: 0.95rem;
}

.spvc-layout-3 .spvc-pill-sep {
	opacity: 0.6;
}

.spvc-layout-3 .spvc-label {
	opacity: 0.9;
	font-size: 0.82rem;
}

/* ── Layout 4: Icon card ─────────────────────────────────────────────────── */
.spvc-layout-4 {
	display: block;
}

.spvc-layout-4 .spvc-icon-card {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.spvc-layout-4 .spvc-icon-area {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2271b1;
	color: #fff;
	padding: 10px 14px;
}

.spvc-layout-4 .spvc-icon-area .spvc-icon {
	width: 1.25em;
	height: 1.25em;
}

.spvc-layout-4 .spvc-text-area {
	display: flex;
	flex-direction: column;
	padding: 8px 14px;
	gap: 2px;
}

.spvc-layout-4 .spvc-count {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1d2327;
	line-height: 1;
}

.spvc-layout-4 .spvc-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #72aee6;
}

/* ── Layout 5: Stats bar ─────────────────────────────────────────────────── */
.spvc-layout-5 {
	display: block;
}

.spvc-layout-5 .spvc-stats-bar {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fafbfc;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.spvc-layout-5 .spvc-bar-stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 14px;
	gap: 3px;
}

.spvc-layout-5 .spvc-count {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1d2327;
	line-height: 1;
}

.spvc-layout-5 .spvc-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #72aee6;
}

.spvc-layout-5 .spvc-bar-divider {
	width: 1px;
	height: 36px;
	background: #e2e8f0;
	flex-shrink: 0;
}

/* ── Layout 6: Modern floating card ─────────────────────────────────────── */
.spvc-layout-6 {
	display: block;
}

.spvc-layout-6 .spvc-modern-card {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 18px;
	box-shadow: 0 4px 16px rgba(0,0,0,.08);
	min-width: 240px;
}

.spvc-layout-6 .spvc-modern-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.spvc-layout-6 .spvc-modern-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient( 135deg, #667eea 0%, #764ba2 100% );
	border-radius: 10px;
	color: #fff;
	flex-shrink: 0;
}

.spvc-layout-6 .spvc-modern-icon .spvc-icon {
	width: 1.25em;
	height: 1.25em;
}

.spvc-layout-6 .spvc-modern-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.spvc-layout-6 .spvc-count {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1d2327;
	line-height: 1;
}

.spvc-layout-6 .spvc-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #72aee6;
}

.spvc-layout-6 .spvc-modern-right {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding-left: 16px;
	border-left: 1px solid #f0f0f1;
}

.spvc-layout-6 .spvc-realtime-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

/* Hide realtime section when count is 0 */
.spvc-layout-6 .spvc-modern-right[style*="display: none"] {
	display: none !important;
}

.spvc-layout-6 .spvc-realtime-count {
	font-size: 1.1rem;
	font-weight: 700;
	color: #28a745;
	line-height: 1;
}

.spvc-layout-6 .spvc-realtime-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #9ca3af;
	white-space: nowrap;
}

/* Pulse dot animation */
.spvc-pulse-dot {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #28a745;
	animation: spvc-pulse-anim 1.8s ease-in-out infinite;
	margin: 0 auto;
}

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

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 480px ) {
	.spvc-layout-5 .spvc-stats-bar {
		flex-direction: column;
		gap: 0;
	}
	.spvc-layout-5 .spvc-bar-divider {
		width: 100%;
		height: 1px;
	}
	.spvc-layout-6 .spvc-modern-card {
		min-width: 0;
		flex-direction: column;
		gap: 10px;
	}
	.spvc-layout-6 .spvc-modern-right {
		border-left: none;
		border-top: 1px solid #f0f0f1;
		padding-left: 0;
		padding-top: 10px;
		flex-direction: row;
		gap: 6px;
	}
}
