/* Hero Game Section */
.game-hero {
	position: relative;
	margin-bottom: 50px;
	margin-top: 20px;
}

.game-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 15px;
	box-shadow: var(--shadow-xl);
}

.game-content {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 90%;
	gap: 25px;
	box-sizing: border-box;
	margin: 30px auto;
	background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, rgba(31, 31, 31, 0.9) 100%);
	border-radius: 15px;
	padding: 25px;
	min-height: 235px;
	height: auto;
	box-shadow: var(--shadow-xl);
	transition: all var(--transition-normal);
	border: 2px solid transparent;
	position: relative;
	overflow: hidden;
}

[data-theme="light"] .game-content {
	background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, rgba(255, 255, 255, 0.9) 100%);
	border: 1px solid #e0e0e0;
}

.game-content::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(145, 71, 255, 0.1) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.5s ease;
	animation: rotate 10s linear infinite;
	pointer-events: none;
}

@keyframes rotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.game-content:hover {
	transform: translateY(-10px);
	border-color: var(--accent);
	box-shadow: var(--shadow-xl), 0px 15px 50px 15px rgba(145, 71, 255, 0.3);
}

[data-theme="light"] .game-content:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(125, 42, 232, 0.2);
}

.game-content:hover::before {
	opacity: 1;
}

.game-content a {
	flex: 0 0 auto;
	position: relative;
}

.game-content.loading {
	background: linear-gradient(
		90deg,
		var(--dark-bg-secondary) 0%,
		rgba(145, 71, 255, 0.1) 50%,
		var(--dark-bg-secondary) 100%
	);
	background-size: 1000px 100%;
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

.game-content:nth-child(1) {
	box-shadow: 0px 5px 30px 10px rgba(0, 128, 0, 0.3);
}

.game-content:hover:nth-child(1) {
	box-shadow: 0px 15px 50px 15px rgba(0, 128, 0, 0.5);
}

[data-theme="light"] .game-content:nth-child(1) {
	box-shadow: 0px 5px 30px 10px rgba(0, 128, 0, 0.2);
}

.game-content:nth-child(2) {
	box-shadow: 0px 5px 30px 10px rgba(128, 0, 128, 0.3);
}

.game-content:hover:nth-child(2) {
	box-shadow: 0px 15px 50px 15px rgba(128, 0, 128, 0.5);
}

[data-theme="light"] .game-content:nth-child(2) {
	box-shadow: 0px 5px 30px 10px rgba(128, 0, 128, 0.2);
}

.game-content:nth-child(3) {
	box-shadow: 0px 5px 30px 10px rgba(243, 156, 18, 0.3);
}

.game-content:hover:nth-child(3) {
	box-shadow: 0px 15px 50px 15px rgba(243, 156, 18, 0.5);
}

[data-theme="light"] .game-content:nth-child(3) {
	box-shadow: 0px 5px 30px 10px rgba(243, 156, 18, 0.2);
}

.game-content:nth-child(4) {
	box-shadow: 0px 5px 30px 10px rgba(26, 42, 188, 0.3);
}

.game-content:hover:nth-child(4) {
	box-shadow: 0px 15px 50px 15px rgba(26, 42, 188, 0.5);
}

[data-theme="light"] .game-content:nth-child(4) {
	box-shadow: 0px 5px 30px 10px rgba(26, 42, 188, 0.2);
}

.game-content:nth-child(5) {
	box-shadow: 0px 5px 30px 10px rgba(231, 76, 60, 0.3);
}

.game-content:hover:nth-child(5) {
	box-shadow: 0px 15px 50px 15px rgba(231, 76, 60, 0.5);
}

[data-theme="light"] .game-content:nth-child(5) {
	box-shadow: 0px 5px 30px 10px rgba(231, 76, 60, 0.2);
}

.game-portrait {
	flex: 0 0 150px;
	width: 150px;
	height: 235px;
	object-fit: cover;
	border-radius: 8px;
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-lg);
	border: 2px solid transparent;
	position: relative;
}

.game-portrait::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, transparent 0%, rgba(145, 71, 255, 0.3) 100%);
	opacity: 0;
	transition: opacity var(--transition-normal);
}

.game-portrait:hover::before {
	opacity: 1;
}

.game-portrait:hover {
	transform: scale(1.05) rotate(-2deg);
	box-shadow: var(--shadow-xl), var(--glow-accent);
	border-color: var(--accent);
}

.game-info {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
	position: relative;
	z-index: 1;
}

.game-info h2 {
	margin-bottom: 15px;
	font-size: 28px;
	background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	transition: all var(--transition-normal);
}

.game-info p {
	color: var(--text-secondary);
	margin-bottom: 15px;
	line-height: 1.6;
	transition: color var(--transition-normal);
}

.game-content:hover .game-info h2 {
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	transform: translateX(5px);
}

.game-content:hover .game-info p {
	color: var(--text);
}

.featured-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
	color: white;
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: var(--shadow-md);
	animation: pulse 0.5s infinite;
	z-index: 2;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.new-release {
	position: absolute;
	top: 20px;
	right: 20px;
	background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
	color: white;
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: var(--shadow-md);
	animation: pulse 1s infinite;
	z-index: 2;
}

.new-release::before {
	font-size: 14px;
}

.coming-soon {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(0, 150, 200, 0.7);
	color: white;
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: var(--shadow-md);
	animation: pulse 2s infinite;
	z-index: 2;
}

.game-portrait:hover .coming-soon {
	opacity: 1;
}

.coming-soon span {
	background: var(--accent);
	color: white;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.platforms {
	display: flex;
	gap: 15px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.platforms a {
	position: relative;
	display: inline-block;
	padding: 8px;
	background: rgba(145, 71, 255, 0.1);
	border-radius: 8px;
	transition: all var(--transition-normal);
	border: 2px solid transparent;
}

.platforms a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
	opacity: 0;
	transition: opacity var(--transition-normal);
	z-index: -1;
}

.platforms a:hover::before {
	opacity: 0.3;
}

.platforms a:hover {
	transform: translateY(-5px);
	border-color: var(--accent);
	box-shadow: var(--shadow-md);
}

.platform {
	width: auto;
	height: 40px;
	transition: all var(--transition-normal);
	filter: grayscale(0.3);
}

.platforms a:hover .platform {
	filter: grayscale(0);
	transform: scale(1.1);
}

.discord-widget-container {
	margin: 30px auto;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--shadow-xl);
	border: 2px solid rgba(145, 71, 255, 0.2);
	transition: all var(--transition-normal);
	width: 25%;
	min-width: 300px;
}

.discord-widget-container:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-xl), var(--glow-accent);
	transform: translateY(-5px);
}

.discord-widget-container iframe {
	display: block;
	width: 100%;
	height: 500px;
	border: none;
}

/* Responsive Styles */
@media (max-width: 978px) {
    .game-description-space {
        display: none;
    }

	.game-content {
		gap: 20px;
		padding: 20px;
	}
	
	.game-info h2 {
		font-size: 24px;
	}
}

@media (max-width: 804px) {
    .game-info h2 {
		line-height: 1.3;
		margin-bottom: 10px;
		font-size: 22px;
    }

	.coming-soon {
		padding: 6px 6px;
		font-size: 10px;
		font-weight: 700;
	}

	.platforms {
		gap: 10px;
	}
	
	.platform {
		height: 35px;
	}
}

@media (max-width: 768px) {
	.game-hero {
		margin-bottom: 30px;
	}

	.game-content {
		margin: 10px auto;
		padding: 20px;
	}

	.discord-widget-container {
		margin: 20px auto;
	}
	
	.discord-widget-container iframe {
		height: 400px;
	}
}

@media (max-width: 640px) {
	.game-content {
		flex-direction: column;
		text-align: center;
		align-items: center;
		padding: 25px 20px;
	}
	
	.game-info {
		display: none;
	}

	.game-portrait {
		flex: 0 0 auto;
	}
	
	.platforms {
		justify-content: center;
	}
	
	.featured-badge {
		top: 10px;
		right: 10px;
		font-size: 10px;
		padding: 6px 12px;
	}
}

@media (max-width: 320px) {
	.discord-widget-container {
		min-width: 250px;
	}
}

@media (max-width: 270px) {
	.discord-widget-container {
		min-width: 200px;
	}
}

@media (max-width: 250px) {
	.game-portrait {
		width: 100px;
		height: 157px;
		flex: 0 0 100px;
	}

	.game-content a {
		flex: 0 0 100px;
	}

	.game-content {
		padding: 15px;
		min-height: auto;
	}

	.featured-badge, .new-release, .coming-soon {
		top: 5px;
		right: 5px;
		font-size: 8px;
		padding: 4px 8px;
		letter-spacing: 0.5px;
	}

	.platforms {
		gap: 8px;
	}

	.platform {
		height: 28px;
	}

	.discord-widget-container {
		min-width: 200px;
	}
}

@media (max-width: 250px) {
	.discord-widget-container {
		min-width: 150px;
	}
}

@media print {
	.discord-widget-container {
		display: none;
	}
}

@media (prefers-color-scheme: dark) {
	.game-content {
		background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
	}
}

/* Hover effects for touch devices */
@media (hover: none) {
	.game-content:hover, .game-portrait:hover, .platforms a:hover {
		transform: none;
	}
}