/*
Theme Name: Ping Reboot
Theme URI: https://pingreboot.co.uk
Author: PingReboot
Author URI: https://pingreboot.co.uk
Description: The UK's definitive technical resource for ping reboot configuration on industrial cellular routers. Dark, professional theme with custom post types for router guides, explainers, and products.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: ping-reboot
Tags: dark, technical, iot, industrial, one-column, custom-menu, featured-images, custom-logo
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #151c2c;
    --bg-card-hover: #1a2236;
    --bg-input: #151c2c;
    --border: #1e2a3f;
    --border-accent: #2563eb;
    --text-primary: #e8edf5;
    --text-secondary: #b8c2d4;
    --text-muted: #5a6478;
    --accent: #3b82f6;
    --accent-bright: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-dark: #1e40af;
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.12);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.12);
    --amber: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.12);
    --mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --max-width: 1200px;
    --nav-height: 64px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
    font-weight: 700;
}

h1 { font-size: clamp(28px, 5vw, 48px); letter-spacing: -1px; }
h2 { font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.8px; }
h3 { font-size: clamp(18px, 3vw, 24px); }
h4 { font-size: 18px; }

p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 16px;
}

code, pre {
    font-family: var(--mono);
}

pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.8;
    margin: 24px 0;
    color: var(--text-secondary);
}

code {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent-bright);
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-glow);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
    font-style: italic;
}

hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

ul, ol {
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

th {
    text-align: left;
    padding: 14px 18px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

tr:hover td {
    background: var(--accent-glow);
}

/* ============================================
   LAYOUT
   ============================================ */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-content {
    flex: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.site-logo-icon::before {
    content: '>';
    font-family: var(--mono);
    color: white;
    font-weight: 700;
    font-size: 17px;
}

.site-logo-text {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.site-logo-text span {
    color: var(--accent);
}

/* Primary Menu */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a,
.primary-menu .current_page_item a {
    color: var(--accent-bright);
    background: var(--accent-glow);
}

.primary-menu .menu-item-cta a {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.primary-menu .menu-item-cta a:hover {
    background: var(--accent-dark);
}

/* Sub menus */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 220px;
    list-style: none;
    z-index: 200;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.primary-menu li {
    position: relative;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    
    .primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
    }
    
    .primary-menu.is-open {
        display: flex;
    }
    
    .primary-menu a {
        display: block;
        padding: 12px 16px;
    }
    
    .primary-menu .sub-menu {
        position: static;
        border: none;
        padding: 0 0 0 16px;
        box-shadow: none;
        background: transparent;
        display: none;
    }
    
    .primary-menu li.is-open > .sub-menu {
        display: block;
    }
}

/* ============================================
   HERO (Front Page)
   ============================================ */
.hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px 6px 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-bright), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 20px auto 36px;
    line-height: 1.7;
}

/* Terminal Block */
.terminal-block {
    max-width: 580px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: var(--red); opacity: 0.7; }
.terminal-dot:nth-child(2) { background: var(--amber); opacity: 0.7; }
.terminal-dot:nth-child(3) { background: var(--green); opacity: 0.7; }

.terminal-body {
    padding: 16px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.9;
}

.term-prompt { color: var(--green); }
.term-cmd { color: var(--text-primary); }
.term-output { color: var(--text-muted); }
.term-success { color: var(--green); }
.term-fail { color: var(--red); }

.term-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section {
    padding: 60px 0;
}

.section-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

/* ============================================
   CARDS (Generic)
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card a {
    text-decoration: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

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

/* ============================================
   ROUTER GUIDE CARDS
   ============================================ */
.router-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.badge {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.badge-brand {
    color: var(--accent);
    background: var(--accent-glow);
}

.badge-category {
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
}

.badge-green {
    color: var(--green);
    background: var(--green-dim);
}

.badge-amber {
    color: var(--amber);
    background: var(--amber-dim);
}

.badge-red {
    color: var(--red);
    background: var(--red-dim);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card h3 a {
    color: var(--text-primary);
}

.card h3 a:hover {
    color: var(--accent-bright);
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.tag-list li {
    margin: 0;
}

.tag-list a,
.tag-item {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 4px;
    transition: all 0.2s;
}

.tag-list a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.2s;
}

.card:hover .card-link {
    gap: 10px;
}

/* ============================================
   EXPLAINER / KNOWLEDGE BASE
   ============================================ */
.explainer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .explainer-layout {
        grid-template-columns: 1fr;
    }
}

.ping-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ping-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border);
    transition: all 0.3s;
}

.ping-step:hover {
    border-left-color: var(--accent);
    background: var(--accent-glow);
}

.ping-step-num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 6px;
    flex-shrink: 0;
}

.ping-step-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.ping-step-text strong {
    color: var(--text-primary);
}

.ping-step.step-success { border-left-color: var(--green); }
.ping-step.step-success .ping-step-num { color: var(--green); background: var(--green-dim); }
.ping-step.step-fail { border-left-color: var(--red); }
.ping-step.step-fail .ping-step-num { color: var(--red); background: var(--red-dim); }

/* ============================================
   CONTENT WITH SIDEBAR
   ============================================ */
.content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .content-sidebar-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-widget {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.sidebar-widget p {
    font-size: 14px;
    line-height: 1.6;
}

/* CTA Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    font-family: var(--sans);
}

.btn:hover {
    background: var(--accent-dark);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* Sidebar features list */
.sidebar-features {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.sidebar-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.sidebar-features li:last-child {
    border-bottom: none;
}

.sidebar-feature-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-glow);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.sidebar-feature-text h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.sidebar-feature-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .separator {
    opacity: 0.4;
}

/* ============================================
   BLOG / NEWS CARDS
   ============================================ */
.blog-card .card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.blog-card .card-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   VIDEO EMBED AREA
   ============================================ */
.video-embed-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
}

.video-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   CONFIG BLOCK (for router settings)
   ============================================ */
.config-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 2;
}

.config-block .config-key {
    color: var(--text-muted);
}

.config-block .config-val {
    color: var(--green);
}

.config-block .config-val-num {
    color: var(--accent-bright);
}

.config-block .config-val-warn {
    color: var(--amber);
}

/* ============================================
   SINGLE POST / PAGE CONTENT
   ============================================ */
.entry-header {
    margin-bottom: 32px;
}

.entry-header .entry-title {
    margin-bottom: 16px;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.entry-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-primary);
}

.entry-content h2 {
    margin: 40px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.entry-content h3 {
    margin: 32px 0 12px;
}

.entry-content p {
    margin-bottom: 18px;
}

.entry-content img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 24px 0;
}

.entry-content a {
    color: var(--accent-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--accent);
}

/* WP Block Styles */
.entry-content .wp-block-table {
    overflow-x: auto;
}

.entry-content .wp-block-image {
    margin: 24px 0;
}

.entry-content .wp-block-embed {
    margin: 24px 0;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    margin: 24px 0;
}

.comparison-table-wrap table {
    margin: 0;
}

.check-yes {
    color: var(--green);
    font-weight: bold;
}

.check-no {
    color: var(--red);
    opacity: 0.5;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card .product-image {
    aspect-ratio: 4/3;
    background: #ffffff !important;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-card .product-price {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-bright);
    margin-bottom: 8px;
}

/* ============================================
   SEARCH
   ============================================ */
.search-form {
    max-width: 480px;
    position: relative;
}

.search-form .search-field {
    width: 100%;
    padding: 14px 18px 14px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--sans);
    outline: none;
    transition: border-color 0.2s;
}

.search-form .search-field::placeholder {
    color: var(--text-muted);
}

.search-form .search-field:focus {
    border-color: var(--accent);
}

.search-form .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-form .search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--sans);
}

/* Hero search variant */
.hero .search-form {
    margin: 36px auto 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

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

.pagination .page-numbers.current {
    font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin: 0;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 80px 24px;
}

.error-404 .error-code {
    font-family: var(--mono);
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 800;
    color: var(--border);
    letter-spacing: -4px;
    line-height: 1;
}

/* ============================================
   STATS ROW
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat-value {
    font-family: var(--mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-bright);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--sans);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

/* ============================================
   WORDPRESS ALIGNMENT & UTILITY
   ============================================ */
.alignleft {
    float: left;
    margin: 0 24px 16px 0;
}

.alignright {
    float: right;
    margin: 0 0 16px 24px;
}

.aligncenter {
    display: block;
    margin: 24px auto;
}

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-nav,
    .nav-toggle,
    .sidebar-widget,
    .site-footer,
    .search-form,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: #333;
    }
    
    .entry-content {
        color: #333;
    }
    
    a {
        color: #333;
    }
}


/* ============================================
   ROUTER CARD — IMAGE BOX
   ============================================ */

.router-card-image-wrap {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.router-card-image-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}