/*
Theme Name:   Political Pulse
Theme URI:    https://yoursite.com/political-pulse-theme
Author:       Tu Nombre
Description:  Theme oficial para el plugin Political Pulse. Diseño editorial oscuro con tipografía expresiva — estilo magazine de noticias políticas. Optimizado para trabajar con el plugin Political Pulse.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License:      GPL-2.0-or-later
Text Domain:  political-pulse-theme
Tags:         dark, news, politics, bold, editorial, one-column, two-columns, custom-header, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  /* Colors */
  --pp-bg:        #080a0f;
  --pp-surface:   #0f1219;
  --pp-surface2:  #151923;
  --pp-surface3:  #1c2130;
  --pp-border:    #1e2639;
  --pp-border2:   #263044;
  --pp-accent:    #e63946;
  --pp-accent2:   #f4a261;
  --pp-accent3:   #4cc9f0;
  --pp-gold:      #d4af37;
  --pp-green:     #2dc97a;
  --pp-text:      #edf0f7;
  --pp-text2:     #c8cdd8;
  --pp-muted:     #7a8499;
  --pp-muted2:    #4e5870;

  /* Typography */
  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-heading: 'DM Serif Display', 'Georgia', serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,.5);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.6);
  --shadow-accent: 0 8px 40px rgba(230,57,70,.25);

  /* Transitions */
  --t-fast:   .15s ease;
  --t-normal: .25s ease;
  --t-slow:   .4s ease;

  /* Layout */
  --max-w:      1240px;
  --max-w-sm:   760px;
  --header-h:   72px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--pp-bg);
  color: var(--pp-text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--pp-bg); }
::-webkit-scrollbar-thumb { background: var(--pp-border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pp-accent); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--pp-text);
  line-height: 1.15;
  letter-spacing: -.2px;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

p { color: var(--pp-text2); font-size: .97rem; line-height: 1.75; margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pp-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--pp-text); }

strong, b { font-weight: 700; color: var(--pp-text); }
em, i     { font-style: italic; }
small     { font-size: .82rem; color: var(--pp-muted); }

ul, ol { padding-left: 1.5em; color: var(--pp-text2); }
li { margin-bottom: .4em; }

blockquote {
  border-left: 3px solid var(--pp-accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--pp-surface2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--pp-text);
}
blockquote cite { display: block; font-size: .8rem; color: var(--pp-muted); font-style: normal; margin-top: 8px; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--pp-surface3);
  border: 1px solid var(--pp-border);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--pp-accent3);
}
pre {
  background: var(--pp-surface2);
  border: 1px solid var(--pp-border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}
pre code { background: none; border: none; padding: 0; }

hr {
  border: none;
  border-top: 1px solid var(--pp-border);
  margin: 40px 0;
}

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

table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; margin: 24px 0;
}
th {
  background: var(--pp-surface2); color: var(--pp-muted);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .6px;
  padding: 10px 16px; text-align: left;
  border-bottom: 1px solid var(--pp-border2);
}
td { padding: 12px 16px; border-bottom: 1px solid var(--pp-border); color: var(--pp-text2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(230,57,70,.03); }

/* ── Forms ──────────────────────────────────────────────────── */
input, textarea, select {
  font-family: var(--font-body);
  background: var(--pp-surface2);
  border: 1.5px solid var(--pp-border);
  border-radius: var(--r-md);
  color: var(--pp-text);
  font-size: .93rem;
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 3px rgba(230,57,70,.15);
}
textarea { resize: vertical; min-height: 120px; }
label { display: block; color: var(--pp-muted); font-size: .83rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
::placeholder { color: var(--pp-muted2); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn, button[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  border: none;
  transition: all var(--t-normal);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary, button[type="submit"] {
  background: var(--pp-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover, button[type="submit"]:hover {
  background: #c9303d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(230,57,70,.35);
}
.btn-outline {
  background: transparent;
  color: var(--pp-text);
  border: 1.5px solid var(--pp-border2);
}
.btn-outline:hover {
  border-color: var(--pp-accent);
  color: var(--pp-accent);
}
.btn-ghost {
  background: transparent;
  color: var(--pp-muted);
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--pp-text); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: var(--max-w-sm); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-xl) 0; }

/* ── Badge / Pill ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.badge-red    { background: rgba(230,57,70,.12); color: var(--pp-accent); border: 1px solid rgba(230,57,70,.25); }
.badge-gold   { background: rgba(212,175,55,.1);  color: var(--pp-gold);   border: 1px solid rgba(212,175,55,.25); }
.badge-green  { background: rgba(45,201,122,.1);  color: var(--pp-green);  border: 1px solid rgba(45,201,122,.25); }
.badge-blue   { background: rgba(76,201,240,.1);  color: var(--pp-accent3);border: 1px solid rgba(76,201,240,.25); }
.badge-muted  { background: var(--pp-surface3);   color: var(--pp-muted);  border: 1px solid var(--pp-border); }

/* ── Live indicator ──────────────────────────────────────────── */
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--pp-accent);
}
.live-dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--pp-accent);
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--pp-border2), transparent);
  margin: var(--space-xl) 0;
}
.divider-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--pp-accent), var(--pp-accent2), transparent);
}

/* ═══════════════════════════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════════════════════════ */
#site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(8,10,15,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(30,38,57,.7);
  transition: background var(--t-normal);
}
#site-header.scrolled {
  background: rgba(8,10,15,.98);
  border-bottom-color: var(--pp-border2);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 100%;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; gap: 10px; color: var(--pp-text); }
.site-branding a:hover { color: var(--pp-text); }
.logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--pp-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(230,57,70,.4);
}
.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  line-height: 1;
  color: var(--pp-text) !important;
  text-decoration: none !important;
}
.site-title em { color: var(--pp-accent); font-style: normal; }
.site-description { font-size: .7rem; color: var(--pp-muted); letter-spacing: 1px; text-transform: uppercase; }

/* Primary Nav */
#primary-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
#primary-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
#primary-nav .menu-item > a {
  display: block; padding: 8px 14px;
  color: var(--pp-muted); font-size: .87rem; font-weight: 500;
  border-radius: var(--r-md); transition: all var(--t-fast);
  white-space: nowrap;
}
#primary-nav .menu-item > a:hover,
#primary-nav .menu-item.current-menu-item > a,
#primary-nav .menu-item.current-menu-ancestor > a {
  color: var(--pp-text);
  background: rgba(255,255,255,.06);
}
/* Dropdown */
#primary-nav .menu-item { position: relative; }
#primary-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--pp-surface2); border: 1px solid var(--pp-border2);
  border-radius: var(--r-md); min-width: 200px; list-style: none;
  padding: 6px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all var(--t-normal); z-index: 100;
}
#primary-nav .menu-item:hover > .sub-menu {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
#primary-nav .sub-menu .menu-item > a {
  padding: 8px 12px; color: var(--pp-text2); border-radius: var(--r-sm); display: block;
}
#primary-nav .sub-menu .menu-item > a:hover { background: rgba(230,57,70,.08); color: var(--pp-accent); }

/* Header right */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.header-search-btn {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--pp-surface3); border: 1px solid var(--pp-border);
  color: var(--pp-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast); font-size: .95rem;
}
.header-search-btn:hover { border-color: var(--pp-accent); color: var(--pp-accent); }
.header-cta {
  background: var(--pp-accent); color: #fff !important;
  padding: 7px 18px; border-radius: var(--r-full);
  font-size: .82rem; font-weight: 700; letter-spacing: .3px;
  transition: all var(--t-normal);
  box-shadow: 0 4px 16px rgba(230,57,70,.3);
}
.header-cta:hover { background: #c9303d; transform: translateY(-1px); }

/* Mobile toggle */
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--pp-border2);
  color: var(--pp-text); padding: 7px 10px; border-radius: var(--r-md); cursor: pointer;
  font-size: .9rem; transition: all var(--t-fast);
}
.menu-toggle:hover { border-color: var(--pp-accent); }

/* Mobile search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,10,15,.96); backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
  opacity: 0; pointer-events: none; transition: opacity var(--t-normal);
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay-inner { width: 100%; max-width: 640px; padding: 0 24px; }
.search-overlay input {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 1px; background: transparent;
  border: none; border-bottom: 2px solid var(--pp-border2);
  border-radius: 0; padding: 16px 0;
  color: var(--pp-text); width: 100%;
}
.search-overlay input:focus { border-bottom-color: var(--pp-accent); box-shadow: none; }
.search-overlay .close-search {
  position: absolute; top: 28px; right: 28px;
  background: var(--pp-surface2); border: 1px solid var(--pp-border2);
  color: var(--pp-muted); width: 40px; height: 40px;
  border-radius: var(--r-full); cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.search-overlay .close-search:hover { color: var(--pp-accent); }

/* ═══════════════════════════════════════════════════════════════
   SITE LAYOUT
═══════════════════════════════════════════════════════════════ */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }

.site-main { padding: var(--space-2xl) 0; }

/* Two column layout */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.content-sidebar-wrap.no-sidebar { grid-template-columns: 1fr; }
@media (max-width: 960px) { .content-sidebar-wrap { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   TICKER / BREAKING NEWS
═══════════════════════════════════════════════════════════════ */
.pp-ticker {
  background: var(--pp-accent);
  height: 36px;
  display: flex; align-items: center; overflow: hidden;
}
.pp-ticker-label {
  flex-shrink: 0; background: #000;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center;
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 700; letter-spacing: 2px;
  color: var(--pp-accent); text-transform: uppercase;
  white-space: nowrap;
}
.pp-ticker-track { flex: 1; overflow: hidden; white-space: nowrap; }
.pp-ticker-inner {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
  font-size: .82rem; font-weight: 600; color: #fff; letter-spacing: .3px;
}
.pp-ticker-inner span { margin: 0 48px; }
@keyframes ticker-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ═══════════════════════════════════════════════════════════════
   HOME HERO
═══════════════════════════════════════════════════════════════ */
.pp-home-hero {
  position: relative; overflow: hidden;
  background: var(--pp-bg);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--pp-border);
}
.pp-home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(230,57,70,.2) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 50%, rgba(244,162,97,.08) 0%, transparent 60%);
  pointer-events: none;
}
.pp-home-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--pp-accent) 30%, var(--pp-accent2) 70%, transparent 100%);
}
.pp-home-hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pp-accent); font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  line-height: .92; color: var(--pp-text);
  margin-bottom: 24px;
}
.hero-text h1 em { color: var(--pp-accent); font-style: normal; }
.hero-text p { font-size: 1.05rem; color: var(--pp-text2); max-width: 440px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--pp-border);
}
.hero-stat .num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--pp-accent); line-height: 1;
}
.hero-stat .lbl { font-size: .78rem; color: var(--pp-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

.hero-visual {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.hero-card-mini {
  background: var(--pp-surface); border: 1px solid var(--pp-border);
  border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t-normal);
}
.hero-card-mini:first-child { grid-column: 1 / -1; }
.hero-card-mini:hover { transform: translateY(-4px); }
.hero-card-mini img { width: 100%; height: 160px; object-fit: cover; }
.hero-card-mini:first-child img { height: 220px; }
.hero-card-mini .hcm-body { padding: 12px 14px; }
.hero-card-mini .hcm-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; }
.hero-card-mini .hcm-sub { color: var(--pp-muted); font-size: .78rem; margin-top: 2px; }
.hero-card-mini .hcm-badge { margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════════
   POSTS — ARCHIVE / HOME BLOG
═══════════════════════════════════════════════════════════════ */
/* Hero post (first featured) */
.post-hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: var(--space-xl);
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.post-hero .post-thumb {
  position: absolute; inset: 0; z-index: 0;
}
.post-hero .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,10,15,.98) 0%, rgba(8,10,15,.5) 50%, transparent 100%);
}
.post-hero-body {
  position: relative; z-index: 2;
  padding: 36px;
}
.post-hero-body .badge { margin-bottom: 12px; }
.post-hero-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; line-height: 1;
  margin-bottom: 12px;
}
.post-hero-body h2 a { color: var(--pp-text); }
.post-hero-body h2 a:hover { color: var(--pp-accent); }
.post-hero-body .excerpt { color: var(--pp-text2); font-size: .95rem; max-width: 560px; margin-bottom: 20px; }

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Article card */
.article-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,57,70,.3);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.article-card .card-thumb {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--pp-surface3);
  position: relative;
}
.article-card .card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.article-card:hover .card-thumb img { transform: scale(1.05); }
.article-card .card-thumb .card-cat {
  position: absolute; top: 12px; left: 12px; z-index: 1;
}
.article-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card .card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--pp-muted); margin-bottom: 10px; flex-wrap: wrap;
}
.article-card .card-meta .sep { color: var(--pp-border2); }
.article-card .card-meta a { color: var(--pp-muted); }
.article-card .card-meta a:hover { color: var(--pp-accent); }
.article-card h3 {
  font-family: var(--font-heading); font-size: 1.15rem;
  line-height: 1.3; margin-bottom: 10px;
}
.article-card h3 a { color: var(--pp-text); transition: color var(--t-fast); }
.article-card h3 a:hover { color: var(--pp-accent); }
.article-card .card-excerpt { color: var(--pp-muted); font-size: .86rem; flex: 1; margin-bottom: 16px; line-height: 1.6; }
.article-card .card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--pp-border);
  font-size: .78rem; color: var(--pp-muted);
}
.article-card .read-more {
  color: var(--pp-accent); font-weight: 600; font-size: .82rem;
  display: flex; align-items: center; gap: 4px; transition: gap var(--t-fast);
}
.article-card .read-more:hover { gap: 8px; color: var(--pp-accent); }

/* List-style post */
.article-list-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--pp-border);
  align-items: start;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item .list-thumb {
  aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: var(--pp-surface3);
}
.article-list-item .list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-list-item h4 { font-size: .95rem; line-height: 1.35; margin-bottom: 4px; }
.article-list-item h4 a { color: var(--pp-text); }
.article-list-item h4 a:hover { color: var(--pp-accent); }
.article-list-item .list-meta { font-size: .75rem; color: var(--pp-muted); }

/* ── Post Meta ───────────────────────────────────────────────── */
.entry-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .82rem; color: var(--pp-muted);
  margin-bottom: var(--space-lg);
}
.entry-meta a { color: var(--pp-muted); transition: color var(--t-fast); }
.entry-meta a:hover { color: var(--pp-accent); }
.entry-meta .sep { color: var(--pp-border2); }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* ── Single Post / Page Content ─────────────────────────────── */
.entry-header { margin-bottom: var(--space-xl); }
.entry-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15; margin-bottom: 20px;
}
.entry-content {
  font-size: .97rem; line-height: 1.8;
  color: var(--pp-text2);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--pp-text); margin-top: 2em; margin-bottom: .6em;
}
.entry-content a { color: var(--pp-accent); border-bottom: 1px solid rgba(230,57,70,.3); }
.entry-content a:hover { border-bottom-color: var(--pp-accent); }
.entry-content ul, .entry-content ol { padding-left: 1.6em; }
.entry-content li { margin-bottom: .5em; }
.entry-content img {
  border-radius: var(--r-md);
  border: 1px solid var(--pp-border);
  margin: 8px 0;
}
.entry-content figcaption {
  text-align: center; font-size: .8rem; color: var(--pp-muted);
  margin-top: 6px; font-style: italic;
}

/* Featured image */
.entry-featured-image {
  border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: var(--space-xl);
  border: 1px solid var(--pp-border);
  max-height: 520px;
}
.entry-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: var(--space-2xl);
}
.pagination .page-numbers {
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--pp-surface2); border: 1px solid var(--pp-border);
  color: var(--pp-muted); font-size: .88rem; font-weight: 600;
  transition: all var(--t-fast); text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--pp-accent); border-color: var(--pp-accent); color: #fff;
}
.pagination .prev, .pagination .next {
  width: auto; padding: 0 16px; gap: 6px;
  background: var(--pp-surface2);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.widget {
  background: var(--pp-surface); border: 1px solid var(--pp-border);
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 24px;
  overflow: hidden;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--pp-text);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--pp-border);
  display: flex; align-items: center; gap: 8px;
}
.widget-title::before {
  content: '';
  width: 3px; height: 1em;
  background: var(--pp-accent);
  border-radius: 2px; flex-shrink: 0;
}

/* Widget: recent posts */
.widget .recent-post {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--pp-border);
}
.widget .recent-post:last-child { border-bottom: none; }
.widget .recent-post img {
  width: 60px; height: 60px; object-fit: cover;
  border-radius: var(--r-sm); flex-shrink: 0;
}
.widget .recent-post h4 { font-size: .85rem; line-height: 1.35; margin-bottom: 4px; }
.widget .recent-post h4 a { color: var(--pp-text); }
.widget .recent-post h4 a:hover { color: var(--pp-accent); }
.widget .recent-post .rp-date { font-size: .74rem; color: var(--pp-muted); }

/* Widget: categories */
.widget_categories ul, .widget_archive ul { list-style: none; padding: 0; }
.widget_categories li, .widget_archive li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--pp-border); font-size: .88rem;
}
.widget_categories li:last-child, .widget_archive li:last-child { border-bottom: none; }
.widget_categories a, .widget_archive a { color: var(--pp-text2); }
.widget_categories a:hover, .widget_archive a:hover { color: var(--pp-accent); }
.widget_categories .count, .widget_archive .count {
  color: var(--pp-muted); font-size: .78rem;
}

/* Widget: tags */
.widget_tag_cloud .tagcloud {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.widget_tag_cloud a {
  display: inline-block; padding: 4px 12px;
  background: var(--pp-surface3); border: 1px solid var(--pp-border);
  border-radius: var(--r-full); font-size: .78rem !important;
  color: var(--pp-muted); transition: all var(--t-fast);
}
.widget_tag_cloud a:hover { border-color: var(--pp-accent); color: var(--pp-accent); }

/* Widget search */
.widget_search .search-form { display: flex; gap: 8px; }
.widget_search input[type="search"] { flex: 1; }
.widget_search button { flex-shrink: 0; padding: 12px 14px; border-radius: var(--r-md); }

/* ═══════════════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════════════ */
#comments {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--pp-border);
}
#comments .comments-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.comment-list { list-style: none; padding: 0; }
.comment {
  padding: 20px; background: var(--pp-surface);
  border: 1px solid var(--pp-border); border-radius: var(--r-md);
  margin-bottom: 16px;
}
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--pp-text); font-size: .9rem; }
.comment-metadata { font-size: .78rem; color: var(--pp-muted); }
.comment-content p { font-size: .92rem; color: var(--pp-text2); }
.comment-reply-link { font-size: .78rem; color: var(--pp-accent); font-weight: 600; }
.children { margin-left: 32px; list-style: none; padding: 0; margin-top: 16px; }

/* Comment form */
#respond { margin-top: var(--space-xl); }
#respond .comment-reply-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form .comment-form-comment { grid-column: 1 / -1; }
.comment-form p { margin: 0; }
.comment-form input, .comment-form textarea { margin-top: 4px; }
.comment-form .form-submit { grid-column: 1 / -1; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--pp-surface);
  border-top: 1px solid var(--pp-border);
  margin-top: auto;
}
.footer-top {
  padding: var(--space-2xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .site-title { font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand p { color: var(--pp-muted); font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--pp-surface3); border: 1px solid var(--pp-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--pp-muted); font-size: .85rem; transition: all var(--t-fast);
}
.footer-social a:hover { border-color: var(--pp-accent); color: var(--pp-accent); }

.footer-col h4 {
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--pp-text);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--pp-border);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--pp-muted); font-size: .87rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--pp-accent); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--pp-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--pp-muted); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--pp-muted); }
.footer-bottom a:hover { color: var(--pp-accent); }
.footer-bottom-nav { display: flex; gap: 20px; }

/* ═══════════════════════════════════════════════════════════════
   SPECIAL SECTIONS
═══════════════════════════════════════════════════════════════ */
/* Breaking news bar */
.breaking-section {
  background: var(--pp-surface2); border-bottom: 1px solid var(--pp-border);
  padding: 12px 0;
}
.breaking-inner { display: flex; align-items: center; gap: 16px; }
.breaking-label {
  background: var(--pp-accent); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-sm); flex-shrink: 0;
}
.breaking-text { color: var(--pp-text2); font-size: .88rem; font-weight: 500; }
.breaking-text a { color: var(--pp-text); font-weight: 600; }
.breaking-text a:hover { color: var(--pp-accent); }

/* ── Category / Tag Archive header ─────────────────────────── */
.archive-header {
  background: var(--pp-surface);
  border-bottom: 1px solid var(--pp-border);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
  position: relative; overflow: hidden;
}
.archive-header::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--pp-accent), var(--pp-accent2));
}
.archive-header .archive-label {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--pp-accent); margin-bottom: 6px;
}
.archive-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 6px; }
.archive-header p { color: var(--pp-muted); font-size: .9rem; }

/* ── 404 ─────────────────────────────────────────────────── */
.error-404-wrap {
  text-align: center; padding: var(--space-3xl) 0;
}
.error-404-wrap .num-404 {
  font-family: var(--font-display);
  font-size: 10rem; font-weight: 900; letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 2px var(--pp-border2);
  line-height: 1; margin-bottom: 24px;
}
.error-404-wrap h2 { font-size: 1.6rem; margin-bottom: 12px; }
.error-404-wrap p { color: var(--pp-muted); max-width: 400px; margin: 0 auto 32px; }

/* ═══════════════════════════════════════════════════════════════
   GUTENBERG BLOCK OVERRIDES
═══════════════════════════════════════════════════════════════ */
.wp-block-image img { border-radius: var(--r-md); }
.wp-block-quote {
  border-left: 3px solid var(--pp-accent);
  background: var(--pp-surface2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.wp-block-separator { border-color: var(--pp-border); }
.wp-block-code {
  background: var(--pp-surface2);
  border: 1px solid var(--pp-border);
  border-radius: var(--r-md);
  color: var(--pp-accent3);
  font-family: var(--font-mono);
}
.wp-block-button__link {
  background: var(--pp-accent); color: #fff;
  border-radius: var(--r-full) !important;
}
.wp-block-button__link:hover { background: #c9303d; }
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid var(--pp-accent) !important;
  color: var(--pp-accent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  #primary-nav { display: none; }
  #primary-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(8,10,15,.97); backdrop-filter: blur(20px);
    padding: 20px 24px; border-bottom: 1px solid var(--pp-border2);
    z-index: 999;
  }
  #primary-nav.open .menu { flex-direction: column; gap: 4px; }
  #primary-nav.open .menu-item > a { padding: 10px 14px; font-size: 1rem; }
  #primary-nav.open .sub-menu {
    position: static; opacity: 1; pointer-events: all;
    transform: none; box-shadow: none; margin: 4px 0 4px 12px;
    background: transparent; border: none; padding: 0;
  }
  .menu-toggle { display: flex; align-items: center; gap: 6px; }
  .hero-text h1 { font-size: clamp(2.4rem, 10vw, 4.5rem); }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .comment-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .post-hero { min-height: 320px; }
  .post-hero-body { padding: 20px; }
  .article-list-item { grid-template-columns: 80px 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════════ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-accent   { color: var(--pp-accent) !important; }
.text-muted    { color: var(--pp-muted)  !important; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.mt-auto       { margin-top: auto; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.gap-sm        { gap: 8px; }
.gap-md        { gap: 16px; }
.fade-in       { animation: fadeIn .5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--pp-accent); color: #fff; padding: 8px 16px;
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* WP Admin bar offset */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
