/* ============================================
   PREMIUM STAT STRIP
   Infinity2 Glass Style with Trend Indicators & Background Texture
   ============================================ */

.stat-strip-premium {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: var(--bg-glass);
	backdrop-filter: var(--blur-sm);
	-webkit-backdrop-filter: var(--blur-sm);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	padding: 30px 20px;
	z-index: 2;
	overflow: hidden;
}

/* Background Texture - Nebula/Particle Glow */
.stat-strip-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

/* Nebula Glow Spots */
.nebula-glow {
	position: absolute;
	border-radius: 50%;
	opacity: 0.15;
	filter: blur(40px);
	animation: nebulaFloat 20s ease-in-out infinite;
}

.nebula-1 {
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(138, 43, 226, 0.4), transparent);
	top: -100px;
	left: 10%;
	animation-delay: 0s;
}

.nebula-2 {
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(79, 89, 177, 0.3), transparent);
	top: -50px;
	right: 20%;
	animation-delay: 7s;
}

.nebula-3 {
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(138, 43, 226, 0.25), transparent);
	bottom: -50px;
	left: 50%;
	transform: translateX(-50%);
	animation-delay: 14s;
}

@keyframes nebulaFloat {
	0%, 100% {
		transform: translate(0, 0) scale(1);
		opacity: 0.15;
	}
	33% {
		transform: translate(20px, -15px) scale(1.1);
		opacity: 0.2;
	}
	66% {
		transform: translate(-15px, 10px) scale(0.9);
		opacity: 0.1;
	}
}

/* Particle Pattern */
.particle-pattern {
	position: absolute;
	inset: 0;
	background-image: 
		radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 1px, transparent 1px),
		radial-gradient(circle at 60% 70%, rgba(79, 89, 177, 0.08) 1px, transparent 1px),
		radial-gradient(circle at 80% 40%, rgba(138, 43, 226, 0.06) 1px, transparent 1px),
		radial-gradient(circle at 40% 80%, rgba(79, 89, 177, 0.08) 1px, transparent 1px);
	background-size: 120px 120px, 150px 150px, 100px 100px, 130px 130px;
	background-position: 0 0, 30px 30px, 60px 60px, 90px 90px;
	opacity: 0.3;
	animation: particleDrift 30s linear infinite;
}

@keyframes particleDrift {
	0% {
		background-position: 0 0, 30px 30px, 60px 60px, 90px 90px;
	}
	100% {
		background-position: 120px 120px, 150px 150px, 100px 100px, 130px 130px;
	}
}

/* Stat Strip Container */
.stat-strip-container {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	z-index: 1;
}

/* Stat Block */
.stat-block {
	text-align: center;
	padding: 24px 20px;
	border-radius: var(--radius-md);
	background: rgba(15, 21, 37, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.stat-block::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
	transition: left 0.5s ease;
	z-index: 0;
}

.stat-block:hover::before {
	left: 100%;
}

.stat-block:hover {
	border-color: var(--border-accent);
	box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
	transform: translateY(-4px);
	background: rgba(15, 21, 37, 0.6);
}

.stat-icon {
	font-size: 32px;
	color: var(--accent-primary);
	margin-bottom: 4px;
	display: block;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 2px 4px rgba(138, 43, 226, 0.3));
}

.stat-number {
	font-size: 36px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 4px;
	display: block;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	position: relative;
	z-index: 1;
	line-height: 1.2;
}

/* Trend Indicator */
.stat-trend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-bottom: 4px;
	position: relative;
	z-index: 1;
	min-height: 18px;
}

.trend-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
	transition: all 0.2s ease;
}

.trend-icon {
	font-size: 10px;
	line-height: 1;
}

.trend-value {
	font-weight: 600;
	letter-spacing: 0.3px;
}

.trend-label {
	font-size: 10px;
	opacity: 0.7;
}

/* Trend Directions */
.trend-up {
	color: #4caf50;
}

.trend-up .trend-icon {
	color: #4caf50;
}

.trend-down {
	color: #f44336;
}

.trend-down .trend-icon {
	color: #f44336;
}

.trend-neutral {
	color: var(--text-muted);
}

.stat-block:hover .trend-item {
	color: var(--text-secondary);
}

.stat-block:hover .trend-up {
	color: #66bb6a;
}

.stat-block:hover .trend-down {
	color: #ef5350;
}

/* Progress Bar */
.stat-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	overflow: hidden;
	z-index: 0;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	transition: width 0.6s ease;
	box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
	position: relative;
	overflow: hidden;
}

.progress-bar::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

.stat-label {
	font-size: 14px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 500;
	position: relative;
	z-index: 1;
	line-height: 1.3;
}

/* Responsive */
@media (max-width: 1023px) {
	.stat-strip-premium {
		padding: 24px 16px;
	}
	
	.stat-strip-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	
	.stat-block {
		padding: 20px 16px;
	}
	
	.stat-icon {
		font-size: 28px;
	}
	
	.stat-number {
		font-size: 32px;
	}
	
	.nebula-glow {
		filter: blur(30px);
	}
	
	.nebula-1 {
		width: 200px;
		height: 200px;
	}
	
	.nebula-2 {
		width: 180px;
		height: 180px;
	}
	
	.nebula-3 {
		width: 150px;
		height: 150px;
	}
}

@media (max-width: 768px) {
	.stat-strip-premium {
		padding: 20px 12px;
	}
	
	.stat-strip-container {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.stat-block {
		padding: 18px 16px;
	}
	
	.stat-icon {
		font-size: 24px;
	}
	
	.stat-number {
		font-size: 28px;
	}
	
	.stat-label {
		font-size: 12px;
	}
	
	.trend-item {
		font-size: 10px;
	}
	
	.nebula-glow {
		opacity: 0.1;
		filter: blur(20px);
	}
	
	.particle-pattern {
		opacity: 0.2;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.nebula-glow,
	.particle-pattern,
	.progress-bar::after,
	.stat-block::before {
		animation: none;
	}
	
	.stat-block:hover {
		transform: none;
	}
}

