/* =======================
   Games Page Specific Styles
   ======================= */

/* === Layout & Base === */
.content {
	padding-top: 80px !important;
}

/* === Back Button === */
.back-button {
	position: absolute;
	top: 100px;
	left: 50px;
	z-index: 10;
}

.back-button a {
	display: flex;
	align-items: center;
	color: white;
	text-decoration: none;
	font-family: "Space Grotesk", sans-serif;
	transition: all 0.3s ease;
}

.back-button svg {
	width: 24px;
	height: 24px;
	margin-right: 8px;
	transition: transform 0.3s ease;
}

.back-button a:hover {
	color: rgb(20, 156, 234);
}

.back-button a:hover svg {
	transform: translateX(-5px);
}

/* === Subtitle === */
.subtitle {
	max-width: 800px;
	margin: 0 auto 60px;
	color: white;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
	font-size: 18px;
	text-align: center;
}

/* === Games Grid === */
.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto 80px;
	padding: 0 20px;
}

.game-card {
	background-color: rgba(12, 12, 12, 0.7);
	border: 1px solid rgba(20, 156, 234, 0.1);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3),
	            0 0 15px rgba(20, 156, 234, 0.3);
}

/* === Game Preview Image === */
.game-preview {
	width: 100%;
	height: 200px;
	position: relative;
	overflow: hidden;
}

.game-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.game-card:hover .game-image {
	transform: scale(1.05);
}

.placeholder-image {
	background: linear-gradient(45deg, #0c0c0c, #1a1a1a);
	display: flex;
	align-items: center;
	justify-content: center;
}

.placeholder-image.large {
	height: 300px;
}

.placeholder-text {
	color: rgba(255, 255, 255, 0.3);
	font-family: "Space Grotesk", sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* === Game Info === */
.game-info {
	padding: 20px;
}

.game-info h3 {
	font-family: "Anta", serif;
	font-size: 22px;
	color: white;
	margin: 0 0 10px;
}

.game-info p {
	color: var(--text-color);
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 15px;
}

.game-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
}

/* === Game Actions === */
.game-actions {
	display: flex;
	gap: 10px;
}

.play-button,
.info-button {
	padding: 8px 16px;
	border-radius: 4px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}

.play-button {
	background-color: rgb(20, 156, 234);
	color: white;
	text-decoration: none;
}

.play-button:hover {
	background-color: rgb(16, 130, 195);
	box-shadow: 0 0 10px rgba(20, 156, 234, 0.5);
}

.info-button {
	background-color: transparent;
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-button:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
}

/* === Featured Game Section === */
.featured-game {
	max-width: 1200px;
	margin: 0 auto 100px;
	padding: 0 20px;
}

.featured-game h2 {
	font-family: "Anta", serif;
	margin-bottom: 30px;
	position: relative;
	display: inline-block;
}

.featured-game h2::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, rgb(20, 156, 234), transparent);
}

.featured-game-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	background-color: rgba(12, 12, 12, 0.7);
	border: 1px solid rgba(20, 156, 234, 0.1);
	border-radius: 12px;
	overflow: hidden;
}

.featured-game-preview {
	height: 100%;
}

.featured-game-info {
	padding: 30px;
}

.featured-game-info h3 {
	font-family: "Anta", serif;
	font-size: 28px;
	margin-bottom: 15px;
}

.featured-game-info p {
	margin-bottom: 20px;
	line-height: 1.6;
}

/* === Tags === */
.game-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 15px;
}

.tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-family: "Space Grotesk", sans-serif;
	background-color: rgba(20, 156, 234, 0.15);
	color: rgb(20, 156, 234);
	border: 1px solid rgba(20, 156, 234, 0.2);
	transition: all 0.3s ease;
}

.tag:hover {
	background-color: rgba(20, 156, 234, 0.25);
	transform: translateY(-2px);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Variety Tag Colors */
.tag:nth-child(3n+2) {
	background-color: rgba(20, 234, 156, 0.15);
	color: rgb(20, 234, 156);
	border-color: rgba(20, 234, 156, 0.2);
}

.tag:nth-child(3n+3) {
	background-color: rgba(234, 156, 20, 0.15);
	color: rgb(234, 156, 20);
	border-color: rgba(234, 156, 20, 0.2);
}

.tag.featured {
	font-size: 13px;
	padding: 5px 12px;
}

/* ======================
   Responsive Breakpoints
   ====================== */
@media (max-width: 900px) {
	.featured-game-container {
		grid-template-columns: 1fr;
	}

	.back-button {
		top: 70px;
		left: 15px;
	}
}

@media (max-width: 600px) {
	/* Grid becomes single column */
	.games-grid {
		grid-template-columns: 1fr;
		padding: 0 10px;
	}

	/* Shrink game preview */
	.game-preview {
		height: 160px;
	}

	/* Tighten game card padding */
	.game-info {
		padding: 15px;
	}

	/* Shrink fonts */
	.subtitle {
		font-size: 16px;
		margin-bottom: 40px;
		padding: 0 10px;
	}

	.game-info h3 {
		font-size: 18px;
	}

	.game-info p {
		font-size: 13px;
	}

	.game-meta {
		font-size: 11px;
	}

	.play-button,
	.info-button {
		font-size: 13px;
		padding: 6px 12px;
		flex: 1;
		text-align: center;
	}

	.game-actions {
		flex-direction: column;
		gap: 8px;
	}

	.featured-game {
		padding: 0 10px;
	}

	.featured-game-info {
		padding: 20px;
	}

	.featured-game-info h3 {
		font-size: 22px;
	}

	.featured-game-info p {
		font-size: 14px;
	}

	.tag {
		font-size: 11px;
		padding: 3px 8px;
	}
}
