/* Views and Downloads Counter Styles */

.custom-stats-section {
	margin: 25px 0;
}

.custom-stats-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.custom-stat-item {
	display: flex;
	align-items: center;
	gap: 15px;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 2px solid #f0f0f0;
	border-radius: 16px;
	padding: 20px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.custom-stat-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	transition: width 0.3s ease;
}

.custom-stat-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	border-color: transparent;
}

.custom-stat-item:hover::before {
	width: 100%;
	opacity: 0.05;
}

/* Views specific color */
.custom-stat-views::before {
	background: #5CB3C4;
}

.custom-stat-views:hover {
	border-color: #5CB3C4;
}

/* Downloads specific color */
.custom-stat-downloads::before {
	background: #27ae60;
}

.custom-stat-downloads:hover {
	border-color: #27ae60;
}

/* Stat Icon */
.custom-stat-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	flex-shrink: 0;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.custom-stat-views .custom-stat-icon {
	background: rgba(92, 179, 196, 0.1);
	color: #5CB3C4;
}

.custom-stat-downloads .custom-stat-icon {
	background: rgba(39, 174, 96, 0.1);
	color: #27ae60;
}

.custom-stat-icon i {
	font-size: 22px;
}

.custom-stat-item:hover .custom-stat-icon {
	transform: scale(1.1) rotate(5deg);
}

.custom-stat-views:hover .custom-stat-icon {
	background: rgba(92, 179, 196, 0.2);
	box-shadow: 0 4px 15px rgba(92, 179, 196, 0.3);
}

.custom-stat-downloads:hover .custom-stat-icon {
	background: rgba(39, 174, 96, 0.2);
	box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Stat Details */
.custom-stat-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.custom-stat-number {
	font-size: 24px;
	font-weight: 700;
	color: #2c3e50;
	line-height: 1;
}

.custom-stat-label {
	font-size: 13px;
	font-weight: 600;
	color: #7f8c8d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Pulse animation for numbers */
@keyframes stat-pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.custom-stat-item:hover .custom-stat-number {
	animation: stat-pulse 0.6s ease;
	color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 640px) {
	.custom-stats-container {
		gap: 12px;
	}
	
	.custom-stat-item {
		padding: 16px;
		gap: 12px;
	}
	
	.custom-stat-icon {
		width: 45px;
		height: 45px;
	}
	
	.custom-stat-icon i {
		font-size: 20px;
	}
	
	.custom-stat-number {
		font-size: 20px;
	}
	
	.custom-stat-label {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.custom-stats-container {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.custom-stat-item {
		padding: 15px;
	}
}

/* Alternative: Single row layout for very small spaces */
.custom-stats-container.compact {
	display: flex;
	gap: 10px;
}

.custom-stats-container.compact .custom-stat-item {
	flex: 1;
	padding: 15px;
}

.custom-stats-container.compact .custom-stat-icon {
	width: 40px;
	height: 40px;
}

.custom-stats-container.compact .custom-stat-icon i {
	font-size: 18px;
}

.custom-stats-container.compact .custom-stat-number {
	font-size: 20px;
}

.custom-stats-container.compact .custom-stat-label {
	font-size: 11px;
}