/*
Theme Name: Planet-Inside
Theme URI: https://planet-inside.com/
Author: Planet-Inside Editorial & Engineering Team
Author URI: https://planet-inside.com/about
Description: Production-ready, dark/light optimized WordPress theme engineered specifically for Planet-Inside AI intelligence, machine learning research, model benchmarks, and Software & Hardware Arena comparisons.
Version: 1.3.0
Requires at least: 6.2
Tested up to: 6.7
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: planet-inside
Tags: blog, news, technology, ai, dark-mode, custom-colors, full-site-editing, translation-ready, sticky-post
*/

/* ==========================================================================
   1. CSS Variables & Theming (Night Mode & Day Mode)
   ========================================================================== */
:root {
  --np-accent: #06b6d4;
  --np-accent-glow: #06b6d433;
  --np-secondary: #8b5cf6;
  --np-bg-primary: #030712;
  --np-bg-surface: #0a0f1d;
  --np-bg-card: rgba(15, 23, 42, 0.85);
  --np-bg-glass: rgba(15, 23, 42, 0.7);
  --np-border: rgba(148, 163, 184, 0.15);
  --np-border-active: #06b6d480;
  --np-text-primary: #f8fafc;
  --np-text-muted: #94a3b8;
  --np-font-heading: 'Space Grotesk', system-ui, sans-serif;
  --np-font-body: 'Inter', system-ui, sans-serif;
  --np-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --np-radius-sm: 8px;
  --np-radius-md: 12px;
  --np-radius-lg: 16px;
  --np-radius-xl: 24px;
}

/* Day Mode (Light Theme) */
body.np-day-mode,
body.np-theme-clean-light {
  --np-bg-primary: #f8fafc;
  --np-bg-surface: #ffffff;
  --np-bg-card: #ffffff;
  --np-bg-glass: rgba(255, 255, 255, 0.9);
  --np-border: rgba(203, 213, 225, 0.8);
  --np-border-active: #06b6d4;
  --np-text-primary: #0f172a;
  --np-text-muted: #64748b;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--np-bg-primary);
  color: var(--np-text-primary);
  font-family: var(--np-font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--np-font-heading);
  color: var(--np-text-primary);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-top: 0;
}

a {
  color: var(--np-accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  filter: brightness(1.15);
}

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

.np-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   2. Reading Progress Bar & News Ticker
   ========================================================================== */
.np-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 9999;
  transition: width 0.1s linear;
}

.np-ticker-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  background: var(--np-bg-surface);
  border-bottom: 1px solid var(--np-border);
  font-size: 0.8rem;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.np-ticker-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.np-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--np-accent);
  color: var(--np-accent);
  border-radius: var(--np-radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: var(--np-font-mono);
  white-space: nowrap;
}

.np-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--np-accent);
  box-shadow: 0 0 8px var(--np-accent);
  animation: npPulse 1.8s infinite;
}

@keyframes npPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.np-ticker-scroll {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--np-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.np-ticker-stats {
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--np-font-mono);
  font-size: 0.72rem;
  color: var(--np-text-muted);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .np-ticker-stats { display: flex; }
}

.np-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  border-radius: 6px;
  font-weight: 600;
}

/* ==========================================================================
   3. Site Header (Double-Line + Arena Battle Bar Row)
   ========================================================================== */
.np-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--np-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--np-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.np-header-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--np-border);
}

.np-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.np-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.np-logo-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.np-brand-text {
  display: flex;
  flex-direction: column;
}

.np-brand-main {
  font-family: var(--np-font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--np-text-primary);
  line-height: 1;
}

.np-brand-sub {
  font-family: var(--np-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--np-text-muted);
}

.np-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.np-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--np-radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--np-border);
  background: var(--np-bg-surface);
  color: var(--np-text-primary);
}

.np-btn:hover {
  border-color: var(--np-accent);
  transform: translateY(-1px);
}

.np-subscribe-btn {
  background: var(--np-accent);
  color: #030712;
  border-color: var(--np-accent);
  font-weight: 700;
}

.np-subscribe-btn:hover {
  filter: brightness(1.1);
  color: #030712;
}

.np-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  color: var(--np-accent);
  padding: 0.45rem 0.75rem;
  border-radius: var(--np-radius-md);
  font-family: var(--np-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* Header Bottom Line: Navigation Menu */
.np-header-bottom-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  overflow-x: auto;
}

.np-main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.np-main-navigation li a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--np-radius-sm);
  color: var(--np-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.np-main-navigation li a:hover,
.np-main-navigation li.current-menu-item a {
  background: var(--np-bg-surface);
  color: var(--np-text-primary);
  border: 1px solid var(--np-border);
}

/* ==========================================================================
   4. Row 3: Arena Battle Bar (Software Arena & Hardware Arena 02 Big Divs)
   ========================================================================== */
.np-arena-row {
  border-top: 1px solid var(--np-border);
  padding: 0.65rem 0;
}

/* Hide Arena Battle Bar when entering posts or pages */
body.single .np-arena-row,
body.page .np-arena-row,
body.single-post .np-arena-row,
body.singular .np-arena-row {
  display: none !important;
}

.np-arena-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .np-arena-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.np-arena-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--np-radius-lg);
  border: 1px solid var(--np-border);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.np-arena-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Software Arena Specific Card Styling */
.np-arena-card.software {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), var(--np-bg-surface));
  border-color: rgba(6, 182, 212, 0.3);
}

.np-arena-card.software:hover {
  border-color: rgba(6, 182, 212, 0.8);
}

/* Hardware Arena Specific Card Styling */
.np-arena-card.hardware {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), var(--np-bg-surface));
  border-color: rgba(245, 158, 11, 0.3);
}

.np-arena-card.hardware:hover {
  border-color: rgba(245, 158, 11, 0.8);
}

.np-arena-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.np-arena-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--np-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.np-arena-card.software .np-arena-icon {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.np-arena-card.hardware .np-arena-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.np-arena-info {
  min-width: 0;
}

.np-arena-header-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.np-arena-title {
  font-family: var(--np-font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.np-arena-card.software .np-arena-title {
  color: #06b6d4;
}

.np-arena-card.hardware .np-arena-title {
  color: #f59e0b;
}

.np-arena-badge {
  font-family: var(--np-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--np-border);
  background: var(--np-bg-primary);
  color: var(--np-text-muted);
}

.np-arena-desc {
  margin: 0.2rem 0 0 0;
  font-size: 0.75rem;
  color: var(--np-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-arena-cta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--np-radius-md);
  font-family: var(--np-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--np-border);
  background: var(--np-bg-primary);
  color: var(--np-text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .np-arena-cta { display: inline-flex; }
}

.np-arena-card:hover .np-arena-cta {
  background: var(--np-accent);
  color: #030712;
  border-color: var(--np-accent);
}

/* ==========================================================================
   5. Featured Post Hero Section
   ========================================================================== */
.np-featured-hero {
  margin: 2rem 0 3rem 0;
  background: var(--np-bg-card);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  transition: border-color 0.2s ease;
}

.np-featured-hero:hover {
  border-color: var(--np-border-active);
}

.np-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
}

@media (min-width: 1024px) {
  .np-featured-grid {
    grid-template-columns: 7fr 5fr;
    padding: 2.25rem;
    align-items: center;
  }
}

.np-featured-meta-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.np-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--np-accent);
  color: var(--np-accent);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--np-font-mono);
  text-transform: uppercase;
}

.np-model-pill {
  font-family: var(--np-font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  color: var(--np-text-muted);
}

.np-read-time {
  font-family: var(--np-font-mono);
  font-size: 0.75rem;
  color: var(--np-text-muted);
}

.np-featured-title {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0.5rem 0 1rem 0;
}

@media (min-width: 768px) {
  .np-featured-title { font-size: 2.25rem; }
}

.np-featured-title a {
  color: var(--np-text-primary);
}

.np-featured-title a:hover {
  color: var(--np-accent);
}

.np-featured-excerpt {
  color: var(--np-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.np-featured-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--np-border);
  gap: 1rem;
}

.np-author-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.np-author-cell img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--np-border);
}

.np-author-name {
  font-weight: 700;
  font-size: 0.85rem;
}

.np-author-role {
  font-size: 0.75rem;
  color: var(--np-text-muted);
}

.np-featured-media-box {
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  max-height: 380px;
  border: 1px solid var(--np-border);
}

.np-featured-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.np-featured-hero:hover .np-featured-media-box img {
  transform: scale(1.03);
}

/* ==========================================================================
   6. Main Content Layout (Feed + Sidebar)
   ========================================================================== */
.np-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .np-content-grid {
    grid-template-columns: 8fr 4fr;
  }
}

.np-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--np-border);
}

.np-feed-title {
  font-size: 1.4rem;
  margin: 0;
}

.np-live-indicator {
  font-family: var(--np-font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
}

/* Post Cards */
.np-posts-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.np-post-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--np-bg-card);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}

@media (min-width: 640px) {
  .np-post-card {
    grid-template-columns: 240px 1fr;
  }
}

.np-post-card:hover {
  border-color: var(--np-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.np-post-card-thumb {
  height: 180px;
  overflow: hidden;
  background: var(--np-bg-surface);
}

@media (min-width: 640px) {
  .np-post-card-thumb {
    height: 100%;
  }
}

.np-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.np-post-card:hover .np-post-card-thumb img {
  transform: scale(1.05);
}

.np-post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.np-post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-family: var(--np-font-mono);
  color: var(--np-text-muted);
  margin-bottom: 0.5rem;
}

.np-post-card-title {
  font-size: 1.15rem;
  margin: 0.25rem 0 0.5rem 0;
  line-height: 1.35;
}

.np-post-card-title a {
  color: var(--np-text-primary);
}

.np-post-card-title a:hover {
  color: var(--np-accent);
}

.np-post-card-excerpt {
  font-size: 0.85rem;
  color: var(--np-text-muted);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--np-border);
  font-size: 0.75rem;
}

/* ==========================================================================
   7. Sidebar Widgets
   ========================================================================== */
.np-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.np-widget {
  background: var(--np-bg-card);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.np-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--np-border);
}

.np-widget-title {
  font-size: 1rem;
  margin: 0;
  font-family: var(--np-font-heading);
}

.np-widget-subtitle {
  font-size: 0.78rem;
  color: var(--np-text-muted);
  margin: -0.5rem 0 1rem 0;
}

/* Benchmark Rows */
.np-benchmark-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.np-bm-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--np-font-mono);
  margin-bottom: 0.35rem;
}

.np-bm-bar {
  height: 8px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 9999px;
  overflow: hidden;
}

.np-bm-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--np-accent);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Prompt Items */
.np-prompt-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.np-prompt-item {
  padding: 0.85rem;
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-md);
  font-size: 0.8rem;
}

.np-prompt-item .np-tag {
  font-family: var(--np-font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--np-accent);
  font-weight: 700;
}

.np-prompt-item h4 {
  margin: 0.4rem 0 0.25rem 0;
  font-size: 0.85rem;
}

.np-prompt-item code {
  display: block;
  font-family: var(--np-font-mono);
  font-size: 0.72rem;
  color: var(--np-text-muted);
  background: var(--np-bg-primary);
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.4rem;
  word-break: break-all;
}

/* Newsletter Widget */
.np-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.np-newsletter-form input {
  padding: 0.65rem 0.85rem;
  border-radius: var(--np-radius-md);
  border: 1px solid var(--np-border);
  background: var(--np-bg-surface);
  color: var(--np-text-primary);
  font-size: 0.85rem;
}

.np-newsletter-form input:focus {
  outline: none;
  border-color: var(--np-accent);
}

.np-newsletter-form button {
  padding: 0.65rem;
  border-radius: var(--np-radius-md);
  border: none;
  background: var(--np-accent);
  color: #030712;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.np-newsletter-form button:hover {
  opacity: 0.9;
}

/* ==========================================================================
   8. Single Post View & AI Summary Box
   ========================================================================== */
.np-single-post-wrapper {
  max-width: 880px;
  margin: 2.5rem auto 4rem auto;
}

.np-entry-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--np-font-mono);
  font-size: 0.8rem;
  color: var(--np-text-muted);
  margin-bottom: 1rem;
}

.np-category-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--np-accent);
  color: var(--np-accent);
  font-weight: 700;
  font-size: 0.75rem;
}

.np-entry-title {
  font-size: 2.25rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .np-entry-title { font-size: 3rem; }
}

.np-entry-excerpt {
  font-size: 1.15rem;
  color: var(--np-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.np-author-strip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--np-border);
  border-bottom: 1px solid var(--np-border);
  margin-bottom: 2rem;
}

.np-author-strip img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.np-cover-img {
  width: 100%;
  border-radius: var(--np-radius-xl);
  margin-bottom: 2.5rem;
  border: 1px solid var(--np-border);
}

/* AI Executive Summary Card */
.np-ai-summary-box {
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border-active);
  border-left: 5px solid var(--np-accent);
  border-radius: var(--np-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0 2.5rem 0;
  box-shadow: 0 10px 30px -10px var(--np-accent-glow);
}

.np-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--np-accent);
  color: var(--np-accent);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--np-font-mono);
}

.np-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.np-summary-note {
  font-size: 0.72rem;
  color: var(--np-text-muted);
  font-family: var(--np-font-mono);
}

.np-summary-bullets {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--np-text-primary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.np-summary-bullets li {
  margin-bottom: 0.5rem;
}

/* Reading Content & Typography */
.np-entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--np-text-primary);
}

.np-entry-content p {
  margin-bottom: 1.5rem;
}

.np-entry-content h2 {
  font-size: 1.85rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--np-border);
}

.np-entry-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.np-entry-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--np-accent);
  background: var(--np-bg-surface);
  border-radius: 0 var(--np-radius-md) var(--np-radius-md) 0;
  font-style: italic;
}

/* Code Highlighting Block */
.np-code-block-wrapper {
  margin: 1.5rem 0;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-md);
  overflow: hidden;
  background: #090d16;
}

pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--np-font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.np-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  color: var(--np-text-muted);
  border-radius: var(--np-radius-sm);
  font-family: var(--np-font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  margin: 0.5rem;
  float: right;
  transition: all 0.2s;
}

.np-copy-button:hover {
  border-color: var(--np-accent);
  color: #ffffff;
}

/* Post Comments Section */
.np-comments-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--np-border);
}

.np-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.np-comment-form {
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.np-comment-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.np-comment-form input,
.np-comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--np-bg-primary);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-md);
  color: var(--np-text-primary);
  font-family: var(--np-font-body);
  font-size: 0.9rem;
}

.np-comment-form input:focus,
.np-comment-form textarea:focus {
  outline: none;
  border-color: var(--np-accent);
}

.np-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.np-comment-card {
  padding: 1.25rem;
  background: var(--np-bg-card);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-md);
}

.np-comment-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.np-comment-head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.np-comment-author-name {
  font-weight: 700;
  font-size: 0.85rem;
}

.np-comment-time {
  font-size: 0.75rem;
  color: var(--np-text-muted);
  font-family: var(--np-font-mono);
}

.np-comment-body {
  font-size: 0.9rem;
  color: var(--np-text-primary);
  line-height: 1.6;
}

/* ==========================================================================
   9. Arena Comparison Page Styling (.np-arena-page)
   ========================================================================== */
.np-arena-page {
  padding-bottom: 4rem;
}

.np-arena-page-hero {
  padding: 2rem;
  background: var(--np-bg-card);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-xl);
  margin-bottom: 2rem;
}

.np-arena-page-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.np-arena-selectors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .np-arena-selectors {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.np-arena-item-card {
  padding: 1.5rem;
  background: var(--np-bg-surface);
  border-radius: var(--np-radius-lg);
  border: 2px solid var(--np-border);
}

.np-arena-item-card.item-left {
  border-color: #06b6d4;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.np-arena-item-card.item-right {
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.np-arena-item-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--np-radius-md);
  margin-bottom: 1rem;
}

.np-arena-swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  color: var(--np-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
  transition: all 0.2s;
}

.np-arena-swap-btn:hover {
  transform: rotate(180deg);
  border-color: var(--np-accent);
}

.np-arena-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--np-bg-card);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.np-arena-comparison-table th,
.np-arena-comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--np-border);
  text-align: left;
}

.np-arena-comparison-table th {
  background: var(--np-bg-surface);
  font-family: var(--np-font-mono);
  font-size: 0.8rem;
  color: var(--np-text-muted);
}

/* Arena Summary Statistics & Win Rate Gauge */
.np-arena-summary-stats {
  background: var(--np-bg-card);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-xl);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.np-arena-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--np-border);
  margin-bottom: 1.5rem;
}

.np-arena-win-numbers {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.np-arena-win-rate-val {
  font-family: var(--np-font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.np-arena-split-bar {
  height: 24px;
  border-radius: 9999px;
  background: var(--np-bg-surface);
  overflow: hidden;
  display: flex;
  padding: 2px;
  margin-bottom: 1.5rem;
}

.np-arena-bar-left, .np-arena-bar-right {
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--np-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  transition: width 0.5s ease;
}

.np-arena-bar-left {
  border-radius: 9999px 0 0 9999px;
  padding-left: 0.75rem;
}

.np-arena-bar-right {
  border-radius: 0 9999px 9999px 0;
  justify-content: flex-end;
  padding-right: 0.75rem;
}

.np-arena-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .np-arena-stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.np-arena-stat-box {
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-md);
  padding: 0.85rem;
  font-family: var(--np-font-mono);
}

.np-arena-stat-label {
  font-size: 0.65rem;
  color: var(--np-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.np-arena-stat-value {
  font-size: 1rem;
  font-weight: 700;
}

.np-arena-chips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--np-border);
}

@media (min-width: 640px) {
  .np-arena-chips-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.np-arena-chip {
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-md);
  padding: 0.6rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--np-font-mono);
  font-size: 0.75rem;
}

/* Floating Back-to-Top Button */
.np-scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border);
  color: var(--np-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.np-scroll-top-btn.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.np-scroll-top-btn:hover {
  border-color: var(--np-accent);
  background: var(--np-accent);
  color: #030712;
  transform: translateY(-2px);
}

/* ==========================================================================
   10. Site Footer & Newsletter Subscription
   ========================================================================== */
.np-site-footer {
  margin-top: auto;
  background: var(--np-bg-surface);
  border-top: 1px solid var(--np-border);
  padding: 3.5rem 0 1.5rem 0;
  font-size: 0.85rem;
  color: var(--np-text-muted);
}

/* Newsletter Component in Footer */
.np-footer-newsletter {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--np-border);
  border-radius: 1rem;
  padding: 2rem 2.25rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
}

.np-newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .np-newsletter-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.np-newsletter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--np-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--np-border);
  margin-bottom: 0.85rem;
}

.np-newsletter-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--np-text-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.np-newsletter-sub {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--np-text-muted);
  margin: 0;
}

.np-newsletter-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .np-newsletter-input-group {
    flex-direction: row;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--np-border);
    border-radius: 0.65rem;
    padding: 0.35rem;
  }
}

.np-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.6rem 0.85rem;
  font-family: var(--np-font-mono);
  font-size: 0.85rem;
  color: var(--np-text-primary);
  outline: none;
}

.np-newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--np-accent);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.np-newsletter-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.np-newsletter-meta {
  margin-top: 0.65rem;
  font-family: var(--np-font-mono);
  font-size: 0.72rem;
  color: var(--np-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.np-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.np-footer-col h4 {
  font-size: 0.95rem;
  color: var(--np-text-primary);
  margin-bottom: 1rem;
}

.np-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.np-footer-col ul li a {
  color: var(--np-text-muted);
  transition: color 0.15s;
}

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

.np-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--np-border);
}

.np-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .np-bottom-inner {
    flex-direction: row;
  }
}
