/*
Theme Name: Pixelgamer
Theme URI: https://suncoastlink.com/
Author: Pixelgamer
Description: Futuristic neon gaming news theme. For gamers, by gamers. Featured hero, lead stories, latest news grid, trending hardware, upcoming releases and newsletter sidebar.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixelgamer
Tags: dark, news, blog, gaming, custom-menu, featured-images, custom-logo, theme-options
*/

/* ==========================================================================
   Tokens (pulled from banner.png)
   ========================================================================== */
:root {
	--pg-bg: #040915;
	--pg-bg-2: #071225;
	--pg-panel: rgba(10, 26, 52, 0.72);
	--pg-panel-solid: #0b1a33;
	--pg-line: rgba(56, 189, 248, 0.22);
	--pg-line-strong: rgba(56, 189, 248, 0.55);
	--pg-cyan: #3fd8ff;
	--pg-blue: #1e8fff;
	--pg-blue-deep: #0b4fae;
	--pg-orange: #ff8a1e;
	--pg-orange-soft: #ffb35c;
	--pg-text: #e6f1ff;
	--pg-muted: #8ea6c8;
	--pg-dim: #5c7499;
	--pg-glow: 0 0 18px rgba(63, 216, 255, 0.45);
	--pg-glow-orange: 0 0 18px rgba(255, 138, 30, 0.5);
	--pg-radius: 4px;
	--pg-cut: 14px;
	--pg-font-display: "Orbitron", "Rajdhani", system-ui, sans-serif;
	--pg-font-ui: "Rajdhani", system-ui, sans-serif;
	--pg-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pg-max: 1240px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(30, 143, 255, 0.18), transparent 60%),
		radial-gradient(900px 500px at -10% 20%, rgba(63, 216, 255, 0.10), transparent 60%),
		linear-gradient(180deg, var(--pg-bg) 0%, var(--pg-bg-2) 100%);
	background-attachment: fixed;
	color: var(--pg-text);
	font-family: var(--pg-font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Circuit grid overlay */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image:
		linear-gradient(rgba(63, 216, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(63, 216, 255, 0.045) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

.site { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pg-cyan); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover, a:focus { color: #fff; text-shadow: var(--pg-glow); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pg-font-display);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	margin: 0 0 .6em;
	color: #fff;
}

p { margin: 0 0 1.2em; }

::selection { background: var(--pg-orange); color: #000; }

:focus-visible { outline: 2px solid var(--pg-orange); outline-offset: 3px; }

.container { width: 100%; max-width: var(--pg-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; height: auto; width: auto;
	display: block; left: 8px; top: 8px; z-index: 100000;
	padding: 12px 20px; background: var(--pg-orange); color: #000;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(4, 9, 21, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--pg-line);
}
.site-header::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--pg-cyan) 30%, var(--pg-orange) 70%, transparent);
	opacity: .7;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 70px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo { max-height: 44px; width: auto; }

.site-title {
	font-family: var(--pg-font-display);
	font-size: 1.55rem;
	font-weight: 900;
	margin: 0;
	letter-spacing: .04em;
	text-transform: lowercase;
}
.site-title a {
	background: linear-gradient(180deg, #ffffff 0%, #bfefff 45%, var(--pg-cyan) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 8px rgba(63, 216, 255, .55));
}
.site-title a:hover { text-shadow: none; }
.site-title .accent { color: var(--pg-orange); -webkit-text-fill-color: var(--pg-orange); }

.logo-mark {
	width: 34px; height: 34px;
	display: grid; place-items: center;
	border: 1px solid var(--pg-cyan);
	box-shadow: var(--pg-glow), inset 0 0 10px rgba(63, 216, 255, .35);
	clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%);
	color: var(--pg-cyan);
	font-family: var(--pg-font-display);
	font-weight: 900;
	font-size: .95rem;
}

/* Primary nav */
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-navigation a {
	display: block;
	position: relative;
	padding: 10px 16px;
	font-family: var(--pg-font-ui);
	font-weight: 600;
	font-size: 1.02rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pg-muted);
}
.main-navigation a::after {
	content: "";
	position: absolute;
	left: 16px; right: 16px; bottom: 4px; height: 2px;
	background: var(--pg-cyan);
	box-shadow: var(--pg-glow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: #fff; text-shadow: none; }
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after { transform: scaleX(1); }

.main-navigation li { position: relative; }
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 200px;
	flex-direction: column;
	background: var(--pg-panel-solid);
	border: 1px solid var(--pg-line);
	padding: 6px;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
	width: 40px; height: 40px;
	display: inline-grid; place-items: center;
	background: transparent;
	border: 1px solid var(--pg-line);
	color: var(--pg-cyan);
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
.icon-btn:hover { border-color: var(--pg-cyan); box-shadow: var(--pg-glow); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

/* Account links */
.account-links { display: flex; align-items: center; gap: 12px; margin-right: 4px; }
.account-link {
	font-family: var(--pg-font-ui);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pg-muted);
}
.account-link:hover { color: #fff; }
.account-name { display: flex; align-items: center; gap: 8px; color: var(--pg-text); font-family: var(--pg-font-ui); font-weight: 600; }
.account-name img { border-radius: 50%; border: 1px solid var(--pg-cyan); }
.pg-btn--sm { padding: 8px 16px; font-size: .82rem; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
@media (max-width: 600px) {
	.account-links { gap: 8px; }
	.account-links .pg-btn--sm,
	.account-name span,
	.account-name + .account-link { display: none; }
}

.header-search {
	display: none;
	border-top: 1px solid var(--pg-line);
	padding: 14px 0;
}
.header-search.is-open { display: block; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-grid; }
	.main-navigation {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: rgba(4, 9, 21, 0.97);
		border-bottom: 1px solid var(--pg-line);
		display: none;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; padding: 10px 16px 18px; }
	.main-navigation ul ul { position: static; display: flex; border: 0; background: none; padding-left: 16px; }
	.main-navigation a::after { display: none; }
}

/* ==========================================================================
   Banner strip
   ========================================================================== */
.site-banner { padding: 22px 0 6px; }
.site-banner .banner-frame {
	position: relative;
	border: 1px solid var(--pg-line-strong);
	box-shadow: 0 0 40px rgba(30, 143, 255, .25);
	clip-path: polygon(var(--pg-cut) 0, 100% 0, 100% calc(100% - var(--pg-cut)), calc(100% - var(--pg-cut)) 100%, 0 100%, 0 var(--pg-cut));
	overflow: hidden;
}
.site-banner img { width: 100%; height: auto; }

/* ==========================================================================
   Shared UI
   ========================================================================== */
.pg-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px 4px 10px;
	font-family: var(--pg-font-ui);
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #001020;
	background: var(--pg-cyan);
	clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
	line-height: 1.5;
}
.pg-tag:hover { color: #001020; text-shadow: none; filter: brightness(1.15); }
.pg-tag--news     { background: var(--pg-cyan); }
.pg-tag--reviews  { background: #b98cff; }
.pg-tag--hardware { background: var(--pg-orange); }
.pg-tag--esports  { background: #3dffa8; }
.pg-tag--upcoming-games { background: #3dffa8; }
.pg-tag--patch-notes    { background: #ffd23f; }
.pg-tag--feature  { background: linear-gradient(90deg, var(--pg-orange), var(--pg-orange-soft)); }

.pg-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	font-family: var(--pg-font-ui);
	font-weight: 500;
	font-size: .92rem;
	letter-spacing: .04em;
	color: var(--pg-muted);
}
.pg-meta .sep { width: 4px; height: 4px; background: var(--pg-cyan); box-shadow: var(--pg-glow); transform: rotate(45deg); }
.pg-meta a { color: var(--pg-text); }

.pg-btn, button.pg-btn, input[type="submit"], .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border: 0;
	cursor: pointer;
	font-family: var(--pg-font-ui);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #001020;
	background: linear-gradient(90deg, var(--pg-cyan), var(--pg-blue));
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	transition: filter .2s, transform .2s;
}
.pg-btn:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
	color: #001020; text-shadow: none; filter: brightness(1.15) drop-shadow(0 0 10px rgba(63, 216, 255, .7));
}
.pg-btn--orange { background: linear-gradient(90deg, var(--pg-orange), var(--pg-orange-soft)); }
.pg-btn--orange:hover { filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 138, 30, .7)); }
.pg-btn--ghost {
	background: transparent;
	color: var(--pg-cyan);
	box-shadow: inset 0 0 0 1px var(--pg-cyan);
	clip-path: none;
}
.pg-btn--ghost:hover { color: #fff; }

.section-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: .14em;
}
.section-heading::before {
	content: "";
	width: 10px; height: 22px;
	background: var(--pg-orange);
	box-shadow: var(--pg-glow-orange);
	clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
}
.section-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--pg-line-strong), transparent);
}
.section-heading .more {
	order: 3;
	font-family: var(--pg-font-ui);
	font-size: .85rem;
	letter-spacing: .14em;
}

/* Panel with chamfered corners */
.pg-panel {
	position: relative;
	background: var(--pg-panel);
	border: 1px solid var(--pg-line);
	clip-path: polygon(var(--pg-cut) 0, 100% 0, 100% calc(100% - var(--pg-cut)), calc(100% - var(--pg-cut)) 100%, 0 100%, 0 var(--pg-cut));
	backdrop-filter: blur(6px);
}
.pg-panel::before {
	content: "";
	position: absolute;
	top: 0; left: var(--pg-cut); width: 60px; height: 2px;
	background: var(--pg-cyan);
	box-shadow: var(--pg-glow);
}

/* Thumbnail fallback */
.pg-thumb-fallback {
	width: 100%; height: 100%;
	min-height: 180px;
	background:
		linear-gradient(135deg, rgba(63, 216, 255, .18), rgba(255, 138, 30, .12)),
		repeating-linear-gradient(90deg, rgba(63, 216, 255, .08) 0 1px, transparent 1px 28px),
		repeating-linear-gradient(0deg, rgba(63, 216, 255, .08) 0 1px, transparent 1px 28px),
		var(--pg-panel-solid);
	display: grid;
	place-items: center;
	font-family: var(--pg-font-display);
	font-weight: 900;
	color: rgba(63, 216, 255, .35);
	font-size: 2rem;
	letter-spacing: .1em;
}

/* ==========================================================================
   Front page: hero + leads
   ========================================================================== */
.front-top { padding: 26px 0 10px; }

.hero-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}
@media (min-width: 960px) {
	.hero-grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
	.hero-grid .story--hero { grid-row: 1 / span 2; }
}

.story {
	position: relative;
	overflow: hidden;
	min-height: 260px;
	display: flex;
	align-items: flex-end;
	border: 1px solid var(--pg-line);
	clip-path: polygon(var(--pg-cut) 0, 100% 0, 100% calc(100% - var(--pg-cut)), calc(100% - var(--pg-cut)) 100%, 0 100%, 0 var(--pg-cut));
	background: var(--pg-panel-solid);
	isolation: isolate;
}
.story--hero { min-height: 420px; }
@media (min-width: 960px) { .story--hero { min-height: 540px; } }

.story__media { position: absolute; inset: 0; z-index: -2; }
.story__media img, .story__media .pg-thumb-fallback {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s;
}
.story:hover .story__media img { transform: scale(1.06); filter: saturate(1.15); }

.story::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(4, 9, 21, 0) 25%, rgba(4, 9, 21, .78) 62%, rgba(4, 9, 21, .97) 100%),
		linear-gradient(90deg, rgba(30, 143, 255, .18), transparent 60%);
}
/* scanlines */
.story::after {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
	pointer-events: none;
}
.story:hover { border-color: var(--pg-line-strong); }

.story__body { padding: 22px; width: 100%; }
.story--hero .story__body { padding: 32px; }
@media (min-width: 960px) { .story--hero .story__body { padding: 44px; max-width: 820px; } }

.story__title { margin: 14px 0 12px; font-size: 1.25rem; }
.story--hero .story__title { font-size: clamp(1.7rem, 3.4vw, 2.75rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.story__title a { color: #fff; }
.story__title a:hover { color: var(--pg-cyan); }
.story__title a::before { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card clickable */
.story .pg-tag, .story .pg-meta a { position: relative; z-index: 1; }

.story__excerpt { color: #c4d6ef; max-width: 640px; margin-bottom: 16px; display: none; }
@media (min-width: 640px) { .story--hero .story__excerpt { display: block; } }

/* ==========================================================================
   Content + sidebar layout
   ========================================================================== */
.content-area { padding: 40px 0 60px; }
.layout {
	display: grid;
	gap: 36px;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.layout--full { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================================
   Article cards (list)
   ========================================================================== */
.post-list { display: grid; gap: 18px; }

.card {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
@media (min-width: 640px) { .card { grid-template-columns: 280px 1fr; } }
.card:hover { transform: translateY(-2px); border-color: var(--pg-line-strong); box-shadow: 0 10px 40px rgba(30, 143, 255, .15); }

.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
@media (min-width: 640px) { .card__media { aspect-ratio: auto; min-height: 190px; } }
.card__media img, .card__media .pg-thumb-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; min-height: 0; }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent 70%, rgba(4, 9, 21, .55));
}

.card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.card__title { font-size: 1.12rem; margin: 2px 0 0; }
.card__title a { color: #fff; }
.card__title a:hover { color: var(--pg-cyan); }
.card__title a::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.card .pg-tag, .card .pg-meta a { position: relative; z-index: 1; }
.card__excerpt { color: var(--pg-muted); font-size: .95rem; margin: 0; }
.card__excerpt p { margin: 0; }
.card .pg-meta { margin-top: auto; font-size: .86rem; }

/* Grid variant (archives) */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-grid .card { grid-template-columns: 1fr; }
.post-grid .card__media { aspect-ratio: 16 / 10; min-height: 0; }

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */
.sidebar { display: grid; gap: 22px; align-content: start; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 96px; } }

.widget { padding: 22px; }
.widget-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .95rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--pg-line);
}
.widget-title svg { width: 18px; height: 18px; color: var(--pg-orange); filter: drop-shadow(0 0 6px rgba(255, 138, 30, .6)); flex: none; }

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed rgba(56, 189, 248, .12); }
.widget li:last-child { border-bottom: 0; }

/* Trending list */
.trend-list { counter-reset: trend; }
.trend-list li {
	display: grid;
	grid-template-columns: 34px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
}
.trend-list li::before {
	counter-increment: trend;
	content: counter(trend, decimal-leading-zero);
	font-family: var(--pg-font-display);
	font-weight: 900;
	font-size: 1.05rem;
	color: transparent;
	-webkit-text-stroke: 1px var(--pg-cyan);
}
.trend-list li:first-child::before { -webkit-text-stroke: 0; color: var(--pg-cyan); text-shadow: var(--pg-glow); }
.trend-list .name { font-family: var(--pg-font-ui); font-weight: 600; font-size: 1.02rem; }
.trend-list a.name { color: var(--pg-text); }
.trend-list a.name:hover { color: var(--pg-cyan); }
.trend-list a.name::after { content: " \2197"; font-size: .8em; color: var(--pg-dim); }
.trend-list .delta {
	font-family: var(--pg-font-ui);
	font-weight: 700;
	font-size: .85rem;
	padding: 2px 8px;
	color: #3dffa8;
	background: rgba(61, 255, 168, .1);
	border: 1px solid rgba(61, 255, 168, .35);
}
.trend-list .delta.is-down { color: #ff5c7a; background: rgba(255, 92, 122, .1); border-color: rgba(255, 92, 122, .35); }

/* Upcoming releases */
.release-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; }
.release-list .name { font-family: var(--pg-font-ui); font-weight: 700; font-size: 1.05rem; color: #fff; }
.release-list .date {
	grid-row: 1 / span 2;
	grid-column: 2;
	align-self: center;
	font-family: var(--pg-font-ui);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pg-orange);
	padding: 4px 10px;
	border: 1px solid rgba(255, 138, 30, .45);
	white-space: nowrap;
}
.release-list .platform { font-size: .82rem; color: var(--pg-muted); letter-spacing: .06em; text-transform: uppercase; font-family: var(--pg-font-ui); }

/* Newsletter */
.widget--newsletter {
	background:
		radial-gradient(400px 200px at 100% 0%, rgba(255, 138, 30, .18), transparent 70%),
		radial-gradient(400px 200px at 0% 100%, rgba(63, 216, 255, .18), transparent 70%),
		var(--pg-panel);
}
.widget--newsletter p { color: var(--pg-muted); font-size: .95rem; }
.newsletter-form { display: grid; gap: 10px; }

input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], textarea, select {
	width: 100%;
	padding: 12px 14px;
	background: rgba(4, 9, 21, .7);
	border: 1px solid var(--pg-line);
	color: var(--pg-text);
	font-family: var(--pg-font-body);
	font-size: 1rem;
	border-radius: 0;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pg-cyan); box-shadow: var(--pg-glow); }
::placeholder { color: var(--pg-dim); }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

/* ==========================================================================
   Single / page
   ========================================================================== */
.entry-header { margin-bottom: 26px; }
.entry-header .pg-tag { margin-bottom: 14px; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-bottom: 16px; }
.page-header { padding: 34px 0 0; }
.page-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; letter-spacing: .08em; }
.page-title span { color: var(--pg-cyan); text-shadow: var(--pg-glow); }
.archive-description { color: var(--pg-muted); max-width: 720px; }

.entry-featured {
	margin: 0 0 30px;
	border: 1px solid var(--pg-line);
	clip-path: polygon(var(--pg-cut) 0, 100% 0, 100% calc(100% - var(--pg-cut)), calc(100% - var(--pg-cut)) 100%, 0 100%, 0 var(--pg-cut));
	overflow: hidden;
}
.entry-featured img { width: 100%; }

.entry-content { font-size: 1.08rem; color: #d5e3f7; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.entry-content h2::before { content: "// "; color: var(--pg-orange); }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(63, 216, 255, .4); text-underline-offset: 3px; }
.entry-content blockquote {
	margin: 1.8em 0;
	padding: 18px 24px;
	border-left: 3px solid var(--pg-orange);
	background: linear-gradient(90deg, rgba(255, 138, 30, .08), transparent);
	font-family: var(--pg-font-ui);
	font-size: 1.3rem;
	font-weight: 600;
	color: #fff;
}
.entry-content pre, .entry-content code {
	font-family: "JetBrains Mono", Consolas, monospace;
	background: rgba(4, 9, 21, .8);
	border: 1px solid var(--pg-line);
	color: var(--pg-cyan);
}
.entry-content code { padding: 2px 6px; font-size: .9em; }
.entry-content pre { padding: 18px; overflow-x: auto; }
.entry-content pre code { border: 0; padding: 0; }
.entry-content img, .entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { color: var(--pg-muted); font-size: .88rem; text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--pg-line); text-align: left; }
.entry-content th { background: rgba(63, 216, 255, .08); font-family: var(--pg-font-ui); letter-spacing: .08em; text-transform: uppercase; }
.entry-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pg-cyan), transparent); margin: 2.4em 0; }

.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { width: 100%; }
.sticky { position: relative; }
.bypostauthor { display: block; }
.wp-caption { max-width: 100%; }
.gallery-caption { color: var(--pg-muted); }

/* Review score box (use a Custom Field "review_score" 0-10) */
.review-score {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	margin: 0 0 28px;
}
.review-score__value {
	font-family: var(--pg-font-display);
	font-size: 3rem;
	font-weight: 900;
	color: var(--pg-orange);
	text-shadow: var(--pg-glow-orange);
	line-height: 1;
}
.review-score__label { font-family: var(--pg-font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--pg-muted); font-weight: 700; }
.review-score__bar { flex: 1; height: 8px; background: rgba(63, 216, 255, .12); position: relative; overflow: hidden; }
.review-score__bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--pg-cyan), var(--pg-orange)); box-shadow: var(--pg-glow); }

.entry-footer { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--pg-line); display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
	display: inline-block;
	padding: 4px 12px;
	font-family: var(--pg-font-ui);
	font-weight: 600;
	font-size: .85rem;
	letter-spacing: .08em;
	color: var(--pg-muted);
	border: 1px solid var(--pg-line);
}
.tag-chip:hover { color: #fff; border-color: var(--pg-cyan); }

.author-box { display: flex; gap: 18px; padding: 22px; margin-top: 34px; align-items: center; }
.author-box img { border-radius: 50%; border: 2px solid var(--pg-cyan); box-shadow: var(--pg-glow); }
.author-box h3 { font-size: 1rem; margin: 0 0 4px; }
.author-box p { margin: 0; color: var(--pg-muted); font-size: .95rem; }

.related-posts { margin-top: 44px; }
.related-posts .post-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related-posts .card__excerpt { display: none; }
.related-posts .card__title { font-size: 1rem; }

.post-navigation, .posts-navigation { margin-top: 36px; }
.post-navigation .nav-links { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a {
	display: block;
	padding: 18px 20px;
	background: var(--pg-panel);
	border: 1px solid var(--pg-line);
	color: #fff;
	font-family: var(--pg-font-ui);
	font-weight: 600;
	font-size: 1.05rem;
}
.post-navigation a:hover { border-color: var(--pg-cyan); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .meta-nav { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pg-orange); margin-bottom: 4px; }

/* Pagination */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	min-width: 42px; height: 42px;
	display: inline-grid; place-items: center;
	padding: 0 12px;
	font-family: var(--pg-font-ui);
	font-weight: 700;
	color: var(--pg-muted);
	border: 1px solid var(--pg-line);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover {
	color: #001020;
	background: var(--pg-cyan);
	border-color: var(--pg-cyan);
	text-shadow: none;
	box-shadow: var(--pg-glow);
}

/* Comments */
.comments-area { margin-top: 44px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 1px solid var(--pg-line); }
.comment-body { padding: 18px 20px; margin-bottom: 14px; background: var(--pg-panel); border: 1px solid var(--pg-line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--pg-font-ui); font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .82rem; margin: 4px 0 10px; }
.comment-metadata a { color: var(--pg-dim); }
.reply a { font-family: var(--pg-font-ui); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.comment-respond { padding: 24px; background: var(--pg-panel); border: 1px solid var(--pg-line); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-family: var(--pg-font-ui); font-weight: 600; letter-spacing: .06em; margin-bottom: 4px; color: var(--pg-muted); }

/* 404 / empty */
.error-404 { text-align: center; padding: 70px 0 90px; }
.error-404 .glitch {
	font-family: var(--pg-font-display);
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 900;
	line-height: 1;
	color: #fff;
	position: relative;
	display: inline-block;
	text-shadow: 3px 0 var(--pg-orange), -3px 0 var(--pg-cyan), 0 0 30px rgba(63, 216, 255, .6);
	animation: pg-glitch 2.6s infinite steps(1);
}
@keyframes pg-glitch {
	0%, 90%, 100% { transform: none; }
	92% { transform: translate(-3px, 1px) skewX(-6deg); }
	95% { transform: translate(3px, -1px) skewX(4deg); }
}
.error-404 .search-form { max-width: 480px; margin: 24px auto 0; }
.no-results { padding: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: 40px;
	padding: 56px 0 24px;
	background: linear-gradient(180deg, rgba(4, 9, 21, 0), rgba(2, 5, 12, .95) 30%);
	border-top: 1px solid var(--pg-line);
}
.site-footer::before {
	content: "";
	position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
	width: min(600px, 80%); height: 2px;
	background: linear-gradient(90deg, transparent, var(--pg-cyan), var(--pg-orange), transparent);
	box-shadow: 0 0 20px rgba(63, 216, 255, .6);
}
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .site-title { font-size: 1.4rem; margin-bottom: 10px; }
.footer-brand p { color: var(--pg-muted); max-width: 380px; }
.footer-tagline { font-family: var(--pg-font-ui); color: var(--pg-orange); font-weight: 700; letter-spacing: .08em; }
.footer-col h4 { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pg-cyan); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--pg-muted); font-family: var(--pg-font-ui); font-weight: 500; font-size: 1.02rem; }
.footer-col a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.footer-bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(56, 189, 248, .12);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	color: var(--pg-dim);
	font-size: .88rem;
	font-family: var(--pg-font-ui);
	letter-spacing: .06em;
}
.footer-bottom .status { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .status::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%;
	background: #3dffa8; box-shadow: 0 0 10px #3dffa8;
	animation: pg-pulse 2s infinite;
}
@keyframes pg-pulse { 50% { opacity: .35; } }

/* Reveal on scroll */
.js .pg-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .pg-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .pg-reveal { opacity: 1; transform: none; }
}
