/*
Theme Name:  WTPromo
Theme URI:   https://wtpromo.com
Author:      WTPromo
Description: A Roblox-themed fan blog that auto-populates articles and content on activation.
Version:     1.0.0
Requires at least: 5.8
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: wh
Tags:        gaming, custom-colors, custom-menu, featured-images, two-columns
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:       #E8000B;
  --red-dim:   rgba(232,0,11,.1);
  --red-glow:  rgba(232,0,11,.25);
  --blue:      #335FFF;
  --blue-dim:  rgba(51,95,255,.1);
  --gold:      #FFC826;
  --bg:        #111111;
  --bg2:       #161616;
  --card:      #1a1a1a;
  --card-h:    #202020;
  --border:    rgba(255,255,255,.07);
  --border-h:  rgba(255,255,255,.13);
  --text:      #f0f0f0;
  --muted:     #777777;
  --muted-l:   #999999;
  --radius:    8px;
  --font:      'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wh-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wh-container--narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }

.wh-site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.wh-main { flex: 1; padding: 60px 0; }

/* Two-col layout for single/archive */
.wh-content-area { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* ============================================================
   HEADER
   ============================================================ */
.wh-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(17,17,17,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.wh-header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 32px;
}
.wh-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 20px; color: #fff;
  white-space: nowrap;
}
.wh-logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
}

/* Primary nav */
.wh-nav { display: flex; gap: 6px; }
.wh-nav a {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted-l); padding: 8px 12px;
  border-radius: 5px; transition: color .2s, background .2s;
}
.wh-nav a:hover,
.wh-nav a.current { color: #fff; background: rgba(255,255,255,.06); }
.wh-nav .wh-nav-cta {
  background: var(--red); color: #fff !important;
  border-radius: var(--radius);
}
.wh-nav .wh-nav-cta:hover { background: #c8000a; }

/* Burger */
.wh-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.wh-burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.wh-mobile-nav {
  display: none; flex-direction: column;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 16px 28px; gap: 4px;
}
.wh-mobile-nav.open { display: flex; }
.wh-mobile-nav a {
  font-size: 14px; font-weight: 700; color: var(--muted-l);
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.wh-mobile-nav a:last-child { border-bottom: none; }
.wh-mobile-nav a:hover { color: var(--red); }

/* ============================================================
   HERO (front page)
   ============================================================ */
.wh-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(232,0,11,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(51,95,255,.05) 0%, transparent 50%),
    var(--bg);
  position: relative; overflow: hidden;
}
.wh-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
}
.wh-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.wh-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-dim); border: 1px solid rgba(232,0,11,.22);
  padding: 5px 14px; border-radius: 4px;
  font-size: 10px; font-weight: 700; color: var(--red);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.wh-hero-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: whPulse 1.5s ease-in-out infinite;
}
@keyframes whPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(1.7)} }

.wh-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900; line-height: 1.08; margin-bottom: 16px;
}
.wh-hero h1 span { color: var(--red); }
.wh-hero-sub {
  font-size: 16px; color: var(--muted); margin-bottom: 28px; line-height: 1.75;
}
.wh-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.wh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: none; transition: .25s;
}
.wh-btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 22px var(--red-glow); }
.wh-btn-primary:hover { background: #c8000a; transform: translateY(-2px); }
.wh-btn-secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-h);
}
.wh-btn-secondary:hover { background: rgba(255,255,255,.05); transform: translateY(-2px); }

/* Hero featured card */
.wh-hero-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: .3s;
}
.wh-hero-card:hover { transform: translateY(-4px); border-color: var(--border-h); }
.wh-hero-card-thumb { height: 200px; overflow: hidden; }
.wh-hero-card-thumb svg { width: 100%; height: 100%; display: block; }
.wh-hero-card-body { padding: 20px; }
.wh-hero-card-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--red); margin-bottom: 8px;
}
.wh-hero-card-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.wh-hero-card-title a { color: var(--text); }
.wh-hero-card-title a:hover { color: var(--red); }
.wh-hero-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   STATS BAR
   ============================================================ */
.wh-stats {
  background: var(--card); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.wh-stats-inner {
  display: flex; justify-content: center;
  gap: 60px; flex-wrap: wrap;
}
.wh-stat-num { font-size: 28px; font-weight: 900; color: var(--red); }
.wh-stat-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.wh-section-tag {
  display: inline-block;
  background: var(--red-dim); border: 1px solid rgba(232,0,11,.2);
  padding: 3px 11px; border-radius: 4px;
  font-size: 10px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.wh-section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900; margin-bottom: 8px;
}
.wh-section-sub { font-size: 15px; color: var(--muted); max-width: 500px; }

/* ============================================================
   POST CARDS (grid)
   ============================================================ */
.wh-posts-section { padding: 70px 0; background: var(--bg2); }
.wh-posts-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.wh-view-all { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
.wh-view-all:hover { text-decoration: underline; }

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

.wh-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: .3s;
  display: flex; flex-direction: column;
}
.wh-card:hover { transform: translateY(-5px); border-color: var(--border-h); box-shadow: 0 14px 42px rgba(0,0,0,.4); }
.wh-card-thumb { height: 180px; overflow: hidden; position: relative; flex-shrink: 0; }
.wh-card-thumb svg { width: 100%; height: 100%; display: block; }
.wh-card-thumb .wh-card-cat-pill {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; padding: 3px 8px; border-radius: 3px;
}
.wh-card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.wh-card-meta { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.wh-card-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; line-height: 1.35; flex: 1; }
.wh-card-title a { color: var(--text); }
.wh-card-title a:hover { color: var(--red); }
.wh-card-excerpt { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.wh-card-read {
  font-size: 11.5px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: auto;
}
.wh-card-read::after { content: '→'; }
.wh-card-read:hover { text-decoration: underline; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.wh-single-thumb {
  width: 100%; height: 360px; overflow: hidden;
  border-radius: var(--radius); margin-bottom: 36px;
  border: 1px solid var(--border);
}
.wh-single-thumb svg { width: 100%; height: 100%; display: block; }

.wh-entry-header { margin-bottom: 28px; }
.wh-entry-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wh-entry-cat {
  background: var(--red-dim); border: 1px solid rgba(232,0,11,.2);
  color: var(--red); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 3px 10px; border-radius: 3px;
}
.wh-entry-title { font-size: clamp(26px, 4vw, 42px); font-weight: 900; line-height: 1.1; margin-bottom: 14px; }
.wh-entry-meta { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.wh-entry-meta span { display: flex; align-items: center; gap: 6px; }

.wh-entry-content { font-size: 15.5px; line-height: 1.8; color: #d8d8d8; }
.wh-entry-content h2 { font-size: 24px; font-weight: 800; margin: 36px 0 14px; color: var(--text); }
.wh-entry-content h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.wh-entry-content p { margin-bottom: 18px; }
.wh-entry-content ul, .wh-entry-content ol { margin: 0 0 18px 24px; }
.wh-entry-content li { margin-bottom: 8px; }
.wh-entry-content strong { color: var(--text); font-weight: 700; }
.wh-entry-content a { color: var(--red); text-decoration: underline; }
.wh-entry-content blockquote {
  border-left: 3px solid var(--red);
  padding: 12px 20px; margin: 24px 0;
  background: var(--red-dim); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--muted-l);
}
.wh-entry-content .wh-highlight-box {
  background: var(--blue-dim); border: 1px solid rgba(51,95,255,.2);
  border-radius: var(--radius); padding: 20px 22px; margin: 24px 0;
}
.wh-entry-content .wh-highlight-box strong { color: var(--blue); }

/* Post nav */
.wh-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.wh-post-nav-link {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  transition: .25s; display: block;
}
.wh-post-nav-link:hover { border-color: var(--red); transform: translateY(-2px); }
.wh-post-nav-dir { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.wh-post-nav-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.wh-post-nav-link.next { text-align: right; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.wh-sidebar { display: flex; flex-direction: column; gap: 24px; }
.wh-widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.wh-widget-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text);
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.wh-widget-title::before { content: ''; width: 3px; height: 14px; background: var(--red); border-radius: 2px; }
.wh-widget-body { padding: 16px 18px; }

/* Recent posts widget */
.wh-recent-post {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.wh-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.wh-recent-thumb {
  width: 52px; height: 40px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0;
}
.wh-recent-thumb svg { width: 100%; height: 100%; display: block; }
.wh-recent-title { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--text); }
.wh-recent-title:hover { color: var(--red); }
.wh-recent-date { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Category widget */
.wh-cat-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.wh-cat-item:last-child { border-bottom: none; }
.wh-cat-item a { color: var(--muted-l); transition: color .2s; }
.wh-cat-item a:hover { color: var(--red); }
.wh-cat-count {
  background: var(--red-dim); color: var(--red);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
}

/* ============================================================
   ARCHIVE / BLOG
   ============================================================ */
.wh-archive-header {
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.wh-archive-title { font-size: clamp(26px,4vw,42px); font-weight: 900; margin-bottom: 8px; }
.wh-archive-title span { color: var(--red); }
.wh-archive-sub { font-size: 15px; color: var(--muted); }

/* ============================================================
   PAGINATION
   ============================================================ */
.wh-pagination {
  display: flex; gap: 8px; justify-content: center;
  padding-top: 40px; flex-wrap: wrap;
}
.wh-pagination a,
.wh-pagination span {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted-l); transition: .2s;
}
.wh-pagination a:hover { border-color: var(--red); color: var(--red); }
.wh-pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.wh-footer {
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  padding: 52px 0 24px;
}
.wh-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.wh-footer-brand .wh-logo { margin-bottom: 12px; }
.wh-footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 300px; margin-bottom: 16px; }
.wh-footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text); margin-bottom: 14px;
}
.wh-footer-col a { display: block; font-size: 13px; color: var(--muted); padding: 4px 0; transition: color .2s; }
.wh-footer-col a:hover { color: var(--red); }
.wh-footer-bottom {
  padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.wh-footer-bottom a { color: var(--muted); }
.wh-footer-bottom a:hover { color: var(--red); }
.wh-disclaimer {
  font-size: 11px; color: rgba(119,119,119,.6);
  text-align: center; margin-top: 14px; line-height: 1.6;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.wh-anim { opacity: 0; transform: translateY(20px); transition: .5s ease; }
.wh-anim.vis { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .wh-content-area { grid-template-columns: 1fr; }
  .wh-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .wh-hero-inner { grid-template-columns: 1fr; }
  .wh-nav { display: none; }
  .wh-burger { display: flex; }
  .wh-footer-grid { grid-template-columns: 1fr; }
  .wh-post-nav { grid-template-columns: 1fr; }
  .wh-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wh-stats-inner { gap: 30px; }
  .wh-grid { grid-template-columns: 1fr; }
}

/* scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(232,0,11,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232,0,11,.5); }

/* ============================================================
   TEMPLATE CLASS ALIASES + EXTRA COMPONENTS
   ============================================================ */

/* Header aliases (header.php uses .wh-site-header) */
.wh-site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(17,17,17,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.wh-site-header.wh-scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.5); }
.wh-header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px; gap: 32px;
}
.wh-site-name { font-weight: 900; font-size: 20px; color: #fff; }
.wh-branding { display: flex; flex-direction: column; }
.wh-site-desc { font-size: 12px; color: var(--muted); }

/* Primary nav — WordPress generates <ul id="primary-menu"> */
.wh-primary-nav #primary-menu {
  display: flex; gap: 4px; align-items: center;
}
.wh-primary-nav #primary-menu li a {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted-l); padding: 8px 12px;
  border-radius: 5px; transition: color .2s, background .2s;
  display: block;
}
.wh-primary-nav #primary-menu li a:hover,
.wh-primary-nav #primary-menu li.current-menu-item > a { color: #fff; background: rgba(255,255,255,.06); }
.wh-primary-nav #primary-menu li.current-menu-item > a { color: var(--red); }

/* Mobile hamburger */
.wh-menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-direction: column; gap: 5px;
}
.wh-burger {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}
.wh-primary-nav.is-open { display: flex; flex-direction: column; }

/* Mobile nav open state */
body.nav-open .wh-primary-nav {
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 16px 28px; display: flex; flex-direction: column; gap: 4px; z-index: 800;
}
body.nav-open .wh-primary-nav #primary-menu { flex-direction: column; width: 100%; }
body.nav-open .wh-primary-nav #primary-menu li a { border-bottom: 1px solid var(--border); border-radius: 0; padding: 12px 0; }

/* Buttons (template-friendly aliases) */
.wh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: .25s; }
.wh-btn-lg { padding: 14px 32px; font-size: 15px; background: var(--red); color: #fff; box-shadow: 0 6px 22px var(--red-glow); }
.wh-btn-lg:hover { background: #c8000a; transform: translateY(-2px); }
.wh-btn-sm { padding: 8px 18px; font-size: 12px; background: var(--red); color: #fff; }
.wh-btn-sm:hover { background: #c8000a; transform: translateY(-1px); }
.wh-btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.wh-btn-outline:hover { background: var(--red); color: #fff; }

/* Hero — front-page.php aliases */
.wh-hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
}
.wh-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.wh-hero-accent { color: var(--red); }
.wh-hero-badge { display: inline-block; background: var(--red-dim); border: 1px solid rgba(232,0,11,.22); padding: 5px 14px; border-radius: 4px; font-size: 10px; font-weight: 700; color: var(--red); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.wh-hero-title { font-size: clamp(32px,5vw,54px); font-weight: 900; line-height: 1.08; margin-bottom: 16px; }
.wh-hero-sub { font-size: 16px; color: var(--muted); margin-bottom: 28px; line-height: 1.75; max-width: 460px; }
.wh-hero-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.wh-hero-card:hover { transform: translateY(-4px); border-color: var(--border-h); }
.wh-hero-card-link { display: block; color: inherit; }
.wh-hero-card-thumb { height: 200px; overflow: hidden; }
.wh-hero-card-thumb img, .wh-hero-card-thumb svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.wh-hero-card-body { padding: 20px; }
.wh-hero-card-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); display: block; margin-bottom: 6px; }
.wh-hero-card-title { font-size: 16px; font-weight: 800; line-height: 1.3; }

/* Stats bar */
.wh-stats-bar { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.wh-stats-inner { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.wh-stat { text-align: center; }
.wh-stat strong { display: block; font-size: 28px; font-weight: 900; color: var(--red); }
.wh-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Category chips */
.wh-cat-strip { padding: 16px 0; border-bottom: 1px solid var(--border); }
.wh-cat-strip-inner { display: flex; gap: 10px; flex-wrap: wrap; }
.wh-cat-chip { padding: 6px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 1.5px solid transparent; transition: .2s; }
.wh-cat-chip--blue { color: var(--blue); border-color: var(--blue); }
.wh-cat-chip--blue:hover { background: var(--blue); color: #fff; }
.wh-cat-chip--red { color: var(--red); border-color: var(--red); }
.wh-cat-chip--red:hover { background: var(--red); color: #fff; }
.wh-cat-chip--gold { color: var(--gold); border-color: var(--gold); }
.wh-cat-chip--gold:hover { background: var(--gold); color: #111; }

/* Article section */
.wh-articles-section { padding: 60px 0; }
.wh-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-bottom: 32px; }
.wh-card-meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.wh-cat { background: var(--red-dim); color: var(--red); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; }
.wh-view-all { text-align: center; margin-top: 12px; }

/* Single post page */
.wh-content-area--single { padding: 48px 0; }
.wh-main-col { min-width: 0; }
.wh-single-thumb { width: 100%; max-height: 380px; overflow: hidden; border-radius: var(--radius); margin-bottom: 36px; border: 1px solid var(--border); }
.wh-single-thumb img, .wh-single-thumb svg, .wh-svg-thumb svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.wh-svg-thumb { width: 100%; height: 380px; }
.wh-single-header { margin-bottom: 32px; }
.wh-single-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.wh-reading-time { color: var(--muted); }
.wh-single-title { font-size: clamp(24px,4vw,40px); font-weight: 900; line-height: 1.1; margin-bottom: 12px; }
.wh-single-excerpt { font-size: 15px; color: var(--muted); line-height: 1.7; border-left: 3px solid var(--red); padding-left: 16px; }
.wh-post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.wh-tag { background: var(--card); border: 1px solid var(--border); padding: 5px 12px; border-radius: 4px; font-size: 11px; color: var(--muted-l); transition: .2s; }
.wh-tag:hover { border-color: var(--red); color: var(--red); }
.wh-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.wh-post-nav-link { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: .25s; display: block; }
.wh-post-nav-link:hover { border-color: var(--red); transform: translateY(-2px); }
.wh-post-nav-link--next { text-align: right; }
.wh-nav-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 4px; }
.wh-nav-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; display: block; }

/* Sidebar */
.wh-sidebar-inner { display: flex; flex-direction: column; gap: 24px; }
.wh-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.wh-widget-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.wh-widget-title::before { content: ''; width: 3px; height: 14px; background: var(--red); border-radius: 2px; display: inline-block; }
.wh-widget-tip { background: var(--blue-dim); border-color: rgba(51,95,255,.2); }
.wh-widget-tip .wh-widget-title { color: var(--blue); }
.wh-widget-tip .wh-widget-title::before { background: var(--blue); }
.wh-widget-tip p { font-size: 13px; color: var(--muted-l); line-height: 1.7; }
.wh-cat-list li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.wh-cat-list li:last-child { border-bottom: none; }
.wh-cat-list a { font-size: 13px; color: var(--muted-l); transition: color .2s; }
.wh-cat-list a:hover { color: var(--red); }
.wh-recent-posts li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.wh-recent-posts li:last-child { border-bottom: none; }
.wh-recent-posts a { font-size: 12.5px; color: var(--muted-l); line-height: 1.4; transition: color .2s; display: block; }
.wh-recent-posts a:hover { color: var(--red); }

/* Archive */
.wh-archive-wrap { padding: 40px 0 60px; }
.wh-archive-header { margin-bottom: 36px; }
.wh-archive-title { font-size: clamp(24px,4vw,38px); font-weight: 900; margin-bottom: 6px; }
.wh-archive-desc { font-size: 14px; color: var(--muted); }

/* 404 */
.wh-404-wrap { padding: 100px 0; text-align: center; }
.wh-404-content { max-width: 560px; margin: 0 auto; }
.wh-404-graphic { margin: 0 auto 32px; display: flex; justify-content: center; }
.wh-404-title { font-size: clamp(22px,3vw,32px); font-weight: 900; margin-bottom: 14px; }
.wh-404-text { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.wh-404-actions { margin-bottom: 24px; }

/* Page */
.wh-page-wrap { padding: 60px 0; }
.wh-page-header { margin-bottom: 28px; }
.wh-page-title { font-size: clamp(26px,4vw,40px); font-weight: 900; }
.wh-no-results { text-align: center; padding: 80px 20px; color: var(--muted); }
.wh-no-results h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }

/* Footer */
.wh-site-footer { background: #0d0d0d; border-top: 1px solid var(--border); padding: 48px 0 24px; }
.wh-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 32px; flex-wrap: wrap; }
.wh-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.wh-footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; }
.wh-footer-nav ul { display: flex; gap: 20px; flex-wrap: wrap; }
.wh-footer-nav a { font-size: 13px; color: var(--muted); transition: color .2s; }
.wh-footer-nav a:hover { color: var(--red); }
.wh-footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.wh-copyright a { color: var(--muted); }
.wh-copyright a:hover { color: var(--red); }
.wh-footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.wh-footer-legal a { font-size: 12px; color: var(--muted); transition: color .2s; }
.wh-footer-legal a:hover { color: var(--red); }

/* Pagination */
.wh-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wh-pagination .page-numbers { width: 38px; height: 38px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--card); border: 1px solid var(--border); color: var(--muted-l); transition: .2s; }
.wh-pagination .page-numbers:hover, .wh-pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.wh-pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* Scroll reveal */
.wh-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.wh-revealed { opacity: 1; transform: none; }

/* Screen reader text */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive overrides */
@media (max-width: 1024px) {
  .wh-content-area--single { grid-template-columns: 1fr; }
  .wh-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .wh-primary-nav { display: none; }
  .wh-menu-toggle { display: flex; }
  .wh-post-nav { grid-template-columns: 1fr; }
  .wh-footer-top { flex-direction: column; }
  .wh-stats-inner { gap: 28px; }
}
@media (max-width: 480px) {
  .wh-card-grid { grid-template-columns: 1fr; }
  .wh-hero { padding: 48px 0 36px; }
}

/* ============================================================
   SVG THUMBNAIL SIZING — ensures SVGs fill every context
   ============================================================ */

/* Card thumb container (180px tall) */
.wh-card-thumb {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #0a0a14; /* dark fallback while SVG loads */
}

/* Any image or SVG wrapper inside a card thumb fills it completely */
.wh-card-thumb img.wh-thumb-img,
.wh-card-thumb .wh-svg-thumb,
.wh-card-thumb .wh-svg-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero card thumb (featured article on front page) */
.wh-hero-card-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #0a0a14;
}
.wh-hero-card-thumb img.wh-thumb-img,
.wh-hero-card-thumb .wh-svg-thumb,
.wh-hero-card-thumb .wh-svg-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single post hero thumb (full-width, taller) */
.wh-single-thumb {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 36px;
  border: 1px solid var(--border);
  background: #0a0a14;
  position: relative;
}
.wh-single-thumb img.wh-thumb-img,
.wh-single-thumb .wh-svg-thumb,
.wh-single-thumb .wh-svg-thumb svg,
.wh-single-thumb .wh-svg-thumb--hero,
.wh-single-thumb .wh-svg-thumb--hero svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Generic SVG thumb wrapper — fills whatever parent it's in */
.wh-svg-thumb {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.wh-svg-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wh-svg-thumb--hero {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.wh-svg-thumb--hero svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* WordPress core img output inside card thumbs */
.wh-card-thumb img,
.wh-hero-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sidebar recent-posts thumbnail */
.wh-svg-thumb--small {
  width: 52px;
  height: 40px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
.wh-svg-thumb--small svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* @media — keep card thumbs consistent on narrow screens */
@media (max-width: 480px) {
  .wh-card-thumb { height: 160px; }
  .wh-single-thumb { height: 220px; }
}
