/*
Theme Name: NeonPlay
Theme URI: https://example.com/neonplay
Author: NeonPlay
Author URI: https://example.com
Description: A modern, dark gaming news & blog theme with vibrant neon gradients, glowing cards, and smooth animations. Built for gaming magazines, esports blogs, and entertainment news sites. Fully responsive and translation-ready (Thai & English).
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neonplay
Tags: blog, news, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, dark-mode, translation-ready, gaming
*/

/* =========================================================
   1. DESIGN TOKENS (CSS Variables)
   ========================================================= */
:root {
    /* Backgrounds (Joker123 style: deep warm near-black with a red undertone) */
    --np-bg: #0f0608;
    --np-bg-alt: #160a0c;
    --np-surface: #1e0d10;
    --np-surface-2: #2a1316;
    --np-surface-3: #381b1f;

    /* Text (warm neutrals) */
    --np-text: #faf6f4;
    --np-text-muted: #c2b2ad;
    --np-text-dim: #8a7a76;

    /* Accents (gold + red) */
    --np-accent: #ffc20e;
    --np-accent-2: #e3000f;
    --np-accent-3: #9e0008;
    --np-accent-cyan: #ffd54a;

    /* Gradients (gold -> red) */
    --np-gradient: linear-gradient(135deg, #ffc20e 0%, #ff5a00 45%, #e3000f 100%);
    --np-gradient-soft: linear-gradient(135deg, rgba(255,194,14,.16) 0%, rgba(227,0,15,.16) 100%);
    --np-gradient-cyan: linear-gradient(135deg, #ffc20e 0%, #e3000f 100%);

    /* Borders & shadows */
    --np-border: rgba(255, 214, 150, 0.10);
    --np-border-strong: rgba(255, 214, 150, 0.22);
    --np-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    --np-glow: 0 0 30px rgba(227, 0, 15, 0.40);

    /* Layout */
    --np-container: 1240px;
    --np-radius: 16px;
    --np-radius-sm: 10px;
    --np-radius-lg: 24px;

    /* Typography */
    --np-font-head: 'Kanit', 'Segoe UI', sans-serif;
    --np-font-body: 'Sarabun', 'Segoe UI', sans-serif;

    /* Transitions */
    --np-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--np-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--np-text);
    background-color: var(--np-bg);
    background-image:
        radial-gradient(900px circle at 12% -5%, rgba(139, 92, 246, 0.12), transparent 45%),
        radial-gradient(900px circle at 95% 0%, rgba(255, 46, 142, 0.10), transparent 45%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--np-accent-2); text-decoration: none; transition: color .2s var(--np-ease); }
a:hover { color: var(--np-accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--np-font-head);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 .6em;
    color: var(--np-text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1.2em; }

ul, ol { padding-left: 1.4em; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 4px solid transparent;
    border-image: var(--np-gradient) 1;
    background: var(--np-surface);
    border-radius: var(--np-radius-sm);
    color: var(--np-text-muted);
    font-style: italic;
}

code, pre {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: var(--np-surface-2);
    border-radius: 6px;
}
code { padding: .15em .45em; font-size: .9em; color: var(--np-accent-cyan); }
pre { padding: 1.2em; overflow-x: auto; border: 1px solid var(--np-border); }
pre code { background: none; padding: 0; color: var(--np-text); }

::selection { background: var(--np-accent-2); color: #fff; }

/* =========================================================
   3. LAYOUT HELPERS
   ========================================================= */
.np-container {
    width: 100%;
    max-width: var(--np-container);
    margin: 0 auto;
    padding: 0 24px;
}

.np-main { padding: 48px 0 80px; }

.np-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}
.np-layout.np-full { grid-template-columns: minmax(0, 1fr); }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--np-accent-2);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--np-radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================
   4. BUTTONS
   ========================================================= */
.np-btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-family: var(--np-font-head);
    font-weight: 500;
    font-size: .95rem;
    padding: 12px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background: var(--np-gradient);
    background-size: 180% 180%;
    background-position: 0% 50%;
    transition: background-position .5s var(--np-ease), transform .25s var(--np-ease), box-shadow .25s var(--np-ease);
    box-shadow: 0 8px 24px rgba(255, 46, 142, 0.25);
}
.np-btn:hover {
    color: #fff;
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 46, 142, 0.4);
}
.np-btn-ghost {
    background: transparent;
    border: 1px solid var(--np-border-strong);
    box-shadow: none;
}
.np-btn-ghost:hover {
    background: var(--np-surface-2);
    border-color: var(--np-accent-2);
    box-shadow: none;
}

/* =========================================================
   5. HEADER / NAVIGATION
   ========================================================= */
.np-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background .3s var(--np-ease), box-shadow .3s var(--np-ease), backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.np-header.is-scrolled {
    background: rgba(10, 12, 20, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--np-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.np-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}

/* Logo */
.np-logo { display: flex; align-items: center; gap: 12px; }
.np-logo img { max-height: 44px; width: auto; }
.np-logo-text {
    font-family: var(--np-font-head);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -.02em;
    background: var(--np-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.np-tagline { color: var(--np-text-dim); font-size: .78rem; margin: 0; }

/* Primary menu */
.np-nav { display: flex; align-items: center; gap: 8px; }
.np-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.np-menu li { position: relative; }
.np-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--np-text-muted);
    font-family: var(--np-font-head);
    font-weight: 400;
    font-size: .98rem;
    border-radius: 999px;
    transition: color .2s var(--np-ease), background .2s var(--np-ease);
}
.np-menu a:hover,
.np-menu .current-menu-item > a,
.np-menu .current_page_item > a {
    color: var(--np-text);
    background: var(--np-surface-2);
}

/* Dropdown submenu */
.np-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-sm);
    box-shadow: var(--np-shadow);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s var(--np-ease);
    z-index: 50;
}
.np-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.np-menu .sub-menu a { border-radius: 8px; }
.np-menu .sub-menu li { width: 100%; }

/* Header actions */
.np-header-actions { display: flex; align-items: center; gap: 10px; }
.np-icon-btn {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--np-surface-2);
    border: 1px solid var(--np-border);
    color: var(--np-text);
    cursor: pointer;
    transition: all .25s var(--np-ease);
}
.np-icon-btn:hover { color: #fff; border-color: var(--np-accent-2); box-shadow: var(--np-glow); }
.np-icon-btn svg { width: 20px; height: 20px; }

/* Mobile toggle */
.np-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: var(--np-surface-2);
    border: 1px solid var(--np-border);
    border-radius: 12px;
    cursor: pointer;
}
.np-burger span {
    display: block;
    width: 20px; height: 2px;
    margin: 0 auto;
    background: var(--np-text);
    border-radius: 2px;
    transition: transform .3s var(--np-ease), opacity .3s var(--np-ease);
}
.np-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.np-burger.is-open span:nth-child(2) { opacity: 0; }
.np-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.np-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 12, 20, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--np-ease), visibility .3s;
}
.np-search-overlay.is-open { opacity: 1; visibility: visible; }
.np-search-overlay .search-form { width: min(640px, 90vw); }
.np-search-close {
    position: absolute;
    top: 28px; right: 28px;
    width: 48px; height: 48px;
    font-size: 1.6rem;
    background: var(--np-surface-2);
    border: 1px solid var(--np-border);
    border-radius: 50%;
    color: var(--np-text);
    cursor: pointer;
}

/* =========================================================
   6. SEARCH FORM
   ========================================================= */
.search-form { display: flex; gap: 8px; }
.search-form .search-field {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: var(--np-font-body);
    color: var(--np-text);
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: 999px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.search-form .search-field:focus { border-color: var(--np-accent-2); box-shadow: var(--np-glow); }
.search-form .search-field::placeholder { color: var(--np-text-dim); }
.search-form .search-submit { flex-shrink: 0; }

/* =========================================================
   7. HERO (Front Page)
   ========================================================= */
.np-hero {
    position: relative;
    padding: 80px 0 64px;
    overflow: hidden;
}
.np-hero::before,
.np-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    z-index: 0;
    animation: npFloat 14s ease-in-out infinite;
}
.np-hero::before { width: 420px; height: 420px; background: var(--np-accent-2); top: -120px; left: -80px; }
.np-hero::after { width: 380px; height: 380px; background: var(--np-accent); bottom: -140px; right: -60px; animation-delay: -7s; }

.np-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.np-hero .np-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 22px;
    font-family: var(--np-font-head);
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--np-text);
    background: var(--np-surface-2);
    border: 1px solid var(--np-border);
    border-radius: 999px;
}
.np-hero .np-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--np-accent);
    box-shadow: 0 0 12px var(--np-accent);
}
.np-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    margin-bottom: .35em;
    letter-spacing: -.02em;
}
.np-hero h1 .np-grad {
    background: var(--np-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.np-hero p { font-size: 1.15rem; color: var(--np-text-muted); margin-bottom: 2em; }
.np-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@keyframes npFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.08); }
}

/* =========================================================
   8. SECTION HEADINGS
   ========================================================= */
.np-section { padding: 56px 0; }
.np-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}
.np-section-head h2 { margin: 0; display: flex; align-items: center; gap: 14px; }
.np-section-head h2::before {
    content: "";
    width: 6px; height: 1.1em;
    border-radius: 999px;
    background: var(--np-gradient);
}
.np-section-head .np-link-more {
    font-family: var(--np-font-head);
    font-size: .95rem;
    color: var(--np-text-muted);
    white-space: nowrap;
}
.np-section-head .np-link-more:hover { color: var(--np-accent-2); }

/* =========================================================
   9. POST GRID & CARDS
   ========================================================= */
.np-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.np-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.np-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    overflow: hidden;
    transition: transform .35s var(--np-ease), border-color .35s var(--np-ease), box-shadow .35s var(--np-ease);
}
.np-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--np-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s var(--np-ease);
    pointer-events: none;
}
.np-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--np-shadow);
}
.np-card:hover::after { opacity: 1; }

.np-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--np-surface-2);
}
.np-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--np-ease);
}
.np-card:hover .np-card-thumb img { transform: scale(1.08); }
.np-card-thumb .np-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: var(--np-gradient-soft);
    color: var(--np-text-dim);
    font-family: var(--np-font-head);
    font-size: 2rem;
}

.np-card-cat {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    display: inline-flex;
    padding: 5px 14px;
    font-family: var(--np-font-head);
    font-size: .76rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
    background: rgba(10, 12, 20, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid var(--np-border-strong);
    border-radius: 999px;
}
.np-card-cat:hover { color: #fff; background: var(--np-accent-2); }

.np-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.np-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    font-size: .82rem;
    color: var(--np-text-dim);
}
.np-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.np-card-meta svg { width: 15px; height: 15px; opacity: .7; }

.np-card-title { font-size: 1.2rem; margin: 0 0 10px; }
.np-card-title a { color: var(--np-text); transition: color .2s; }
.np-card-title a:hover { color: var(--np-accent-2); }
.np-card-excerpt { color: var(--np-text-muted); font-size: .95rem; margin: 0 0 18px; }
.np-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.np-readmore {
    font-family: var(--np-font-head);
    font-size: .9rem;
    color: var(--np-accent-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.np-readmore svg { width: 16px; height: 16px; transition: transform .25s var(--np-ease); }
.np-card:hover .np-readmore svg { transform: translateX(4px); }

/* Featured (large) card */
.np-card-featured { grid-column: span 2; }
.np-card-featured .np-card-thumb { aspect-ratio: 21 / 9; }
.np-card-featured .np-card-title { font-size: 1.6rem; }

/* Fallback for older browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    .np-card-thumb { height: 0; padding-bottom: 62.5%; }
    .np-card-thumb img,
    .np-card-thumb .np-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .np-card-featured .np-card-thumb { padding-bottom: 42.85%; }
}

/* =========================================================
   10. CATEGORY CHIPS
   ========================================================= */
.np-cats { display: flex; flex-wrap: wrap; gap: 12px; }
.np-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: 999px;
    font-family: var(--np-font-head);
    color: var(--np-text-muted);
    transition: all .25s var(--np-ease);
}
.np-chip:hover {
    color: #fff;
    border-color: transparent;
    background: var(--np-gradient);
    transform: translateY(-3px);
}
.np-chip .count {
    font-size: .8rem;
    padding: 1px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
}

/* =========================================================
   11. SINGLE POST & PAGE
   ========================================================= */
.np-article-header { margin-bottom: 32px; }
.np-article-header .np-card-cat { position: static; margin-bottom: 16px; }
.np-article-header h1 { margin-bottom: 18px; }
.np-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: var(--np-text-dim);
    font-size: .9rem;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--np-border);
}
.np-article-meta .np-author { display: flex; align-items: center; gap: 10px; }
.np-article-meta .np-author img { width: 36px; height: 36px; border-radius: 50%; }

.np-featured-image {
    margin: 0 0 36px;
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    border: 1px solid var(--np-border);
}

.np-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #d9deee;
}
.np-content > * { margin-bottom: 1.3em; }
.np-content h2, .np-content h3, .np-content h4 { margin-top: 1.6em; }
.np-content img, .np-content figure { border-radius: var(--np-radius-sm); }
.np-content figure { margin: 1.6em 0; }
.np-content figcaption { text-align: center; color: var(--np-text-dim); font-size: .85rem; margin-top: .6em; }
.np-content a { text-decoration: underline; text-underline-offset: 3px; }
.np-content ul li::marker { color: var(--np-accent-2); }
.np-content ol li::marker { color: var(--np-accent-2); font-family: var(--np-font-head); }

/* Tags */
.np-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0; }
.np-tags a {
    padding: 6px 14px;
    font-size: .85rem;
    color: var(--np-text-muted);
    background: var(--np-surface-2);
    border: 1px solid var(--np-border);
    border-radius: 999px;
}
.np-tags a:hover { color: #fff; background: var(--np-surface-3); border-color: var(--np-accent-2); }

/* Author box */
.np-author-box {
    display: flex;
    gap: 20px;
    padding: 28px;
    margin: 40px 0;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
}
.np-author-box img { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.np-author-box h4 { margin: 0 0 6px; }
.np-author-box p { margin: 0; color: var(--np-text-muted); font-size: .95rem; }

/* Post navigation */
.np-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}
.np-post-nav a {
    display: block;
    padding: 22px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    transition: all .3s var(--np-ease);
}
.np-post-nav a:hover { border-color: var(--np-accent-2); transform: translateY(-3px); }
.np-post-nav .np-nav-label { font-size: .8rem; color: var(--np-text-dim); display: block; margin-bottom: 6px; }
.np-post-nav .np-nav-title { font-family: var(--np-font-head); color: var(--np-text); }
.np-post-nav .next { text-align: right; }

/* =========================================================
   12. SIDEBAR & WIDGETS
   ========================================================= */
.np-sidebar { position: sticky; top: 100px; }
.np-widget {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
}
.np-widget-title {
    font-size: 1.05rem;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--np-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.np-widget-title::before {
    content: "";
    width: 4px; height: 1.1em;
    border-radius: 999px;
    background: var(--np-gradient);
}
.np-widget ul { list-style: none; padding: 0; margin: 0; }
.np-widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--np-border);
}
.np-widget ul li:last-child { border-bottom: none; }
.np-widget ul li a { color: var(--np-text-muted); }
.np-widget ul li a:hover { color: var(--np-accent-2); }
.np-widget select {
    width: 100%;
    padding: 10px 14px;
    background: var(--np-surface-2);
    color: var(--np-text);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-sm);
}

/* =========================================================
   13. COMMENTS
   ========================================================= */
.np-comments { margin-top: 48px; }
.np-comments .comment-list { list-style: none; padding: 0; margin: 0; }
.np-comments .comment-list ul.children { list-style: none; padding-left: 28px; }
.np-comments .comment-body {
    padding: 22px;
    margin-bottom: 18px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
}
.np-comments .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.np-comments .comment-author img { border-radius: 50%; }
.np-comments .comment-author .fn { font-family: var(--np-font-head); font-style: normal; color: var(--np-text); }
.np-comments .comment-metadata { font-size: .8rem; color: var(--np-text-dim); }
.np-comments .reply a {
    font-size: .85rem;
    font-family: var(--np-font-head);
    color: var(--np-accent-2);
}

.comment-respond {
    margin-top: 32px;
    padding: 28px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-family: var(--np-font-body);
    font-size: 1rem;
    color: var(--np-text);
    background: var(--np-surface-2);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-sm);
    outline: none;
    transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--np-accent-2); }
.comment-form .form-submit input { width: auto; }

/* =========================================================
   14. PAGINATION
   ========================================================= */
.np-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.np-pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 46px; height: 46px;
    padding: 0 14px;
    font-family: var(--np-font-head);
    color: var(--np-text-muted);
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: 12px;
    transition: all .25s var(--np-ease);
}
.np-pagination .page-numbers:hover,
.np-pagination .page-numbers.current {
    color: #fff;
    border-color: transparent;
    background: var(--np-gradient);
}

/* =========================================================
   15. FOOTER
   ========================================================= */
.np-footer {
    margin-top: 80px;
    background: var(--np-bg-alt);
    border-top: 1px solid var(--np-border);
}
.np-footer-top {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0 48px;
}
.np-footer-about p { color: var(--np-text-muted); font-size: .95rem; }
.np-footer-col h4 {
    font-size: 1rem;
    margin-bottom: 18px;
}
.np-footer-col ul { list-style: none; padding: 0; margin: 0; }
.np-footer-col ul li { margin-bottom: 10px; }
.np-footer-col ul li a { color: var(--np-text-muted); font-size: .95rem; }
.np-footer-col ul li a:hover { color: var(--np-accent-2); }

.np-social { display: flex; gap: 12px; margin-top: 20px; }
.np-social a {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--np-surface-2);
    border: 1px solid var(--np-border);
    color: var(--np-text-muted);
    transition: all .25s var(--np-ease);
}
.np-social a:hover { color: #fff; background: var(--np-gradient); border-color: transparent; transform: translateY(-3px); }
.np-social svg { width: 20px; height: 20px; }

.np-footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--np-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--np-text-dim);
    font-size: .9rem;
}

/* =========================================================
   16. 404 & EMPTY STATES
   ========================================================= */
.np-empty { text-align: center; padding: 80px 20px; }
.np-empty .np-404 {
    font-family: var(--np-font-head);
    font-weight: 700;
    font-size: clamp(5rem, 18vw, 11rem);
    line-height: 1;
    background: var(--np-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.np-empty p { color: var(--np-text-muted); max-width: 460px; margin: 14px auto 28px; }

/* =========================================================
   17. SCROLL ANIMATIONS
   ========================================================= */
.np-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--np-ease), transform .7s var(--np-ease);
}
.np-reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* =========================================================
   18. WORDPRESS CORE CLASSES
   ========================================================= */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; color: var(--np-text-dim); font-size: .85rem; }
.sticky .np-card { border-color: var(--np-accent-2); }
.bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item img { border-radius: var(--np-radius-sm); }

/* =========================================================
   19. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .np-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .np-layout { grid-template-columns: 1fr; }
    .np-sidebar { position: static; }
    .np-card-featured { grid-column: span 1; }
    .np-grid-2 { grid-template-columns: 1fr; }

    /* Mobile nav */
    .np-burger { display: flex; }
    .np-nav {
        position: fixed;
        top: 76px;
        right: 0;
        bottom: 0;
        width: min(320px, 84vw);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        background: var(--np-bg-alt);
        border-left: 1px solid var(--np-border);
        transform: translateX(100%);
        transition: transform .35s var(--np-ease);
        overflow-y: auto;
    }
    .np-nav.is-open { transform: translateX(0); }
    .np-menu { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
    .np-menu a { padding: 14px 18px; }
    .np-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--np-surface);
        margin: 4px 0 4px 16px;
    }
}

@media (max-width: 600px) {
    .np-container { padding: 0 18px; }
    .np-section { padding: 40px 0; }
    .np-hero { padding: 56px 0 40px; }
    .np-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .np-post-nav { grid-template-columns: 1fr; }
    .np-footer-top { grid-template-columns: 1fr; gap: 32px; }
    .np-footer-bottom { flex-direction: column; text-align: center; }
    .np-author-box { flex-direction: column; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
