/*
 * Game Hub Core — MVP styles.
 * Mobile-first, card-based, Material-inspired (elevation via soft shadow,
 * 8px spacing scale, rounded corners). Kept deliberately simple; visual
 * polish is a post-MVP concern.
 */

:root {
	--gh-color-primary: #1a73e8;
	--gh-color-text: #202124;
	--gh-color-muted: #5f6368;
	--gh-color-surface: #ffffff;
	--gh-color-bg: #f5f5f7;
	--gh-radius: 12px;
	--gh-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
	--gh-space: 8px;
}

.game-hub-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 calc(var(--gh-space) * 2);
}

/* Grid of cards */
.game-hub-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: calc(var(--gh-space) * 2);
	margin: calc(var(--gh-space) * 3) 0;
}

@media (min-width: 600px) {
	.game-hub-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.game-hub-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Card */
.game-hub-card {
	background: var(--gh-color-surface);
	border-radius: var(--gh-radius);
	box-shadow: var(--gh-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.game-hub-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.game-hub-card__body {
	padding: calc(var(--gh-space) * 1.5);
}

.game-hub-card__title {
	font-size: 1rem;
	margin: 0 0 4px;
}

.game-hub-card__title a {
	color: var(--gh-color-text);
	text-decoration: none;
}

.game-hub-card__genres {
	color: var(--gh-color-muted);
	font-size: 0.8rem;
	margin: 0 0 4px;
}

.game-hub-card__excerpt {
	color: var(--gh-color-muted);
	font-size: 0.85rem;
	margin: 4px 0 0;
}

/* Rating */
.game-hub-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.85rem;
	color: var(--gh-color-text);
}

.game-hub-rating__stars {
	color: #f4b400;
}

/* CTA button */
.game-hub-cta {
	display: inline-block;
	margin-top: calc(var(--gh-space) * 1.5);
	padding: 10px 20px;
	background: var(--gh-color-primary);
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.game-hub-cta:hover,
.game-hub-cta:focus {
	background: #1558b0;
	color: #fff;
}

/* Single game page */
.game-hub-single__header {
	display: flex;
	gap: calc(var(--gh-space) * 2);
	align-items: flex-start;
	margin: calc(var(--gh-space) * 2) 0;
}

.game-hub-single__icon img {
	width: 96px;
	height: 96px;
	border-radius: var(--gh-radius);
	box-shadow: var(--gh-shadow);
}

.game-hub-single__genres {
	color: var(--gh-color-muted);
	margin: 4px 0;
}

.game-hub-single__meta dl {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--gh-space) * 1.5);
	background: var(--gh-color-surface);
	border-radius: var(--gh-radius);
	box-shadow: var(--gh-shadow);
	padding: calc(var(--gh-space) * 2);
	margin: calc(var(--gh-space) * 2) 0;
}

@media (min-width: 600px) {
	.game-hub-single__meta dl {
		grid-template-columns: repeat(3, 1fr);
	}
}

.game-hub-single__meta-row dt {
	font-size: 0.75rem;
	color: var(--gh-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.game-hub-single__meta-row dd {
	margin: 2px 0 0;
	font-weight: 600;
}

/* Gallery */
.game-hub-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: calc(var(--gh-space) * 1.5);
	margin: calc(var(--gh-space) * 2) 0;
}

.game-hub-gallery__image {
	width: 100%;
	height: auto;
	border-radius: var(--gh-radius);
	box-shadow: var(--gh-shadow);
}

/* Breadcrumbs */
.game-hub-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0;
	margin: calc(var(--gh-space) * 2) 0 0;
	font-size: 0.8rem;
	color: var(--gh-color-muted);
}

.game-hub-breadcrumbs li:not(:last-child)::after {
	content: '›';
	margin-left: 4px;
}

/* Archive filter */
.game-hub-archive__filter {
	margin: calc(var(--gh-space) * 2) 0;
}

.game-hub-archive__filter select {
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid #dadce0;
}

/* Related games */
.game-hub-related {
	margin-top: calc(var(--gh-space) * 4);
}

/* Pagination */
.game-hub-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: calc(var(--gh-space) * 3) 0;
}
