/* Banner Slider */
.banner-slider {
	width: 100%;
	background: #fff;
	padding: 20px;
	box-sizing: border-box;
}

.banner-container {
	display: flex;
	gap: 20px;
	max-width: 1400px;
	margin: 0 auto;
	min-height: 400px;
}

.banner-left {
	flex: 1.5;
	min-width: 0;
}

.banner-right {
	flex: 0.5;
	min-width: 0;
}

.game-carousel {
	position: relative;
	width: 100%;
	height: 500px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
	opacity: 1;
	z-index: 1;
}

.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
	display: flex;
	align-items: flex-end;
	padding: 25px;
}

.slide-info {
	color: #fff;
	max-width: 80%;
}

.slide-title {
	font-size: clamp(20px, 3vw, 32px);
	font-weight: 800;
	margin-bottom: 10px;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.slide-instructions {
	font-size: clamp(12px, 1.5vw, 14px);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 20px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.slide-play-btn {
	display: inline-block;
	padding: 12px 30px;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border-radius: 30px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
	border: 2px solid transparent;
}

.slide-play-btn:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
	background: #fff;
	color: var(--primary);
	border-color: var(--primary);
}

.carousel-dots {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.carousel-dots .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

.carousel-dots .dot.active {
	background: #fff;
	transform: scale(1.2);
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	border: none;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
	background: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
	left: 15px;
}

.carousel-next {
	right: 15px;
}

.game-cards-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 500px;
	overflow-y: auto;
	padding-right: 5px;
}

.game-cards-list::-webkit-scrollbar {
	width: 4px;
}

.game-cards-list::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.game-cards-list::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 4px;
}

.game-cards-list::-webkit-scrollbar-thumb:hover {
	background: #ccc;
}

.game-info-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: #fff;
	border-radius: 14px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.game-info-card:hover {
	background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
	border-color: var(--primary);
	box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
	transform: translateX(8px);
}

.game-info-card.active {
	background: linear-gradient(135deg, #eef2ff 0%, #fff 100%);
	border-color: var(--primary);
	box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.game-info-card .card-thumb {
	width: 80px;
	height: 60px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-info-card .card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.game-info-card:hover .card-thumb img {
	transform: scale(1.1);
}

.game-info-card .card-info {
	flex: 1;
	min-width: 0;
}

.game-info-card .card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--gray-800);
	margin-bottom: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.game-info-card .card-category {
	font-size: 12px;
	color: var(--primary);
	font-weight: 600;
}

.game-info-card .card-play {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s;
	box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

.game-info-card:hover .card-play {
	transform: scale(1.1);
	box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.game-info-card .card-play::after {
	content: '▶';
	color: #fff;
	font-size: 11px;
	margin-left: 2px;
}

.game-info-card:hover {
	background: #fff;
	border-color: #6366f1;
	box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
	transform: translateX(5px);
}

.game-info-card.active {
	background: #fff;
	border-color: #6366f1;
	box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.game-info-card .card-thumb {
	width: 70px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.game-info-card .card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-info-card .card-info {
	flex: 1;
	min-width: 0;
}

.game-info-card .card-title {
	font-size: 14px;
	font-weight: 600;
	color: #1e1b4b;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.game-info-card .card-category {
	font-size: 12px;
	color: #6366f1;
	font-weight: 500;
}

.game-info-card .card-play {
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.game-info-card .card-play::after {
	content: '▶';
	color: #fff;
	font-size: 10px;
	margin-left: 2px;
}

/* Hero Section */
.hero-section {
	width: 100%;
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
	padding: 80px 20px;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.5;
}

.hero-content {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	z-index: 1;
}

.hero-content h1 {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	color: #fff;
	margin-bottom: 20px;
	line-height: 1.2;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content > p {
	font-size: clamp(16px, 2vw, 22px);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 40px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.hero-stats {
	display: flex;
	justify-content: center;
	gap: 50px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

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

.stat-number {
	display: block;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	color: #fbbf24;
	line-height: 1;
	margin-bottom: 8px;
}

.stat-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cta-button {
	display: inline-block;
	padding: 16px 40px;
	background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.cta-button:hover {
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 15px 40px rgba(236, 72, 153, 0.5);
}

/* Features Section */
.features-section {
	width: 100%;
	max-width: 1400px;
	margin: -40px auto 0;
	padding: 0 40px;
	position: relative;
	z-index: 10;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.feature-card {
	background: #fff;
	padding: 30px;
	border-radius: 20px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
	font-size: 48px;
	margin-bottom: 15px;
}

.feature-card h3 {
	font-size: 20px;
	font-weight: 700;
	color: #1e1b4b;
	margin-bottom: 10px;
}

.feature-card p {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.6;
}

/* Categories Section */
.categories-section {
	width: 100%;
	margin: 50px 0;
	padding: 40px 20px;
	background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
	border-radius: var(--radius-xl);
}

.section-title {
	font-size: 32px;
	font-weight: 800;
	color: var(--dark);
	text-align: center;
	margin-bottom: 35px;
	position: relative;
}

.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	margin: 15px auto 0;
	border-radius: 2px;
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 18px;
	max-width: 1000px;
	margin: 0 auto;
}

.category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 18px;
	background: #fff;
	border-radius: var(--radius-xl);
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
	border: 2px solid transparent;
	position: relative;
	overflow: hidden;
}

.category-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--cat-color) 0%, transparent 100%);
	opacity: 0;
	transition: opacity 0.4s;
}

.category-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
	border-color: var(--cat-color);
}

.category-card:hover::before {
	opacity: 0.05;
}

.cat-icon {
	font-size: 42px;
	margin-bottom: 12px;
	transition: transform 0.3s;
}

.category-card:hover .cat-icon {
	transform: scale(1.15);
}

.cat-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--gray-700);
}

/* View All Link */
.view-all {
	margin-left: auto;
	font-size: 14px;
}

.view-all a {
	color: var(--primary);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.view-all a:hover {
	color: var(--primary-dark);
	gap: 8px;
}

.view-all a::after {
	content: '→';
	transition: transform 0.3s;
}

.view-all a:hover::after {
	transform: translateX(3px);
}

.m-title {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* Why Section */
.why-section {
	width: 100%;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	padding: 70px 20px;
	margin-top: 50px;
	position: relative;
}

.why-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.why-content {
	max-width: 1200px;
	margin: 0 auto;
}

.why-content h2 {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	color: var(--dark);
	text-align: center;
	margin-bottom: 50px;
	position: relative;
}

.why-content h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	margin: 15px auto 0;
	border-radius: 2px;
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 25px;
}

.why-item {
	background: #fff;
	padding: 35px;
	border-radius: var(--radius-xl);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid var(--gray-100);
	position: relative;
	overflow: hidden;
}

.why-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, var(--primary), var(--secondary));
	opacity: 0;
	transition: opacity 0.3s;
}

.why-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
	border-color: var(--primary);
}

.why-item:hover::before {
	opacity: 1;
}

.why-item h3 {
	font-size: 22px;
	font-weight: 700;
	color: var(--dark);
	margin-bottom: 15px;
}

.why-item p {
	font-size: 15px;
	color: var(--gray-600);
	line-height: 1.8;
}

/* CTA Section */
.cta-section {
	width: 100%;
	background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
	padding: 70px 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cta-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
	position: relative;
	z-index: 1;
}

.cta-content h2 {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	color: #fff;
	margin-bottom: 18px;
}

.cta-content p {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 35px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.cta-button-secondary {
	display: inline-block;
	padding: 16px 45px;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: var(--dark);
	font-size: 18px;
	font-weight: 700;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.cta-button-secondary:hover {
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
}

/* Mobile Responsive */
@media (max-width: 1000px) {
	.banner-container {
		flex-direction: column;
	}
	
	.banner-left, .banner-right {
		flex: none;
	}
	
	.game-carousel {
		height: 300px;
	}
	
	.game-cards-list {
		height: auto;
		max-height: 300px;
		flex-direction: row;
		flex-wrap: wrap;
	}
	
	.game-info-card {
		flex: 1 1 calc(50% - 5px);
		min-width: calc(50% - 5px);
	}

	.hero-section {
		padding: 60px 15px;
	}

	.hero-stats {
		gap: 30px;
	}

	.features-section {
		padding: 0 15px;
		margin-top: -30px;
	}

	.features-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.feature-card {
		padding: 20px;
	}

	.feature-icon {
		font-size: 36px;
	}

	.categories-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
		padding: 0 10px;
	}

	.category-card {
		padding: 15px 10px;
	}

	.cat-icon {
		font-size: 28px;
	}

	.cat-name {
		font-size: 12px;
	}

	.why-section {
		padding: 40px 15px;
	}

	.why-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.why-item {
		padding: 25px;
	}

	.cta-section {
		padding: 40px 15px;
	}

	.m-title {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.view-all {
		margin-left: 0;
		font-size: 13px;
	}
}

@media (max-width: 600px) {
	.banner-slider {
		padding: 15px;
	}
	
	.game-carousel {
		height: 220px;
	}
	
	.carousel-arrow {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}
	
	.game-info-card {
		flex: 1 1 100%;
		min-width: 100%;
	}
	
	.game-info-card .card-thumb {
		width: 60px;
		height: 45px;
	}
	
	.game-info-card .card-title {
		font-size: 13px;
	}

	.features-grid {
		grid-template-columns: 1fr;
	}

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

	.hero-stats {
		gap: 20px;
	}
}
