/*
Theme Name: GamersBase Blog
Theme URI: https://steam.gamersbase.store/blog/
Description: Дочерняя тема GeneratePress для информационного раздела GamersBase.
Author: GamersBase
Template: generatepress
Version: 1.0.2
Text Domain: gamersbase-blog
*/

:root {
	--gb-bg: #0a1624;
	--gb-surface: #122234;
	--gb-surface-soft: #0f1d2e;
	--gb-surface-raised: #1d324b;
	--gb-accent: #0064ff;
	--gb-accent-soft: #2f6bff;
	--gb-link: #3d8afd;
	--gb-border: #1f3247;
	--gb-border-soft: rgba(255, 255, 255, 0.08);
	--gb-text: #fff;
	--gb-muted: #a6b0bd;
	--gb-muted-strong: #d0d3d6;
	--gb-success: #4dda65;
	--gb-container: 1150px;
	--gb-radius: 10px;
	--gb-radius-lg: 20px;
	--gb-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

html {
	background: var(--gb-bg);
	scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
	font-family: "Fira Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

body {
	background: var(--gb-bg);
	color: var(--gb-text);
	font-size: 17px;
	line-height: 1.65;
}

a {
	color: var(--gb-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: #79b1ff;
}

img {
	display: block;
}

.screen-reader-text:focus {
	background: var(--gb-text);
	color: var(--gb-bg);
}

.gb-container,
.grid-container,
.site.grid-container {
	box-sizing: border-box;
	max-width: var(--gb-container);
	margin-inline: auto;
}

/* Header */
.gb-site-header {
	background: var(--gb-bg);
	border-bottom: 1px solid var(--gb-border-soft);
}

.gb-header-top {
	display: grid;
	grid-template-columns: 150px minmax(260px, 500px) 150px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 90px;
}

.gb-logo {
	display: inline-flex;
	align-items: center;
	width: fit-content;
}

.gb-logo img {
	width: 86px;
	height: auto;
}

.gb-header-search {
	position: relative;
	margin: 0;
}

.gb-header-search input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 9px 48px 9px 18px;
	border: 1px solid #2a3140;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-size: 16px;
}

.gb-header-search button {
	position: absolute;
	top: 50%;
	right: 8px;
	display: grid;
	width: 34px;
	height: 34px;
	padding: 0;
	transform: translateY(-50%);
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7686;
	cursor: pointer;
}

.gb-header-search svg {
	width: 18px;
	height: 18px;
}

.gb-blog-label {
	justify-self: end;
	color: var(--gb-muted);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gb-main-nav {
	background: rgba(18, 34, 52, 0.72);
	border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.gb-nav-inner {
	position: relative;
}

.gb-nav-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.gb-nav-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 10px 18px;
	border-right: 1px solid var(--gb-border-soft);
	color: var(--gb-muted-strong);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.gb-nav-list li:first-child a {
	border-left: 1px solid var(--gb-border-soft);
}

.gb-nav-list a:hover,
.gb-nav-list a:focus,
.gb-nav-list .is-current a {
	background: rgba(255, 255, 255, 0.035);
	color: #fff;
}

.gb-nav-list .is-current a {
	box-shadow: inset 0 -3px 0 var(--gb-accent);
}

.gb-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 50px;
	padding: 10px 18px;
	border: 0;
	background: transparent;
	color: var(--gb-text);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.gb-menu-toggle svg {
	width: 22px;
	height: 22px;
}

/* Main layout */
#page.site {
	max-width: var(--gb-container);
	padding: 48px 0 72px;
	background: transparent;
}

#content.site-content {
	display: block;
	padding: 0;
}

.gb-blog-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 28px;
	padding: clamp(30px, 6vw, 58px);
	border: 1px solid var(--gb-border-soft);
	border-radius: var(--gb-radius-lg);
	background:
		radial-gradient(circle at 88% 18%, rgba(47, 107, 255, 0.4), transparent 34%),
		linear-gradient(135deg, #122234, #0f1d2e);
}

.gb-blog-hero-kicker {
	display: inline-flex;
	margin-bottom: 12px;
	color: #91bdff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gb-blog-hero h1 {
	max-width: 760px;
	margin: 0 0 14px;
	color: var(--gb-text);
	font-size: clamp(38px, 6vw, 60px);
	font-weight: 900;
	line-height: 1.02;
}

.gb-blog-hero p {
	max-width: 680px;
	margin: 0;
	color: var(--gb-muted-strong);
	font-size: clamp(16px, 2vw, 20px);
}

.content-area,
.site-main {
	width: 100%;
	margin: 0;
}

.widget-area,
.site-header,
.main-navigation,
.site-footer {
	display: none;
}

.page-header {
	margin: 0 0 28px;
	padding: 0;
	background: transparent;
}

.page-header .page-title,
.archive-title {
	margin: 0;
	color: var(--gb-text);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 900;
	line-height: 1.08;
}

.blog .site-main,
.archive .site-main,
.search .site-main {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.blog .page-header,
.archive .page-header,
.search .page-header,
.blog .paging-navigation,
.archive .paging-navigation,
.search .paging-navigation,
.blog .no-results,
.archive .no-results,
.search .no-results {
	grid-column: 1 / -1;
}

/* Archive cards */
.gb-post-card {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--gb-border-soft);
	border-radius: var(--gb-radius);
	background: var(--gb-surface);
	box-shadow: var(--gb-shadow);
	transition: transform 180ms ease, border-color 180ms ease;
}

.gb-post-card:hover {
	transform: translateY(-3px);
	border-color: rgba(61, 138, 253, 0.45);
}

.gb-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.gb-card-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(circle at 80% 20%, rgba(47, 107, 255, 0.42), transparent 38%),
		linear-gradient(135deg, #172c43, #0f1d2e);
}

.gb-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.gb-post-card:hover .gb-card-media img {
	transform: scale(1.025);
}

.gb-card-placeholder {
	display: grid;
	height: 100%;
	place-items: center;
	color: rgba(255, 255, 255, 0.75);
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gb-card-body {
	padding: 24px;
}

.gb-card-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 13px;
	color: var(--gb-muted);
	font-size: 13px;
	line-height: 1.4;
}

.gb-card-title {
	margin: 0 0 12px;
	color: var(--gb-text);
	font-size: 23px;
	font-weight: 800;
	line-height: 1.2;
}

.gb-card-excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 18px;
	color: var(--gb-muted-strong);
	font-size: 15px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.gb-card-more {
	color: var(--gb-link);
	font-size: 14px;
	font-weight: 700;
}

/* Empty state */
.no-results .inside-article {
	padding: clamp(28px, 5vw, 56px);
	border: 1px solid var(--gb-border-soft);
	border-radius: var(--gb-radius);
	background:
		radial-gradient(circle at 90% 10%, rgba(47, 107, 255, 0.22), transparent 32%),
		var(--gb-surface);
	text-align: center;
}

.no-results .entry-title {
	margin-bottom: 12px;
	color: var(--gb-text);
	font-size: clamp(30px, 5vw, 44px);
	font-weight: 900;
}

.no-results p {
	max-width: 620px;
	margin: 0 auto;
	color: var(--gb-muted-strong);
}

/* Single article and pages */
.single-post .inside-article,
.page .inside-article,
.error404 .inside-article {
	max-width: 920px;
	margin-inline: auto;
	padding: clamp(28px, 6vw, 64px);
	border: 1px solid var(--gb-border-soft);
	border-radius: var(--gb-radius-lg);
	background: var(--gb-surface);
	box-shadow: var(--gb-shadow);
}

.single-post .entry-title,
.page .entry-title {
	margin: 0 0 14px;
	color: var(--gb-text);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 900;
	line-height: 1.08;
}

.entry-meta,
.entry-meta a {
	color: var(--gb-muted);
	font-size: 14px;
}

.single-post .featured-image,
.single-post .post-image {
	margin: 30px 0;
}

.single-post .featured-image img,
.single-post .post-image img {
	width: 100%;
	border-radius: var(--gb-radius);
}

/* Keep featured images in listings, but avoid duplicating them on article pages. */
.single-post .page-header-image-single {
	display: none;
}

.entry-content {
	color: var(--gb-muted-strong);
	font-size: 18px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--gb-text);
	font-weight: 800;
	line-height: 1.2;
	scroll-margin-top: 24px;
}

.entry-content h2 {
	margin: 2.1em 0 0.75em;
	font-size: clamp(28px, 4vw, 36px);
}

.entry-content h3 {
	margin: 1.7em 0 0.65em;
	font-size: clamp(22px, 3vw, 28px);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table {
	margin-bottom: 1.35em;
}

.entry-content strong {
	color: var(--gb-text);
}

.entry-content blockquote {
	padding: 18px 22px;
	border-left: 4px solid var(--gb-accent);
	border-radius: 0 var(--gb-radius) var(--gb-radius) 0;
	background: var(--gb-surface-soft);
	color: var(--gb-text);
}

.entry-content table {
	overflow: hidden;
	width: 100%;
	border: 1px solid var(--gb-border);
	border-radius: var(--gb-radius);
	border-collapse: separate;
	border-spacing: 0;
}

.entry-content th,
.entry-content td {
	padding: 13px 15px;
	border-right: 1px solid var(--gb-border);
	border-bottom: 1px solid var(--gb-border);
}

.entry-content th {
	background: var(--gb-surface-soft);
	color: var(--gb-text);
}

.entry-content img {
	border-radius: var(--gb-radius);
}

.gb-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 24px;
	color: var(--gb-muted);
	font-size: 13px;
}

.gb-breadcrumbs a {
	color: var(--gb-muted);
}

.gb-toc {
	margin: 30px 0;
	padding: 24px;
	border: 1px solid var(--gb-border);
	border-radius: var(--gb-radius);
	background: var(--gb-surface-soft);
}

.gb-toc-title {
	margin-bottom: 12px;
	color: var(--gb-text);
	font-size: 18px;
	font-weight: 800;
}

.gb-toc ol {
	display: grid;
	gap: 8px;
	margin: 0;
	padding-left: 22px;
}

.gb-toc .is-subheading {
	margin-left: 18px;
}

.gb-toc a {
	color: #b8d5ff;
	text-decoration: none;
}

.gb-toc a:hover,
.gb-toc a:focus {
	color: #fff;
}

.wp-block-details,
.schema-faq-section {
	margin-bottom: 10px;
	padding: 18px 20px;
	border: 1px solid var(--gb-border);
	border-radius: var(--gb-radius);
	background: var(--gb-surface-soft);
}

.wp-block-details summary,
.schema-faq-question {
	color: var(--gb-text);
	font-weight: 800;
	cursor: pointer;
}

.schema-faq-answer {
	margin: 12px 0 0;
}

.gb-article-cta {
	margin-top: 48px;
	padding: clamp(24px, 5vw, 36px);
	border: 1px solid rgba(61, 138, 253, 0.28);
	border-radius: var(--gb-radius-lg);
	background:
		radial-gradient(circle at 85% 10%, rgba(47, 107, 255, 0.34), transparent 38%),
		var(--gb-surface-soft);
}

.gb-article-cta h2 {
	margin: 0 0 8px;
	font-size: 28px;
}

.gb-article-cta p {
	margin: 0 0 20px;
	color: var(--gb-muted-strong);
}

.gb-button,
.entry-content .wp-element-button,
.search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 13px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--gb-accent);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: background 160ms ease, transform 160ms ease;
}

.gb-button:hover,
.gb-button:focus,
.entry-content .wp-element-button:hover,
.entry-content .wp-element-button:focus {
	transform: translateY(-1px);
	background: var(--gb-accent-soft);
	color: #fff;
}

.crp_related {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--gb-border);
}

.crp_related ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crp_related li {
	padding: 16px;
	border: 1px solid var(--gb-border);
	border-radius: var(--gb-radius);
	background: var(--gb-surface-soft);
}

/* Search and pagination */
.search-form {
	display: flex;
	gap: 10px;
}

.search-form input[type="search"] {
	min-height: 52px;
	margin: 0;
	border: 1px solid var(--gb-border);
	border-radius: var(--gb-radius);
	background: var(--gb-surface-soft);
	color: var(--gb-text);
}

.paging-navigation {
	margin-top: 12px;
	padding: 20px 0 0;
	background: transparent;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	place-items: center;
	border: 1px solid var(--gb-border);
	border-radius: 999px;
	background: var(--gb-surface);
	color: var(--gb-text);
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--gb-accent);
	background: var(--gb-accent);
}

/* Footer */
.gb-site-footer {
	border-top: 1px solid var(--gb-border-soft);
	background: #08131f;
}

.gb-footer-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 32px;
	min-height: 110px;
}

.gb-footer-logo img {
	width: 86px;
	height: auto;
}

.gb-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 24px;
}

.gb-footer-links a {
	color: var(--gb-muted);
	font-size: 13px;
	text-decoration: none;
}

.gb-footer-links a:hover,
.gb-footer-links a:focus {
	color: #fff;
}

.gb-footer-bottom {
	padding: 16px 0 24px;
	border-top: 1px solid var(--gb-border-soft);
	color: #6b7686;
	font-size: 12px;
}

@media (max-width: 1200px) {
	.gb-container,
	#page.site {
		margin-inline: 24px;
	}
}

@media (max-width: 900px) {
	.blog .site-main,
	.archive .site-main,
	.search .site-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gb-header-top {
		grid-template-columns: 120px minmax(220px, 1fr);
	}

	.gb-blog-label {
		display: none;
	}

	.crp_related ul {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	body {
		font-size: 16px;
	}

	.gb-container,
	#page.site {
		margin-inline: 16px;
	}

	.gb-header-top {
		grid-template-columns: 90px 1fr;
		gap: 14px;
		min-height: 76px;
	}

	.gb-logo img,
	.gb-footer-logo img {
		width: 74px;
	}

	.gb-header-search input[type="search"] {
		height: 40px;
		font-size: 15px;
	}

	.gb-menu-toggle {
		display: flex;
	}

	.gb-nav-list {
		display: none;
		grid-template-columns: 1fr;
		padding-bottom: 10px;
	}

	.gb-main-nav.is-open .gb-nav-list {
		display: grid;
	}

	.gb-nav-list a,
	.gb-nav-list li:first-child a {
		justify-content: flex-start;
		min-height: 44px;
		border: 0;
		border-radius: 8px;
	}

	.gb-nav-list .is-current a {
		box-shadow: inset 3px 0 0 var(--gb-accent);
	}

	#page.site {
		padding: 32px 0 48px;
	}

	.blog .site-main,
	.archive .site-main,
	.search .site-main {
		grid-template-columns: 1fr;
	}

	.gb-card-body {
		padding: 20px;
	}

	.single-post .inside-article,
	.page .inside-article,
	.error404 .inside-article {
		padding: 24px 20px;
		border-radius: var(--gb-radius);
	}

	.entry-content {
		font-size: 17px;
	}

	.search-form {
		flex-direction: column;
	}

	.gb-footer-inner {
		grid-template-columns: 1fr;
		gap: 22px;
		padding-block: 28px;
	}

	.gb-footer-links {
		justify-content: flex-start;
		flex-direction: column;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
