/*
Theme Name: Red Walrus Store
Theme URI: https://redwalrusgaming.com
Author: Alan Bird
Description: Red Walrus Gaming studio and store theme. Child theme of Twenty Twenty-Five with the Red Walrus palette, header with cart, and a game-focused home page.
Template: twentytwentyfive
Version: 0.1.1
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rwg-store
*/

/* Sticky footer: stretch the page to at least the screen height and
   push the footer to the bottom when content is short. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
.admin-bar .wp-site-blocks {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}
.wp-site-blocks > main {
	flex: 1 0 auto;
}
.wp-site-blocks > footer {
	margin-top: auto;
}

/* Header */
.rwg-header {
	border-bottom: 4px solid var(--wp--preset--color--accent-3);
}
.rwg-logo img {
	display: block;
	height: 64px;
	width: auto;
}
@media (max-width: 600px) {
	.rwg-logo img { height: 48px; }
}

/* Keep the header on one row on tablets */
.rwg-header .wp-block-navigation {
	gap: var(--wp--preset--spacing--30);
}

/* Hero: keep text readable over the photo */
.rwg-hero .wp-block-cover__inner-container {
	max-width: 760px;
}
.rwg-hero h1 {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Game cards */
.rwg-game-card {
	height: 100%;
	border: 3px solid var(--wp--preset--color--contrast);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 6px 6px 0 var(--wp--preset--color--contrast);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rwg-game-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 8px 8px 0 var(--wp--preset--color--accent-1);
}
.rwg-game-card .wp-block-image {
	margin: 0;
}
.rwg-game-card .wp-block-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	border-bottom: 3px solid var(--wp--preset--color--contrast);
}

/* Featured product */
.rwg-featured-price {
	font-family: var(--wp--preset--font-family--russo-one);
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--accent-1);
}

/* Footer */
.rwg-footer a {
	color: inherit;
	text-decoration: none;
}
.rwg-footer a:hover {
	text-decoration: underline;
}
