/*
Theme Name: Game Field Guide
Theme URI: https://gamefieldguide.com/
Author: Game Field Guide
Description: A fast editorial block theme for source-backed game guides, databases, maps, and tools.
Version: 0.1.2
Requires at least: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: gamefieldguide
*/

:root {
	--gfg-ink: #071018;
	--gfg-panel: #0d1822;
	--gfg-panel-soft: #132330;
	--gfg-line: rgba(165, 198, 216, 0.18);
	--gfg-text: #eff6f8;
	--gfg-muted: #9fb4bf;
	--gfg-cyan: #53e0c1;
	--gfg-cyan-dark: #1ca88f;
	--gfg-amber: #ffb454;
	--gfg-red: #ff6b64;
	--gfg-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
	--gfg-radius: 18px;
}

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(circle at 15% -10%, rgba(83, 224, 193, 0.1), transparent 28rem),
		linear-gradient(180deg, #071018 0%, #09141d 42%, #071018 100%);
	color: var(--gfg-text);
}

body::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
	background-size: 28px 28px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: -1;
}

::selection {
	background: var(--gfg-cyan);
	color: var(--gfg-ink);
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.gfg-site-header {
	backdrop-filter: blur(18px);
	background: rgba(7, 16, 24, 0.88);
	border-bottom: 1px solid var(--gfg-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .gfg-site-header {
	top: 32px;
}

.gfg-header-inner {
	min-height: 74px;
}

.gfg-wordmark {
	align-items: center;
	display: inline-flex;
	font-size: clamp(1rem, 2vw, 1.24rem);
	font-weight: 760;
	gap: 0.66rem;
	letter-spacing: -0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.gfg-wordmark::before {
	background:
		linear-gradient(135deg, var(--gfg-cyan), #2d9ead 70%);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 5px 12px 5px 12px;
	box-shadow: 0 0 24px rgba(83, 224, 193, 0.25);
	content: "";
	height: 28px;
	transform: rotate(-5deg);
	width: 28px;
}

.gfg-site-header .wp-block-navigation {
	font-size: 0.91rem;
	font-weight: 650;
}

.gfg-site-header .wp-block-navigation-item__content {
	opacity: 0.86;
	transition: color 160ms ease, opacity 160ms ease;
}

.gfg-site-header .wp-block-navigation-item__content:hover,
.gfg-site-header .wp-block-navigation-item__content:focus {
	color: var(--gfg-cyan);
	opacity: 1;
}

.gfg-site-header .wp-block-navigation__submenu-container {
	background: #0d1922 !important;
	border: 1px solid var(--gfg-line) !important;
	border-radius: 12px;
	box-shadow: var(--gfg-shadow);
	min-width: 230px !important;
	overflow: hidden !important;
	padding: 0.35rem;
}

.gfg-site-header .wp-block-navigation__submenu-container a {
	border-radius: 8px;
}

.gfg-site-header .wp-block-navigation__submenu-container a:hover {
	background: rgba(83, 224, 193, 0.08);
}

.gfg-header-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--gfg-line);
	border-radius: 999px;
	overflow: hidden;
}

.gfg-header-search .wp-block-search__input {
	background: transparent;
	border: 0;
	color: var(--gfg-text);
	min-width: 9rem;
	padding: 0.55rem 0.8rem;
}

.gfg-header-search .wp-block-search__button {
	background: var(--gfg-cyan);
	border: 0;
	color: var(--gfg-ink);
	margin: 0;
	padding: 0.55rem 0.72rem;
}

.gfg-main {
	min-height: 65vh;
}

.gfg-hero {
	overflow: hidden;
	padding-bottom: clamp(4rem, 8vw, 7.5rem);
	padding-top: clamp(4rem, 9vw, 8rem);
	position: relative;
}

.gfg-hero::after {
	background:
		linear-gradient(90deg, transparent, rgba(83, 224, 193, 0.55), transparent);
	bottom: 0;
	content: "";
	height: 1px;
	left: 8%;
	position: absolute;
	right: 8%;
}

.gfg-eyebrow {
	align-items: center;
	color: var(--gfg-cyan);
	display: flex;
	font-size: 0.75rem;
	font-weight: 760;
	gap: 0.65rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.gfg-eyebrow::before {
	background: var(--gfg-cyan);
	border-radius: 50%;
	box-shadow: 0 0 14px var(--gfg-cyan);
	content: "";
	height: 7px;
	width: 7px;
}

.gfg-display {
	font-size: clamp(3rem, 8.5vw, 7.2rem);
	font-weight: 790;
	letter-spacing: -0.07em;
	line-height: 0.91;
	margin-bottom: 1.4rem;
	margin-top: 1.4rem;
	max-width: 12ch;
}

.gfg-display em {
	color: var(--gfg-cyan);
	font-style: normal;
}

.gfg-lede {
	color: var(--gfg-muted);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.68;
	max-width: 660px;
}

.gfg-hero-actions {
	margin-top: 2rem;
}

.wp-element-button,
.wp-block-button__link {
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	box-shadow: 0 12px 28px rgba(83, 224, 193, 0.18);
	transform: translateY(-2px);
}

.gfg-button-ghost .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--gfg-line);
	color: var(--gfg-text);
}

.gfg-stat-strip {
	border-bottom: 1px solid var(--gfg-line);
	border-top: 1px solid var(--gfg-line);
	padding: 1rem 0;
}

.gfg-stat {
	color: var(--gfg-muted);
	font-size: 0.75rem;
	font-weight: 720;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gfg-section {
	padding-bottom: clamp(4rem, 8vw, 7rem);
	padding-top: clamp(4rem, 8vw, 7rem);
}

.gfg-section-heading {
	align-items: end;
	border-bottom: 1px solid var(--gfg-line);
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-bottom: 2rem;
	padding-bottom: 1.2rem;
}

.gfg-section-heading h2 {
	font-size: clamp(2rem, 4vw, 3.6rem);
	letter-spacing: -0.045em;
	line-height: 1;
	margin: 0;
}

.gfg-section-heading p {
	color: var(--gfg-muted);
	margin: 0;
	max-width: 34rem;
}

.gfg-card-grid {
	align-items: stretch;
}

.gfg-card {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 48%),
		var(--gfg-panel);
	border: 1px solid var(--gfg-line);
	border-radius: var(--gfg-radius);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
	height: 100%;
	overflow: hidden;
	padding: clamp(1.35rem, 3vw, 2rem);
	position: relative;
	transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.gfg-card:hover {
	border-color: rgba(83, 224, 193, 0.48);
	box-shadow: var(--gfg-shadow);
	transform: translateY(-5px);
}

.gfg-card::before {
	background: var(--gfg-card-accent, var(--gfg-cyan));
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.gfg-card--hll {
	--gfg-card-accent: #e6a257;
}

.gfg-card--zoo {
	--gfg-card-accent: #68d391;
}

.gfg-card--permafrost {
	--gfg-card-accent: #75c9e8;
}

.gfg-card__index {
	color: var(--gfg-card-accent, var(--gfg-cyan));
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.gfg-card h3 {
	font-size: clamp(1.4rem, 3vw, 2.05rem);
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin-bottom: 0.8rem;
	margin-top: 1.15rem;
}

.gfg-card p {
	color: var(--gfg-muted);
}

.gfg-card a {
	color: inherit;
	text-decoration: none;
}

.gfg-card__meta {
	border-top: 1px solid var(--gfg-line);
	color: var(--gfg-muted);
	font-size: 0.78rem;
	margin-top: 1.4rem;
	padding-top: 1rem;
}

.gfg-status {
	background: rgba(83, 224, 193, 0.08);
	border: 1px solid rgba(83, 224, 193, 0.28);
	border-radius: 999px;
	color: var(--gfg-cyan);
	display: inline-flex;
	font-size: 0.7rem;
	font-weight: 760;
	letter-spacing: 0.08em;
	padding: 0.35rem 0.62rem;
	text-transform: uppercase;
}

.gfg-status--watch {
	background: rgba(255, 180, 84, 0.08);
	border-color: rgba(255, 180, 84, 0.3);
	color: var(--gfg-amber);
}

.gfg-task-card {
	border-top: 1px solid var(--gfg-line);
	padding: 1.35rem 0;
}

.gfg-task-card h3 {
	font-size: 1.05rem;
	margin-bottom: 0.35rem;
	margin-top: 0;
}

.gfg-task-card p {
	color: var(--gfg-muted);
	font-size: 0.9rem;
	margin: 0;
}

.gfg-page-hero {
	border-bottom: 1px solid var(--gfg-line);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
	padding-top: clamp(3rem, 7vw, 6rem);
}

.gfg-page-title {
	font-size: clamp(2.5rem, 7vw, 5.7rem);
	letter-spacing: -0.065em;
	line-height: 0.98;
	margin-bottom: 1.2rem;
}

.gfg-breadcrumbs {
	color: var(--gfg-muted);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gfg-content-shell {
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem);
	padding-bottom: 5rem;
	padding-top: 3rem;
}

.gfg-prose {
	font-size: 1.04rem;
	line-height: 1.78;
	max-width: 760px;
}

.gfg-prose h2,
.gfg-prose h3 {
	letter-spacing: -0.03em;
	margin-top: 2.4em;
}

.gfg-prose blockquote {
	border-left: 3px solid var(--gfg-cyan);
	color: var(--gfg-muted);
	margin-left: 0;
	padding-left: 1.4rem;
}

.gfg-prose table {
	border-collapse: collapse;
	font-size: 0.92rem;
	width: 100%;
}

.gfg-prose th,
.gfg-prose td {
	border-bottom: 1px solid var(--gfg-line);
	padding: 0.85rem;
	text-align: left;
}

.gfg-prose th {
	color: var(--gfg-cyan);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gfg-sidebar {
	align-self: start;
	background: rgba(13, 24, 34, 0.72);
	border: 1px solid var(--gfg-line);
	border-radius: 14px;
	padding: 1.2rem;
	position: sticky;
	top: 105px;
}

.gfg-sidebar h2,
.gfg-sidebar h3 {
	font-size: 0.76rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.gfg-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gfg-sidebar li {
	border-top: 1px solid var(--gfg-line);
	padding: 0.65rem 0;
}

.gfg-archive-grid .wp-block-post {
	background: var(--gfg-panel);
	border: 1px solid var(--gfg-line);
	border-radius: 14px;
	padding: 1.35rem;
}

.gfg-archive-grid .wp-block-post-title {
	font-size: 1.25rem;
	letter-spacing: -0.025em;
}

.gfg-archive-grid .wp-block-post-excerpt {
	color: var(--gfg-muted);
	font-size: 0.9rem;
}

.gfg-meta {
	color: var(--gfg-muted);
	font-size: 0.78rem;
}

.gfg-callout {
	background: linear-gradient(135deg, rgba(83, 224, 193, 0.1), rgba(83, 224, 193, 0.025));
	border: 1px solid rgba(83, 224, 193, 0.3);
	border-radius: var(--gfg-radius);
	padding: clamp(1.4rem, 4vw, 2.5rem);
}

.gfg-site-footer {
	background: #050c12;
	border-top: 1px solid var(--gfg-line);
	padding-bottom: 2rem;
	padding-top: 4rem;
}

.gfg-site-footer h2,
.gfg-site-footer h3 {
	color: var(--gfg-text);
	font-size: 0.76rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gfg-site-footer p,
.gfg-site-footer a {
	color: var(--gfg-muted);
	font-size: 0.88rem;
}

.gfg-site-footer a:hover {
	color: var(--gfg-cyan);
}

.gfg-footer-bottom {
	border-top: 1px solid var(--gfg-line);
	margin-top: 3rem;
	padding-top: 1.4rem;
}

.screen-reader-text:focus {
	background: #fff;
	color: #000;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	z-index: 100000;
}

@media (max-width: 980px) {
	.gfg-header-search {
		display: none;
	}

	.gfg-content-shell {
		grid-template-columns: 1fr;
	}

	.gfg-sidebar {
		position: static;
	}
}

@media (max-width: 782px) {
	.alignwide {
		box-sizing: border-box;
		width: calc(100% - 2rem);
	}

	.gfg-site-header .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--gfg-ink) !important;
		color: var(--gfg-text) !important;
		height: 100dvh;
		inset: 0;
		overflow-y: auto;
		padding: 5rem 1.5rem 2rem;
		position: fixed;
		width: 100vw;
		z-index: 100000;
	}

	.gfg-site-header .wp-block-navigation__responsive-container-close {
		color: var(--gfg-text);
		right: 1.25rem;
		top: 1.25rem;
	}

	.gfg-site-header .wp-block-navigation__responsive-container-content,
	.gfg-site-header .wp-block-navigation__container {
		align-items: flex-start !important;
		width: 100%;
	}

	.gfg-site-header .wp-block-navigation__container {
		flex-direction: column !important;
		gap: 0 !important;
	}

	.gfg-site-header .wp-block-navigation__container > .wp-block-navigation-item {
		border-bottom: 1px solid var(--gfg-line);
		font-size: 1.25rem;
		padding: 1rem 0;
		width: 100%;
	}

	.gfg-site-header .wp-block-navigation__submenu-container {
		background: transparent !important;
		border: 0 !important;
		box-shadow: none;
		height: auto !important;
		min-width: 0 !important;
		opacity: 1 !important;
		overflow: visible !important;
		padding: 0.65rem 0 0.15rem 1rem !important;
		position: static !important;
		visibility: visible !important;
		width: 100% !important;
	}

	.gfg-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item {
		font-size: 0.95rem;
		padding: 0.4rem 0;
	}

	.admin-bar .gfg-site-header {
		top: 46px;
	}

	.gfg-header-inner {
		min-height: 64px;
	}

	.gfg-section-heading {
		align-items: start;
		flex-direction: column;
		gap: 0.8rem;
	}

	.gfg-display {
		letter-spacing: -0.055em;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
