/*
Theme Name:  Playbox
Theme URI:   https://smartbalak.in/
Author:      Manish
Description: A game-portal theme built for the GamePix Portal plugin. Every color, the hero, animations, homepage sections, footer and social links are editable from Appearance → Customize. Game pages, genre archives and grids are fetched automatically from the Games post type.
Version:     1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: playbox
Tags:        games, portal, custom-colors, custom-logo, dark-mode
*/

/* ---------- Tokens (overridden by Customizer via inline CSS) ---------- */
:root {
	--pb-primary: #6c5ce7;
	--pb-accent: #fd79a8;
	--pb-bg: #f5f6fa;
	--pb-surface: #ffffff;
	--pb-surface-2: #eef0f6;
	--pb-text: #1e2430;
	--pb-text-soft: #5b6473;
	--pb-nav-bg: #171a24;
	--pb-nav-text: #f5f6fa;
	--pb-radius: 14px;
	--pb-ring: 0 0 0 1px rgba(20, 24, 38, .06);
	--pb-shadow: 0 10px 30px -12px rgba(20, 24, 38, .18);
	--pb-shadow-lift: 0 24px 48px -16px rgba(20, 24, 38, .28);
	--pb-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	--pb-spring: cubic-bezier(.32, .72, 0, 1);
	--pb-pop: cubic-bezier(.34, 1.56, .64, 1);
}

[data-theme="dark"] {
	--pb-bg: #12141c;
	--pb-surface: #1a1d29;
	--pb-surface-2: #232736;
	--pb-text: #eef0f6;
	--pb-text-soft: #a3abbd;
	--pb-nav-bg: #0d0f16;
	--pb-ring: 0 0 0 1px rgba(255, 255, 255, .07);
	--pb-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
	--pb-shadow-lift: 0 24px 48px -16px rgba(0, 0, 0, .7);
}

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

body {
	margin: 0;
	background: var(--pb-bg);
	color: var(--pb-text);
	font-family: var(--pb-font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--pb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }

:focus-visible { outline: 3px solid var(--pb-accent); outline-offset: 2px; border-radius: 4px; }

.pb-container { max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

/* ---------- Header ---------- */
.pb-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--pb-nav-bg);
	color: var(--pb-nav-text);
	box-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.pb-header-inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 64px;
}

.pb-brand {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--pb-nav-text);
	text-decoration: none;
}

.pb-brand:hover { text-decoration: none; color: var(--pb-nav-text); }

.pb-brand .custom-logo { max-height: 40px; width: auto; }

.pb-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--pb-primary), var(--pb-accent));
	color: #fff;
	font-size: 1.05rem;
	transition: transform .5s var(--pb-pop);
}

.pb-brand:hover .pb-brand-mark { transform: rotate(-8deg) scale(1.08); }

.pb-nav { margin-left: auto; }

.pb-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }

.pb-nav a {
	position: relative;
	color: var(--pb-nav-text);
	font-weight: 500;
	opacity: .88;
	transition: opacity .25s var(--pb-spring);
}

.pb-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: var(--pb-accent);
	transition: right .35s var(--pb-spring);
}

.pb-nav a:hover { opacity: 1; text-decoration: none; color: var(--pb-nav-text); }

.pb-nav a:hover::after { right: 0; }

.pb-nav .current-menu-item > a,
.pb-nav .current_page_item > a { opacity: 1; }

.pb-nav .current-menu-item > a::after,
.pb-nav .current_page_item > a::after { right: 0; }

.pb-header-actions { display: flex; align-items: center; gap: .5rem; }

.pb-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, .10);
	color: var(--pb-nav-text);
	font-size: 1rem;
	cursor: pointer;
	transition: background .25s var(--pb-spring), transform .25s var(--pb-spring);
}

.pb-icon-btn:hover { background: rgba(255, 255, 255, .2); }
.pb-icon-btn:active { transform: scale(.92); }

/* Hamburger that morphs into an X */
.pb-nav-toggle { display: none; position: relative; }

.pb-nav-toggle .pb-burger,
.pb-nav-toggle .pb-burger::before,
.pb-nav-toggle .pb-burger::after {
	position: absolute;
	left: 50%;
	width: 18px; height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .4s var(--pb-spring), opacity .3s ease;
	content: "";
}

.pb-nav-toggle .pb-burger { transform: translate(-50%, -50%); top: 50%; }
.pb-nav-toggle .pb-burger::before { left: 0; transform: translateY(-6px); }
.pb-nav-toggle .pb-burger::after { left: 0; transform: translateY(6px); }

.pb-nav-toggle[aria-expanded="true"] .pb-burger { background: transparent; }
.pb-nav-toggle[aria-expanded="true"] .pb-burger::before { transform: rotate(45deg); }
.pb-nav-toggle[aria-expanded="true"] .pb-burger::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
	.pb-nav-toggle { display: inline-grid; }
	.pb-nav {
		position: absolute;
		inset: 100% 0 auto 0;
		background: var(--pb-nav-bg);
		padding: .4rem 1rem 1.2rem;
		display: block;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .35s var(--pb-spring), transform .35s var(--pb-spring), visibility 0s .35s;
		box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5);
	}
	.pb-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
		transition: opacity .35s var(--pb-spring), transform .35s var(--pb-spring);
	}
	.pb-nav ul { flex-direction: column; gap: 0; }
	.pb-nav li {
		opacity: 0;
		transform: translateY(10px);
		transition: opacity .4s var(--pb-spring), transform .4s var(--pb-spring);
	}
	.pb-nav.is-open li { opacity: 1; transform: translateY(0); }
	.pb-nav.is-open li:nth-child(1) { transition-delay: .05s; }
	.pb-nav.is-open li:nth-child(2) { transition-delay: .1s; }
	.pb-nav.is-open li:nth-child(3) { transition-delay: .15s; }
	.pb-nav.is-open li:nth-child(4) { transition-delay: .2s; }
	.pb-nav.is-open li:nth-child(5) { transition-delay: .25s; }
	.pb-nav.is-open li:nth-child(6) { transition-delay: .3s; }
	.pb-nav a { display: block; padding: .8rem .2rem; }
	.pb-nav a::after { display: none; }
}

/* ---------- Search bar ---------- */
.pb-search {
	background: var(--pb-surface);
	padding: 1rem 0;
	border-bottom: 1px solid var(--pb-surface-2);
}

.pb-search form { display: flex; max-width: 640px; margin-inline: auto; }

.pb-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: .72rem 1.15rem;
	font: inherit;
	color: var(--pb-text);
	background: var(--pb-surface-2);
	border: 1.5px solid transparent;
	border-radius: 999px 0 0 999px;
	transition: border-color .3s var(--pb-spring);
}

.pb-search input[type="search"]:focus { border-color: var(--pb-primary); outline: none; }

.pb-search button {
	padding: 0 1.4rem;
	border: 0;
	border-radius: 0 999px 999px 0;
	background: var(--pb-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter .25s ease;
}

.pb-search button:hover { filter: brightness(1.1); }

/* ---------- Hero ---------- */
.pb-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(3.4rem, 9vw, 6.5rem) 1rem;
	text-align: center;
	color: #fff;
	background: var(--pb-primary);
	overflow: hidden;
}

/* Animated gradient wash */
.pb-hero::before {
	content: "";
	position: absolute;
	inset: -40%;
	z-index: -3;
	background:
		linear-gradient(130deg,
			color-mix(in srgb, var(--pb-primary) 92%, #000) 0%,
			color-mix(in srgb, var(--pb-primary) 55%, var(--pb-accent)) 45%,
			color-mix(in srgb, var(--pb-accent) 75%, #000) 100%);
	background-size: 200% 200%;
}

.pb-anim-on .pb-hero::before { animation: pb-gradient-pan 14s ease-in-out infinite alternate; }

@keyframes pb-gradient-pan {
	from { transform: translate3d(-4%, -3%, 0); }
	to { transform: translate3d(4%, 3%, 0); }
}

/* Drifting glow orbs */
.pb-hero-orb {
	position: absolute;
	z-index: -2;
	width: 46vmin; height: 46vmin;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .5;
	pointer-events: none;
}

.pb-hero-orb--a { top: -18%; left: -10%; background: radial-gradient(circle, var(--pb-accent), transparent 65%); }
.pb-hero-orb--b { bottom: -25%; right: -8%; background: radial-gradient(circle, #ffffff, transparent 60%); opacity: .28; }

.pb-anim-on .pb-hero-orb--a { animation: pb-orb 16s ease-in-out infinite alternate; }
.pb-anim-on .pb-hero-orb--b { animation: pb-orb 20s ease-in-out infinite alternate-reverse; }

@keyframes pb-orb {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(8vmin, 5vmin, 0) scale(1.15); }
}

/* Custom background image mode */
.pb-hero.has-image { background-size: cover; background-position: center; }
.pb-hero.has-image::before {
	background: linear-gradient(rgba(9, 9, 20, .72), rgba(9, 9, 20, .72));
	background-size: auto;
	inset: 0;
	animation: none;
}
.pb-hero.has-image .pb-hero-orb { display: none; }

/* Falling game icons */
.pb-hero-fx {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.pb-hero-fx span {
	position: absolute;
	top: -12%;
	left: var(--x, 50%);
	font-size: var(--size, 1.6rem);
	opacity: 0;
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3));
	animation:
		pb-fall var(--dur, 9s) linear var(--delay, 0s) infinite,
		pb-sway calc(var(--dur, 9s) / 3) ease-in-out var(--delay, 0s) infinite alternate;
	will-change: transform;
}

@keyframes pb-fall {
	0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
	8% { opacity: var(--op, .8); }
	88% { opacity: var(--op, .8); }
	100% { transform: translate3d(0, 118vh, 0) rotate(var(--spin, 300deg)); opacity: 0; }
}

@keyframes pb-sway {
	from { margin-left: calc(var(--drift, 20px) * -1); }
	to { margin-left: var(--drift, 20px); }
}

.pb-hero-inner { position: relative; max-width: 780px; margin-inline: auto; }

.pb-hero-eyebrow {
	display: inline-block;
	padding: .28rem .95rem;
	margin-bottom: 1.1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.pb-hero h1 {
	font-size: clamp(2rem, 5.4vw, 3.4rem);
	font-weight: 700;
	text-wrap: balance;
	margin-bottom: .45em;
}

/* Word-by-word reveal (spans added by JS) */
.pb-hero h1 .pb-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(.6em) scale(.9);
	filter: blur(6px);
	animation: pb-word-in .8s var(--pb-pop) forwards;
	animation-delay: calc(.12s + var(--w, 0) * .09s);
}

@keyframes pb-word-in {
	to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.pb-hero p {
	font-size: clamp(1rem, 2.4vw, 1.18rem);
	opacity: .92;
	margin: 0 0 1.7rem;
}

.pb-anim-on .pb-hero p,
.pb-anim-on .pb-hero .pb-btn {
	opacity: 0;
	transform: translateY(14px);
	animation: pb-rise .8s var(--pb-spring) forwards;
}

.pb-anim-on .pb-hero p { animation-delay: .55s; }
.pb-anim-on .pb-hero .pb-btn { animation-delay: .75s; }

@keyframes pb-rise {
	to { opacity: 1; transform: translateY(0); }
}


/* Button-in-button CTA with glow pulse */
.pb-btn {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	padding: .55rem .6rem .55rem 1.6rem;
	border-radius: 999px;
	background: #fff;
	color: var(--pb-primary);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
	transition: transform .45s var(--pb-pop), box-shadow .45s var(--pb-spring);
}

.pb-btn-icon {
	display: inline-grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--pb-primary) 14%, #fff);
	font-size: .85rem;
	transition: transform .45s var(--pb-pop), background .3s ease;
}

.pb-btn:hover {
	transform: translateY(-3px);
	text-decoration: none;
	box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .5);
}

.pb-btn:hover .pb-btn-icon { transform: translate(2px, -2px) scale(1.08); background: var(--pb-accent); color: #fff; }

.pb-btn:active { transform: translateY(-1px) scale(.97); }

.pb-anim-on .pb-btn::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, .5);
	opacity: 0;
	animation: pb-pulse 2.6s ease-out 1.4s infinite;
	pointer-events: none;
}

.pb-btn { position: relative; }

@keyframes pb-pulse {
	0% { opacity: .7; transform: scale(1); }
	70%, 100% { opacity: 0; transform: scale(1.18); }
}

/* ---------- Genre strip ---------- */
.pb-genres {
	display: flex;
	gap: .55rem;
	padding: 1.1rem 0;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.pb-genres::-webkit-scrollbar { display: none; }

.pb-genre-pill {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	min-height: 40px;
	padding: .4rem 1.05rem;
	border-radius: 999px;
	background: var(--pb-surface);
	color: var(--pb-text);
	font-weight: 600;
	font-size: .92rem;
	box-shadow: var(--pb-ring);
	white-space: nowrap;
	transition: transform .35s var(--pb-pop), background .25s ease, color .25s ease;
}

.pb-genre-pill:hover,
.pb-genre-pill.is-active {
	background: var(--pb-primary);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

.pb-genre-pill:active { transform: scale(.95); }

.pb-genre-pill small { opacity: .7; font-weight: 500; }

/* ---------- Sections & grid ---------- */
.pb-section { padding: clamp(1.8rem, 4vw, 3rem) 0 .8rem; }

.pb-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.15rem;
}

.pb-section-title {
	position: relative;
	font-size: clamp(1.25rem, 2.6vw, 1.5rem);
	padding-left: .85rem;
}

.pb-section-title::before {
	content: "";
	position: absolute;
	left: 0; top: .18em; bottom: .18em;
	width: 5px;
	border-radius: 4px;
	background: linear-gradient(var(--pb-primary), var(--pb-accent));
}

.pb-view-all { font-weight: 600; font-size: .95rem; white-space: nowrap; }

.pb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.1rem;
}

@media (max-width: 640px) {
	.pb-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: .8rem; }
}

@media (max-width: 380px) {
	.pb-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
}

/* ---------- Scroll-entry choreography ---------- */
.pb-anim-on .pb-reveal {
	opacity: 0;
	transform: translateY(26px);
	filter: blur(5px);
	transition: opacity .9s var(--pb-spring), transform .9s var(--pb-spring), filter .9s var(--pb-spring);
	transition-delay: calc(var(--i, 0) * 70ms);
}

.pb-anim-on .pb-reveal.is-in {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

/* ---------- Game card ---------- */
.pb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--pb-surface);
	border-radius: var(--pb-radius);
	overflow: hidden;
	box-shadow: var(--pb-ring), var(--pb-shadow);
	transition: transform .5s var(--pb-pop), box-shadow .5s var(--pb-spring);
}

.pb-card:hover { transform: translateY(-5px); box-shadow: var(--pb-ring), var(--pb-shadow-lift); }

.pb-card:active { transform: translateY(-1px) scale(.98); }

.pb-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--pb-surface-2);
	overflow: hidden;
}

.pb-card-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .7s var(--pb-spring);
}

.pb-card:hover .pb-card-media img { transform: scale(1.07); }

.pb-card-badge {
	position: absolute;
	top: .55rem; left: .55rem;
	padding: .18rem .6rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pb-primary) 85%, #000);
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .02em;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .2);
}

.pb-card-body { padding: .7rem .8rem .85rem; }

.pb-card-title { font-size: .98rem; font-weight: 600; margin: 0; }

.pb-card-title a { color: var(--pb-text); }

.pb-card-title a::after { content: ""; position: absolute; inset: 0; }

.pb-card-title a:hover { text-decoration: none; color: var(--pb-primary); }

.pb-card-play {
	position: absolute;
	right: .6rem; bottom: .6rem;
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--pb-accent);
	color: #fff;
	font-size: .8rem;
	box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5);
	opacity: 0;
	transform: scale(.5) rotate(-90deg);
	transition: opacity .35s ease, transform .5s var(--pb-pop);
}

.pb-card:hover .pb-card-play { opacity: 1; transform: scale(1) rotate(0deg); }

/* Touch devices: play chip always visible, no hover states to miss */
@media (hover: none) {
	.pb-card-play { opacity: 1; transform: scale(1) rotate(0deg); }
	.pb-card:hover .pb-card-media img { transform: none; }
}

/* ---------- Single game / article ---------- */
.pb-main { padding: 1.4rem 0 3rem; }

.pb-breadcrumb {
	font-size: .88rem;
	color: var(--pb-text-soft);
	margin-bottom: 1rem;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.pb-breadcrumb::-webkit-scrollbar { display: none; }

.pb-breadcrumb a { color: var(--pb-text-soft); }

/* Double-bezel: outer tray + inner core */
.pb-entry {
	background: var(--pb-surface-2);
	border-radius: calc(var(--pb-radius) + 8px);
	padding: 8px;
	box-shadow: var(--pb-ring), var(--pb-shadow);
}

.pb-entry-core {
	background: var(--pb-surface);
	border-radius: var(--pb-radius);
	padding: clamp(1.1rem, 3vw, 2.2rem);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5);
}

[data-theme="dark"] .pb-entry-core { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .05); }

.pb-entry-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }

.pb-entry-meta { color: var(--pb-text-soft); font-size: .92rem; margin-bottom: 1.2rem; }

.pb-entry-meta a {
	display: inline-block;
	margin: 0 .35rem .35rem 0;
	padding: .14rem .7rem;
	border-radius: 999px;
	background: var(--pb-surface-2);
	color: var(--pb-text);
	font-weight: 600;
	font-size: .8rem;
	transition: transform .35s var(--pb-pop), background .25s ease, color .25s ease;
}

.pb-entry-meta a:hover { background: var(--pb-primary); color: #fff; text-decoration: none; transform: translateY(-1px); }

.pb-entry-content { font-size: 1.02rem; }

.pb-entry-content img { border-radius: 10px; }

.pb-entry-content a { text-decoration: underline; }

/* Blog card (non-game posts) */
.pb-post-list { display: grid; gap: 1.1rem; }

.pb-post-card {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 1.1rem;
	background: var(--pb-surface);
	border-radius: var(--pb-radius);
	box-shadow: var(--pb-ring), var(--pb-shadow);
	overflow: hidden;
	transition: transform .5s var(--pb-pop), box-shadow .5s var(--pb-spring);
}

.pb-post-card:hover { transform: translateY(-3px); box-shadow: var(--pb-ring), var(--pb-shadow-lift); }

.pb-post-card .pb-card-media { aspect-ratio: 4 / 3; height: 100%; }

.pb-post-card-body { padding: 1rem 1.1rem; }

.pb-post-card-body h2 { font-size: 1.15rem; margin-bottom: .35rem; }

.pb-post-card-body h2 a { color: var(--pb-text); }

.pb-post-card-body p { margin: 0; color: var(--pb-text-soft); font-size: .95rem; }

@media (max-width: 560px) {
	.pb-post-card { grid-template-columns: 1fr; }
}

/* ---------- Pagination ---------- */
.pb-pagination { margin-top: 1.8rem; text-align: center; }

.pb-pagination .nav-links { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }

.pb-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding-inline: .6rem;
	border-radius: 12px;
	background: var(--pb-surface);
	color: var(--pb-text);
	font-weight: 600;
	box-shadow: var(--pb-ring), var(--pb-shadow);
	transition: transform .35s var(--pb-pop), background .25s ease, color .25s ease;
}

.pb-pagination .page-numbers.current { background: var(--pb-primary); color: #fff; }

.pb-pagination a.page-numbers:hover { background: var(--pb-accent); color: #fff; text-decoration: none; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.pb-footer {
	margin-top: 3rem;
	background: var(--pb-nav-bg);
	color: var(--pb-nav-text);
	padding: 2.6rem 0 1.4rem;
}

.pb-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 1.8rem;
}

@media (max-width: 760px) { .pb-footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

.pb-footer h3 { font-size: 1.05rem; margin-bottom: .7rem; }

.pb-footer p { margin: 0; opacity: .8; font-size: .95rem; }

.pb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }

.pb-footer a { color: var(--pb-nav-text); opacity: .82; transition: opacity .25s ease, color .25s ease; }

.pb-footer a:hover { opacity: 1; color: var(--pb-accent); text-decoration: none; }

.pb-social { display: flex; gap: .6rem; margin-top: .6rem; }

.pb-social a {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .1);
	font-size: 1rem;
	transition: transform .4s var(--pb-pop), background .25s ease;
}

.pb-social a:hover { background: var(--pb-primary); transform: translateY(-3px); }

.pb-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding-top: 1.1rem;
	text-align: center;
	font-size: .88rem;
	opacity: .75;
}

/* ---------- Notices / empty states ---------- */
.pb-empty {
	background: var(--pb-surface);
	border: 2px dashed var(--pb-surface-2);
	border-radius: var(--pb-radius);
	padding: 2.4rem 1.4rem;
	text-align: center;
	color: var(--pb-text-soft);
}

/* WordPress core alignment + comment basics */
.alignwide { margin-inline: -1rem; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.wp-block-image img { border-radius: 8px; }

.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--pb-surface-2); padding: 1rem 0; }

/* ---------- Reduced motion: everything settles instantly ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.pb-hero-fx { display: none; }
	.pb-anim-on .pb-reveal { opacity: 1; transform: none; filter: none; }
	.pb-hero h1 .pb-word { opacity: 1; transform: none; filter: none; }
	.pb-anim-on .pb-hero p, .pb-anim-on .pb-hero .pb-btn { opacity: 1; transform: none; }
	.pb-anim-on .pb-hero p { opacity: .92; }
}
