/* Category Page Styles */

/* Category Hero */
.category-hero {
	width: 100%;
	padding: 60px 20px;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	text-align: center;
}

.category-hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.category-icon {
	font-size: 64px;
	margin-bottom: 20px;
}

.category-hero h1 {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	color: #1e1b4b;
	margin-bottom: 15px;
}

.category-hero p {
	font-size: 18px;
	color: #6b7280;
	margin-bottom: 30px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.category-stats {
	display: flex;
	justify-content: center;
	gap: 50px;
}

.cat-stat {
	text-align: center;
}

.cat-stat-num {
	display: block;
	font-size: 36px;
	font-weight: 800;
	color: #6366f1;
}

.cat-stat-label {
	font-size: 14px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Category Info */
.category-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	max-width: 1400px;
	margin: -30px auto 0;
	padding: 0 20px;
	position: relative;
	z-index: 10;
}

.info-card {
	background: #fff;
	padding: 25px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1e1b4b;
	margin-bottom: 15px;
}

.info-card p {
	font-size: 15px;
	color: #6b7280;
	line-height: 1.7;
}

.tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tag {
	padding: 8px 16px;
	background: #f3f4f6;
	border-radius: 50px;
	font-size: 13px;
	color: #374151;
	font-weight: 500;
}

/* Sort Options */
.sort-options select {
	padding: 8px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	color: #374151;
	background: #fff;
	cursor: pointer;
}

/* Related Categories */
.related-categories {
	width: 100%;
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 20px;
}

.related-categories h2 {
	font-size: 24px;
	font-weight: 700;
	color: #1e1b4b;
	margin-bottom: 20px;
	text-align: center;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
}

.related-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 25px;
	background: #fff;
	border-radius: 16px;
	text-decoration: none;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	border: 2px solid transparent;
}

.related-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
	border-color: var(--cat-color);
}

.related-icon {
	font-size: 36px;
	margin-bottom: 10px;
}

.related-name {
	font-size: 16px;
	font-weight: 600;
	color: #374151;
}

/* Tips Section */
.category-tips {
	width: 100%;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	padding: 40px 20px;
	margin-top: 40px;
}

.tips-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.tips-content h2 {
	font-size: 24px;
	font-weight: 700;
	color: #1e1b4b;
	margin-bottom: 25px;
}

.tips-grid {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.tip-item {
	padding: 15px 25px;
	background: #fff;
	border-radius: 50px;
	font-size: 14px;
	color: #374151;
	font-weight: 500;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Game Card Styles for Category Pages */
.list4 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
	padding: 25px 0;
}

.list4 .l1-box {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	text-decoration: none;
	transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(99, 102, 241, 0.08);
	position: relative;
}

.list4 .l1-box::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
	opacity: 0;
	transition: opacity 0.5s;
	z-index: 1;
	pointer-events: none;
}

.list4 .l1-box::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
	opacity: 0;
	transition: opacity 0.3s;
}

.list4 .l1-box:hover {
	transform: translateY(-12px) scale(1.02);
	box-shadow:
		0 25px 50px rgba(99, 102, 241, 0.15),
		0 10px 20px rgba(0, 0, 0, 0.08);
	border-color: transparent;
}

.list4 .l1-box:hover::before {
	opacity: 1;
}

.list4 .l1-box:hover::after {
	opacity: 1;
}

.list4 .l1-box img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
	filter: brightness(0.95);
}

.list4 .l1-box:hover img {
	transform: scale(1.1);
	filter: brightness(1);
}

.list4 .l1-box .text {
	padding: 22px;
	position: relative;
	z-index: 2;
	background: linear-gradient(to bottom, transparent, #fff 20%);
	margin-top: -10px;
}

.list4 .l1-box .text p:first-child {
	font-size: 17px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 12px 0;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color 0.3s;
}

.list4 .l1-box:hover .text p:first-child {
	color: #6366f1;
}

.list4 .l1-box .text p:last-child {
	font-size: 14px;
	color: #fff;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
	background-size: 200% 200%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 50px;
	margin: 0;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
	animation: gradient-shift 3s ease infinite paused;
}

.list4 .l1-box:hover .text p:last-child {
	animation-play-state: running;
}

@keyframes gradient-shift {

	0%,
	100% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}
}

.list4 .l1-box .play-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 200px;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 40%, transparent 70%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 20px;
	opacity: 0;
	transition: opacity 0.4s;
	z-index: 2;
}

.list4 .l1-box:hover .play-overlay {
	opacity: 1;
}

.list4 .l1-box .play-btn {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff;
	padding: 14px 35px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow:
		0 8px 25px rgba(99, 102, 241, 0.5),
		0 0 0 4px rgba(255, 255, 255, 0.2);
	transform: translateY(20px);
	transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	letter-spacing: 0.5px;
}

.list4 .l1-box:hover .play-btn {
	transform: translateY(0);
}

.list4 .l1-box .play-btn::before {
	content: '▶';
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 50%;
}

/* Mobile */
@media (max-width: 1000px) {
	.category-hero {
		padding: 40px 15px;
	}

	.category-icon {
		font-size: 48px;
	}

	.category-stats {
		gap: 30px;
	}

	.cat-stat-num {
		font-size: 28px;
	}

	.category-info {
		margin-top: -20px;
		padding: 0 15px;
		grid-template-columns: 1fr;
	}

	.info-card {
		padding: 20px;
	}

	.related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tips-grid {
		flex-direction: column;
	}

	.tip-item {
		text-align: center;
	}

	.list4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
		padding: 15px 0;
	}

	.list4 .l1-box {
		border-radius: 18px;
	}

	.list4 .l1-box img {
		height: 140px;
	}

	.list4 .l1-box .text {
		padding: 14px;
	}

	.list4 .l1-box .text p:first-child {
		font-size: 14px;
	}

	.list4 .l1-box .text p:last-child {
		font-size: 12px;
		padding: 6px 14px;
	}

	.list4 .l1-box .play-overlay {
		height: 140px;
		padding-bottom: 15px;
	}

	.list4 .l1-box .play-btn {
		padding: 10px 24px;
		font-size: 13px;
	}
}

@media (max-width: 600px) {
	.list4 {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.list4 .l1-box {
		flex-direction: row;
		align-items: center;
		border-radius: 16px;
		padding: 12px;
		gap: 15px;
	}

	.list4 .l1-box img {
		width: 130px;
		height: 100px;
		flex-shrink: 0;
		border-radius: 12px;
	}

	.list4 .l1-box .play-overlay {
		display: none;
	}

	.list4 .l1-box .text {
		padding: 0;
		margin-top: 0;
		background: none;
		flex: 1;
	}

	.list4 .l1-box .text p:first-child {
		font-size: 15px;
		margin-bottom: 8px;
	}

	.list4 .l1-box:hover {
		transform: translateY(-4px) scale(1.01);
	}
}