/* ==========================================================
   Games Gallery Page Styles
   Based on main style system
   ========================================================== */

/* Global base */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background: #111;
	color: #fff;
	font-family: Roboto, system-ui, Arial, sans-serif;
	overflow-x: hidden;
}

img {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	max-width: none;
}

/* Global link styles */
.text-description a {
	text-decoration: none;   /* remove underline */
	color: #848f97;          /* default link color */
	transition: color 0.2s;  /* smooth hover effect */
}

.text-description a:visited {
	color: #848f97;          /* keep visited links same color */
}

.text-description a:hover {
	color: #fff;             /* optional: lighten on hover */
}


/* ==========================================================
   Layout with Ad Sidebars
   ========================================================== */

.gallery-layout {
	display: flex;
	width: 100%;
	min-height: 100vh;
	background: #111;
}

/* Ad columns */

.ad-space {
	width: 240px;      /* optimal for vertical rectangle ads */
	min-height: 600px;  /* keeps space consistent with tall ads */
	flex-shrink: 0;    /* prevent shrinking */
	background: transparent;
}


/* Remove the dashed border and text from previous .ad-box */
.ad-box {
	display: none;
}


/* .ad-box {
	width: 160px;
	height: 600px;
	border: 2px dashed #333;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #555;
	font-size: 0.9rem;
	text-align: center;
} */


/* ==========================================================
   Main Content
   ========================================================== */

.gallery-main {
	flex: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 2rem;
}

/* Hero */

.gallery-hero {
	text-align: center;
	margin-bottom: 3rem;
}

.gallery-hero h1 {
	font-family: "Jersey 10", sans-serif;
	font-size: 3rem;
	margin-bottom: 1rem;
}

.gallery-hero p {
	font-family: Roboto, sans-serif;
	font-size: 1.2rem;
	color: #ccc;
}

/* ==========================================================
   Game Grid
   ========================================================== */

.games-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

/* Card */

.game-card {
	background: #000;
	border: 2px solid #222;
	border-radius: 14px;
	padding: 2rem;
	text-align: center;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
	transform: translateY(-6px);
	border-color: #fff;
}

/* Card image */

.game-card img {
	width: 100%;
	max-width: 220px;
	margin: 0 auto 1rem auto;
	display: block;
}

/* Card text */

.game-card h3 {
	font-family: "Jersey 10", sans-serif;
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.game-card p {
	font-family: Roboto, sans-serif;
	color: #ccc;
	margin-bottom: 1.5rem;
}

/* Button */

.card-btn {
	display: inline-block;
	font-family: "Jersey 10", sans-serif;
	font-size: 1.5rem;
	text-transform: uppercase;

	background: #fff;
	color: #000;
	border: 4px solid #000;
	border-radius: 10px;

	padding: 10px 28px;
	text-decoration: none;

	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.card-btn:hover {
	background: #000;
	color: #fff;
	border-color: #fff;
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Hide ad columns on medium screens */

@media (max-width: 1100px) {
	.ad-space {
		display: none;
	}
}

/* Tablet */

@media (max-width: 900px) {
	.games-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile */

@media (max-width: 600px) {

	.gallery-main {
		padding: 3rem 1rem;
	}

	.gallery-hero h1 {
		font-size: 2.2rem;
	}

	.gallery-hero p {
		font-size: 1rem;
	}

	.games-grid {
		grid-template-columns: 1fr;
	}

	.card-btn {
		font-size: 1.3rem;
		padding: 8px 20px;
	}
}

/* Icon (square thumbnail) */

.card-icon {
	width: 100%;
	max-width: 180px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0 auto 1rem auto;
	display: block;
	border-radius: 10px;
}

/* Logo title image */

.card-logo {
	width: 100%;
	max-width: 220px;
	height: auto;
	margin: 0 auto 0.8rem auto;
	display: block;
}


/* ==========================================================
   Dedicated Game Page Styles (Rayadillo)
   ========================================================== */

/* Main container inside gallery layout */
.game-page-main {
	flex: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

/* Game header (icon + logo + metadata) */
.game-header {
	text-align: center;
	margin-bottom: 2rem;
}

.game-header .card-icon {
	max-width: 180px;
	margin-bottom: 1rem;
}

.game-header .card-logo {
	max-width: 250px;
	margin-bottom: 1rem;
}

.game-metadata {
	font-family: Roboto, sans-serif;
	color: #ccc;
	font-size: 1rem;
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 2rem;
}

/* Section titles */
.game-section h2 {
	font-family: "Jersey 10", sans-serif;
	font-size: 2rem;
	margin-bottom: 1rem;
	text-align: center;
}

/* Section text */
.game-section p {
	font-family: Roboto, sans-serif;
	font-size: 1rem;
	color: #ccc;
	line-height: 1.6;
	text-align: justify;
	max-width: 900px;
	margin: 0 auto 2rem auto;
}

/* Screenshots grid */
.screenshots-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.screenshots-grid img {
	width: 100%;
	border-radius: 10px;
	object-fit: cover;
}

/* Download section */
.download-section {
	text-align: center; /* center the title above cards */
	margin-top: 3rem;
}

.download-cards {
	display: flex;           /* use flex to control spacing */
	justify-content: center; /* center cards horizontally */
	gap: 1.5rem;            /* reduce space between cards */
	flex-wrap: wrap;         /* wrap on smaller screens */
	margin-top: 1.5rem;
}

.download-card {
	background: #000;
	border: 2px solid #222;
	border-radius: 14px;
	padding: 2rem;
	text-align: center;
	transition: transform 0.2s ease, border-color 0.2s ease;
	width: 250px;            /* consistent card width */
}

.download-card:hover {
	transform: translateY(-6px);
	border-color: #fff;
}

.download-card img {
	width: 100%;
	max-width: 150px;
	margin-bottom: 1rem;
	display: block;
}

.download-card h3 {
	font-family: "Jersey 10", sans-serif;
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	text-align: center; /* title centered */
}

.download-card p {
	font-family: Roboto, sans-serif;
	color: #ccc;
	margin-bottom: 1rem;
	text-align: center; /* version text centered */
}

.download-card .card-btn {
	font-size: 1.2rem;
	padding: 8px 20px;
	display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 900px) {
	.screenshots-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.download-cards {
		flex-direction: column;
		gap: 1rem;
	}
}

@media (max-width: 600px) {
	.game-page-main {
		padding: 3rem 1rem;
	}
	.game-header .card-logo {
		max-width: 200px;
	}
	.game-metadata {
		flex-direction: column;
		gap: 0.5rem;
		font-size: 0.95rem;
	}
	.screenshots-grid {
		grid-template-columns: 1fr;
	}
}
