/**
 * NIYAPRESS: Statistics Blocks Styling
 * Most Viewed, Browsing Now, Most Commented
 * VERSION PREMIUM - Enhanced Design
 */

/* Stats Section Container */
.np-stats-section {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 50px 0;
	margin-top: 40px;
	position: relative;
}

.np-stats-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

/* Stats Block */
.np-stats-block {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #e9ecef;
}

.np-stats-block:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.np-stats-block-head {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	padding: 18px 25px;
	border-bottom: 3px solid #e74c3c;
	position: relative;
}

.np-stats-block-head::after {
	content: '';
	position: absolute;
	bottom: -3px;
	right: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, #e74c3c 100%);
}

.np-stats-block-title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: #fff;
	text-align: right;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
	letter-spacing: 0.3px;
}

/* Stats List */
.np-stats-block-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
}

.np-stats-block-item {
	border-bottom: 1px solid #f1f3f5;
	position: relative;
	transition: all 0.3s ease;
	background: #fff;
}

.np-stats-block-item:last-child {
	border-bottom: none;
}

.np-stats-block-item:hover {
	background: linear-gradient(90deg, #fff5f5 0%, #fff 100%);
	border-left: 3px solid #e74c3c;
}

/* Number Badge - Enhanced */
.np-stats-block-number {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 15px;
	z-index: 2;
	box-shadow: 0 3px 8px rgba(231, 76, 60, 0.4);
	border: 2px solid #fff;
	transition: all 0.3s ease;
}

.np-stats-block-item:hover .np-stats-block-number {
	transform: translateY(-50%) scale(1.1) rotate(5deg);
	box-shadow: 0 5px 15px rgba(231, 76, 60, 0.6);
}

/* Item Link - Enhanced */
.np-stats-block-item-link {
	display: flex;
	align-items: center;
	padding: 14px 55px 14px 18px;
	text-decoration: none;
	color: inherit;
	gap: 15px;
	direction: rtl;
	transition: padding 0.3s ease;
}

.np-stats-block-item:hover .np-stats-block-item-link {
	padding-right: 60px;
}

.np-stats-block-item-thumb {
	flex-shrink: 0;
	width: 90px;
	height: 65px;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	position: relative;
}

.np-stats-block-item-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(231,76,60,0) 0%, rgba(231,76,60,0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.np-stats-block-item:hover .np-stats-block-item-thumb::after {
	opacity: 1;
}

.np-stats-block-item-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.np-stats-block-item:hover .np-stats-block-item-img {
	transform: scale(1.1);
}

.np-stats-block-item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.np-stats-block-item-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: #2c3e50;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.3s ease;
}

.np-stats-block-item:hover .np-stats-block-item-title {
	color: #e74c3c;
}

.np-stats-block-item-meta {
	font-size: 13px;
	color: #95a5a6;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.np-stats-block-item-meta::before {
	content: '🕐';
	font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.np-stats-section {
		padding: 35px 0;
	}
	
	.np-stats-block-item-link {
		padding: 12px 50px 12px 12px;
		gap: 12px;
	}
	
	.np-stats-block-item-thumb {
		width: 75px;
		height: 55px;
	}
	
	.np-stats-block-item-title {
		font-size: 14px;
	}
	
	.np-stats-block-number {
		width: 28px;
		height: 28px;
		font-size: 13px;
		right: 10px;
	}
	
	.np-stats-block-title {
		font-size: 17px;
	}
}

@media (max-width: 480px) {
	.np-stats-block-item-link {
		flex-direction: column;
		align-items: flex-start;
		padding-top: 18px;
		padding-bottom: 18px;
	}
	
	.np-stats-block-item-thumb {
		width: 100%;
		height: 140px;
	}
	
	.np-stats-block-number {
		top: 18px;
		transform: none;
	}
}

/* Animation on load */
@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.np-stats-block {
	animation: slideInUp 0.6s ease-out;
}

.np-stats-block:nth-child(2) {
	animation-delay: 0.1s;
}

.np-stats-block:nth-child(3) {
	animation-delay: 0.2s;
}
