/* Landing page — hero, quick-nav, latest-games swiper. See mosioc/design-system.md */

.gs-quicknav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-6) var(--space-4);
	max-width: 1440px;
	margin-inline: auto;
	padding-block: var(--space-8);
}

.gs-quicknav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	width: 96px;
	text-decoration: none;
	color: var(--text-primary);
	font-size: var(--font-sm);
	font-weight: 600;
	text-align: center;
}

.gs-quicknav-item:hover {
	color: var(--accent);
}

.gs-quicknav-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: var(--radius-full);
	background: var(--accent-soft);
	font-size: var(--font-2xl);
	transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.gs-quicknav-item:hover .gs-quicknav-item__icon {
	background: var(--accent);
	color: #fff;
	transform: translateY(-2px);
}

/* Latest games — a regular product grid (identical to the shop archive's
   card grid, no swipe/drag/scroll mechanism). */
.gs-swiper-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.gs-swiper-header .wp-block-heading {
	margin: 0;
}

.gs-swiper-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	border: 1px solid var(--border-subtle);
	background: var(--bg-surface);
	color: var(--text-primary);
	font-size: var(--font-lg);
	line-height: 1;
	transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.gs-swiper-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.gs-swiper ul.products {
	margin-block-start: var(--space-4) !important;
}

.gs-swiper-viewall {
	display: flex;
	justify-content: center;
	margin-block-start: var(--space-6);
}

.gs-swiper-viewall__link {
	display: inline-flex;
	align-items: center;
	padding: var(--space-3) var(--space-6);
	border-radius: var(--radius-full);
	border: 1px solid var(--border-subtle);
	background: var(--bg-surface);
	color: var(--text-primary);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.gs-swiper-viewall__link:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Browse by platform — section background matches the footer (same dark
   tokens), so the heading needs the footer's light text color too; the
   banner cards themselves already carry their own scrim + white label
   (.gs-platform-banner::before/__label below) and don't need anything. */
/* alignfull (not alignwide) so the dark band reaches both edges of the
   viewport at any width — alignwide only spans the theme's "wide" content
   width (var(--wp--custom--ast-wide-width-size)), leaving the site's own
   background showing on either side above that width, which is what cut
   the black background off on wide desktop screens. The heading and
   .gs-platform-banners below both re-constrain themselves to max-width:1440
   + margin-inline:auto so the actual content still lines up with the rest
   of the page. */
.gs-platform-section {
	background: var(--footer-bg);
	padding-inline: var(--space-4);
}

.gs-platform-section .wp-block-heading {
	color: var(--footer-text);
	max-width: 1440px;
	margin-inline: auto;
}

/* Browse by platform — banner cards, placeholder images */
.gs-platform-banners {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-4);
	max-width: 1440px;
	margin-inline: auto;
}

@media (max-width: 781px) {
	.gs-platform-banners {
		grid-template-columns: 1fr;
	}
}

.gs-platform-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 200px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gs-platform-banner:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

.gs-platform-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(20, 22, 26, .75) 0%, rgba(20, 22, 26, .15) 60%, transparent 100%);
}

.gs-platform-banner__label {
	position: relative;
	padding: var(--space-4);
	color: #fff;
	font-weight: 700;
	font-size: var(--font-lg);
}

/* Latest blog posts teaser */
.gs-blog-teaser {
	max-width: 1440px;
	margin-inline: auto;
}

.gs-blog-teaser ul.wp-block-latest-posts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-4);
}

@media (max-width: 781px) {
	.gs-blog-teaser ul.wp-block-latest-posts {
		grid-template-columns: 1fr;
	}
}

.gs-blog-teaser li {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
}

.gs-blog-teaser .wp-block-latest-posts__post-title {
	display: block;
	font-weight: 700;
	color: var(--text-primary);
	margin-block-end: var(--space-2);
	text-decoration: none;
}

.gs-blog-teaser .wp-block-latest-posts__post-title:hover {
	color: var(--accent);
}

.gs-blog-teaser .wp-block-latest-posts__post-excerpt {
	color: var(--text-secondary);
	font-size: var(--font-sm);
}
