/*
Theme Name: PUBG Gen
Theme URI: https://pubgnamegenerator.com/
Author: pubgnamegenerator.com
Author URI: https://pubgnamegenerator.com/
Description: Dark, esports-styled WordPress theme for PUBG / BGMI name generator sites. Ships a custom homepage that hosts the PUBG Name Generator (via the [pubg_name_generator] shortcode), plus fully styled blog, post, page, archive, search and 404 templates. Pairs with the "PUBG Name Generator" plugin.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pubg-gen
Tags: dark, gaming, one-column, two-columns, custom-menu, custom-logo, featured-images, blog, translation-ready
*/

/* ============================================================== *
 * Design tokens
 * ============================================================== */
:root {
	--pg-dark: #0d0d0d;
	--pg-gray: #1a1a1a;
	--pg-yellow: #f2a900;
	--pg-text: #eaeaea;
	--pg-muted: #9ca3af;
	--pg-muted-2: #6b7280;
	--pg-border: #1f2937;
	--pg-border-2: #111827;
	--pg-red: #ef4444;
	--pg-maxw: 80rem;
	--pg-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pg-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============================================================== *
 * Base
 * ============================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pg-body {
	margin: 0;
	background: var(--pg-dark);
	color: var(--pg-text);
	font-family: var(--pg-font);
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--pg-yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: #fff; line-height: 1.2; margin: 0 0 0.6em; font-weight: 800; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--pg-border); margin: 2rem 0; }
.pg-site { flex: 1 0 auto; display: flex; flex-direction: column; }
.pg-container { width: 100%; max-width: var(--pg-maxw); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .pg-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .pg-container { padding: 0 2rem; } }
.pg-container-narrow { max-width: 56rem; }

.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;
}
.pg-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--pg-yellow); color: #000; padding: 0.6rem 1rem; font-weight: 700;
}
.pg-skip-link:focus { left: 0; }

/* ============================================================== *
 * Header / nav
 * ============================================================== */
.pg-header {
	position: sticky; top: 0; z-index: 50;
	width: 100%;
	border-bottom: 1px solid var(--pg-border);
	background: rgba(13, 13, 13, 0.9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.pg-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	height: 4rem;
}
.pg-brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.pg-brand:hover { text-decoration: none; }
.pg-logo-mark {
	width: 2rem; height: 2rem; background: var(--pg-yellow); border-radius: 0.125rem;
	display: flex; align-items: center; justify-content: center;
	color: #000; font-weight: 900; font-size: 1.1rem;
}
.pg-logo-mark img { width: 2rem; height: 2rem; border-radius: 0.125rem; }
.pg-brand-text {
	color: #fff; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.03em; text-transform: uppercase;
}
.pg-brand-text span { color: var(--pg-yellow); }

.pg-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .pg-nav { display: flex; } }
.pg-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; }
.pg-nav a {
	display: inline-block; padding: 0.5rem 0.75rem; border-radius: 0.375rem;
	font-size: 0.875rem; font-weight: 500; color: #d1d5db; transition: color 0.15s;
}
.pg-nav a:hover { color: #fff; text-decoration: none; }
.pg-nav .current-menu-item > a,
.pg-nav .current_page_item > a,
.pg-nav .current-menu-parent > a {
	color: var(--pg-yellow);
	border-bottom: 2px solid var(--pg-yellow);
	border-radius: 0;
}

.pg-menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: none; color: var(--pg-muted); cursor: pointer;
	padding: 0.5rem; font-size: 1.5rem; line-height: 1;
}
.pg-menu-toggle:hover { color: #fff; }
@media (min-width: 768px) { .pg-menu-toggle { display: none; } }

.pg-mobile-nav {
	display: none; border-top: 1px solid var(--pg-border);
	background: rgba(13, 13, 13, 0.97);
}
.pg-mobile-nav.pg-open { display: block; }
@media (min-width: 768px) { .pg-mobile-nav { display: none !important; } }
.pg-mobile-nav ul { list-style: none; margin: 0; padding: 1rem; }
.pg-mobile-nav li { margin-bottom: 0.25rem; }
.pg-mobile-nav a {
	display: block; padding: 0.75rem 1rem; border-radius: 0.5rem;
	font-size: 1rem; font-weight: 500; color: #d1d5db;
}
.pg-mobile-nav a:hover { background: rgba(31, 41, 55, 0.5); color: #fff; text-decoration: none; }
.pg-mobile-nav .current-menu-item > a,
.pg-mobile-nav .current_page_item > a {
	background: rgba(242, 169, 0, 0.1); color: var(--pg-yellow);
	border-left: 2px solid var(--pg-yellow);
}

/* ============================================================== *
 * Sections / hero
 * ============================================================== */
.pg-main { display: block; }
.pg-section { padding: 3rem 0; border-top: 1px solid var(--pg-border-2); }
.pg-section:first-child { border-top: 0; }
.pg-section--alt { background: rgba(0, 0, 0, 0.3); }
.pg-section-head { text-align: center; margin-bottom: 2.5rem; }
.pg-section-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); text-transform: uppercase; letter-spacing: -0.02em; }
.pg-section-head p { color: var(--pg-muted-2); margin-top: 0.5rem; }

.pg-hero {
	position: relative; overflow: hidden;
	padding: 3rem 0 4rem;
}
.pg-hero::before {
	content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 100%; height: 500px; background: rgba(242, 169, 0, 0.1);
	filter: blur(120px); border-radius: 9999px; pointer-events: none;
}
.pg-hero-inner { position: relative; z-index: 1; }
.pg-hero-title {
	max-width: 64rem; margin: 0 auto 1.25rem; text-align: center;
	font-size: clamp(1.875rem, 6vw, 3.75rem); font-weight: 900;
	letter-spacing: -0.025em; line-height: 1.1;
}
.pg-hero-title .pg-grad {
	background: linear-gradient(to right, var(--pg-yellow), #fef08a);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg-hero-sub {
	max-width: 56rem; margin: 0 auto; text-align: center;
	color: var(--pg-muted); font-size: 1.05rem; line-height: 1.7;
}
.pg-generator-wrap { margin: 3rem auto 0; }

/* Stats */
.pg-stats {
	margin: 3rem auto 0; max-width: 48rem;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 768px) { .pg-stats { grid-template-columns: repeat(4, 1fr); } }
.pg-stat { text-align: center; }
.pg-stat-num { font-size: clamp(1.5rem, 4vw, 1.875rem); font-weight: 900; color: var(--pg-yellow); margin: 0; }
.pg-stat-label { font-size: 0.7rem; color: var(--pg-muted-2); text-transform: uppercase; letter-spacing: 0.08em; margin: 0.25rem 0 0; }

/* Plugin-missing notice */
.pg-notice {
	max-width: 48rem; margin: 0 auto; text-align: center;
	border: 1px dashed var(--pg-yellow); border-radius: 0.75rem;
	background: rgba(242, 169, 0, 0.06); padding: 2rem 1.5rem; color: var(--pg-text);
}
.pg-notice code { background: rgba(0,0,0,0.4); padding: 0.1rem 0.4rem; border-radius: 0.25rem; color: var(--pg-yellow); }

/* ============================================================== *
 * Cards (explore + posts)
 * ============================================================== */
.pg-cards {
	display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .pg-cards-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .pg-cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pg-cards-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .pg-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pg-cards-4 { grid-template-columns: repeat(4, 1fr); } }

.pg-card {
	display: block; background: rgba(26, 26, 26, 0.4);
	border: 1px solid var(--pg-border); border-radius: 0.75rem;
	padding: 1.5rem; transition: border-color 0.2s, background 0.2s; color: inherit;
}
.pg-card:hover { border-color: rgba(242, 169, 0, 0.5); text-decoration: none; }
.pg-card-icon { font-size: 1.875rem; display: block; margin-bottom: 0.75rem; }
.pg-card h3 { color: #fff; font-size: 1.05rem; transition: color 0.2s; margin: 0 0 0.25rem; }
.pg-card:hover h3 { color: var(--pg-yellow); }
.pg-card p { color: var(--pg-muted-2); font-size: 0.875rem; margin: 0; }

/* Post cards */
.pg-post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.pg-post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pg-gray); }
.pg-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pg-post-card:hover .pg-post-thumb img { transform: scale(1.05); }
.pg-post-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.pg-post-meta { font-size: 0.75rem; color: var(--pg-muted-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.pg-post-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.pg-post-card h3 a { color: #fff; }
.pg-post-card:hover h3 a { color: var(--pg-yellow); }
.pg-post-excerpt { color: var(--pg-muted); font-size: 0.9rem; flex: 1; }
.pg-readmore { margin-top: 0.75rem; font-weight: 700; color: var(--pg-yellow); font-size: 0.85rem; }

/* ============================================================== *
 * Single / page content (prose)
 * ============================================================== */
.pg-article { padding: 3rem 0; }
.pg-article-header { margin-bottom: 2rem; text-align: center; }
.pg-article-header h1 { font-size: clamp(1.75rem, 5vw, 3rem); letter-spacing: -0.02em; }
.pg-article-meta { color: var(--pg-muted-2); font-size: 0.85rem; margin-top: 0.75rem; }
.pg-article-meta a { color: var(--pg-muted); }
.pg-featured { margin: 0 0 2rem; border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--pg-border); }
.pg-featured img { width: 100%; display: block; }

.pg-prose { color: var(--pg-text); font-size: 1.05rem; line-height: 1.8; }
.pg-prose h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.pg-prose h3 { font-size: 1.3rem; margin: 1.75rem 0 0.75rem; }
.pg-prose a { color: var(--pg-yellow); text-decoration: underline; }
.pg-prose ul, .pg-prose ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.pg-prose li { margin-bottom: 0.5rem; }
.pg-prose blockquote {
	border-left: 3px solid var(--pg-yellow); margin: 1.5rem 0; padding: 0.5rem 1.25rem;
	background: rgba(26, 26, 26, 0.5); color: var(--pg-muted); border-radius: 0 0.5rem 0.5rem 0;
}
.pg-prose code { font-family: var(--pg-mono); background: rgba(0,0,0,0.4); padding: 0.1rem 0.35rem; border-radius: 0.25rem; font-size: 0.9em; }
.pg-prose pre { background: #000; border: 1px solid var(--pg-border); border-radius: 0.5rem; padding: 1rem; overflow: auto; }
.pg-prose pre code { background: transparent; padding: 0; }
.pg-prose img { border-radius: 0.5rem; }
.pg-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.pg-prose th, .pg-prose td { border: 1px solid var(--pg-border); padding: 0.6rem 0.8rem; text-align: left; }
.pg-prose th { background: var(--pg-gray); color: #fff; }

.pg-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg-tag {
	display: inline-block; font-size: 0.75rem; color: var(--pg-muted);
	border: 1px solid var(--pg-border); border-radius: 9999px; padding: 0.25rem 0.75rem;
}
.pg-tag:hover { border-color: var(--pg-yellow); color: var(--pg-yellow); text-decoration: none; }

/* ============================================================== *
 * Buttons / pagination / forms
 * ============================================================== */
.pg-btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	background: linear-gradient(to right, #9333ea, #db2777); color: #fff;
	font-weight: 700; padding: 0.65rem 1.25rem; border-radius: 9999px; border: none; cursor: pointer;
}
.pg-btn:hover { background: linear-gradient(to right, #a855f7, #ec4899); text-decoration: none; }
.pg-btn-ghost { background: var(--pg-gray); }
.pg-btn-ghost:hover { background: #2a2a2a; }

.pg-pagination { margin: 3rem 0 0; }
.pg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem;
	padding: 0 0.75rem; border: 1px solid var(--pg-border); border-radius: 0.5rem;
	color: var(--pg-text); background: rgba(26,26,26,0.4);
}
.pg-pagination .page-numbers:hover { border-color: var(--pg-yellow); text-decoration: none; }
.pg-pagination .page-numbers.current { background: var(--pg-yellow); color: #000; border-color: var(--pg-yellow); font-weight: 700; }

.pg-search-form { display: flex; gap: 0.5rem; max-width: 30rem; }
.pg-search-form input[type="search"], .pg-input {
	flex: 1; background: rgba(0,0,0,0.4); border: 1px solid var(--pg-border);
	color: #fff; padding: 0.65rem 0.9rem; border-radius: 0.5rem; outline: none; font-size: 1rem;
}
.pg-search-form input[type="search"]:focus, .pg-input:focus { border-color: var(--pg-yellow); }

/* Comments */
.pg-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--pg-border); }
.pg-comments ol { list-style: none; padding: 0; }
.pg-comments .comment-body { background: rgba(26,26,26,0.4); border: 1px solid var(--pg-border); border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.pg-comments .comment-author { font-weight: 700; color: #fff; }
.pg-comments .comment-metadata { font-size: 0.75rem; color: var(--pg-muted-2); }
.pg-comments textarea, .pg-comments input[type="text"], .pg-comments input[type="email"], .pg-comments input[type="url"] {
	width: 100%; background: rgba(0,0,0,0.4); border: 1px solid var(--pg-border); color: #fff;
	padding: 0.6rem 0.8rem; border-radius: 0.5rem; margin-bottom: 0.75rem;
}

/* ============================================================== *
 * Footer
 * ============================================================== */
.pg-footer { background: #000; border-top: 1px solid var(--pg-border-2); margin-top: auto; }
.pg-footer-inner { padding: 4rem 0; }
.pg-footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .pg-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.pg-footer-col h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.pg-footer-col ul { list-style: none; margin: 0; padding: 0; }
.pg-footer-col li { margin-bottom: 0.6rem; }
.pg-footer-col a { color: var(--pg-muted-2); font-size: 0.875rem; }
.pg-footer-col a:hover { color: var(--pg-yellow); text-decoration: none; }
.pg-footer-bottom {
	padding-top: 2rem; border-top: 1px solid var(--pg-border-2);
	display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .pg-footer-bottom { flex-direction: row; } }
.pg-footer-bottom p { margin: 0; font-size: 0.75rem; color: var(--pg-muted-2); }
.pg-footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.pg-footer-brand .pg-logo-mark { width: 1.5rem; height: 1.5rem; font-size: 0.8rem; }
.pg-footer-brand .pg-brand-text { font-size: 0.9rem; }

/* Utility */
.pg-text-center { text-align: center; }
.pg-mt-2 { margin-top: 2rem; }
.pg-mb-2 { margin-bottom: 2rem; }
