/* ═══════════════════════════════════════════
   SUPAPICKS BLOG — theme.css
   Full design system matching supapicks.com
   Dark / Light mode via data-theme attribute
═══════════════════════════════════════════ */

/* ── Custom Properties ─────────────────── */
:root {
  --purple:        #6C3BD5;
  --purple-lt:     #8B5CF6;
  --purple-dim:    #F7F5FF;
  --purple-mid:    #C4B5FD;
  --navy:          #0D0F1A;
  --navy-mid:      #161929;
  --navy-soft:     #1E2140;
  --white:         #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F4F4F6;
  --card:          #FFFFFF;
  --text:          #1A1C2E;
  --text-2:        #4B5068;
  --text-3:        #5E6381;
  --border:        rgba(0,0,0,0.07);
  --border-2:      rgba(0,0,0,0.14);
  --green:         #10B981;
  --green-bg:      #D1FAE5;
  --green-text:    #065F46;
  --red:           #EF4444;
  --red-bg:        #FEE2E2;
  --red-text:      #991B1B;
  --amber:         #F59E0B;
  --amber-bg:      #FEF3C7;
  --amber-text:    #92400E;
  --ff-display:    'Playfair Display', Georgia, serif;
  --ff-body:       'DM Sans', system-ui, sans-serif;
  --ff-mono:       'DM Mono', 'Courier New', monospace;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --nav-h:         58px;
  --transition:    0.22s ease;
}

[data-theme="dark"] {
  --surface:    #0D0F1A;
  --surface-2:  #111426;
  --card:       #161929;
  --text:       #EEECff;
  --text-2:     #9CA3BB;
  --text-3:     #6B7194;
  --border:     rgba(139,92,246,0.16);
  --border-2:   rgba(139,92,246,0.3);
  --purple-dim: rgba(108,59,213,0.18);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--ff-body); border: none; background: none; }

/* ── Skip link ─────────────────────────── */
.skip-link {
  position: absolute; top: -9999px; left: 12px;
  background: var(--purple); color: white;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; z-index: 9999;
}
.skip-link:focus { top: 12px; }

/* ── Site wrap ─────────────────────────── */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.container  { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 0;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 900;
  color: var(--purple); letter-spacing: -0.5px;
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nav-logo span { color: var(--text); }
.nav-logo svg  { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center;
  margin-left: 24px; flex: 1; gap: 0; min-width: 0;
}
.nav-link {
  font-size: 13px; font-weight: 400;
  color: var(--text-2); padding: 0 14px;
  height: var(--nav-h); display: flex; align-items: center;
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.current-menu-item,
.nav-link.current-page-ancestor, .nav-link[aria-current] {
  color: var(--purple); border-bottom-color: var(--purple);
}
.nav-right {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0;
}
.btn-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background var(--transition), color var(--transition);
  flex-shrink: 0; cursor: pointer; border: none;
}
.btn-icon:hover { background: var(--purple); color: white; }
[data-theme="dark"] .btn-icon { background: var(--purple-dim); color: var(--purple-lt); }

/* Hamburger */
.btn-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none; cursor: pointer;
}
.btn-hamburger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all var(--transition); display: block;
}
.btn-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile drawer */
.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--card); z-index: 199;
  overflow-y: auto; padding: 16px 20px 40px;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-link {
  display: block; font-size: 14px; font-weight: 400;
  color: var(--text-2); padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition); text-decoration: none;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--purple); }
.mobile-nav-sep {
  font-size: 9px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-3);
  padding: 14px 0 6px;
}

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-3); flex-wrap: wrap;
}
.breadcrumb a { color: var(--purple); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border-2); }

/* ══════════════════════════════════════════
   BLOG HERO
══════════════════════════════════════════ */
.blog-hero {
  background: var(--navy);
  padding: 48px 0 40px; position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(108,59,213,0.25) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.blog-hero::after {
  content: ''; position: absolute; bottom: -40px; left: 8%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-hero-eyebrow {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--purple-mid); margin-bottom: 12px;
}
.blog-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4.5vw, 44px); font-weight: 900;
  color: #fff; line-height: 1.08;
  letter-spacing: -1.5px; margin-bottom: 14px;
}
.blog-hero-title em { color: var(--purple-lt); font-style: normal; }
.blog-hero-desc {
  font-size: 14px; color: rgba(255,255,255,0.48);
  max-width: 480px; line-height: 1.75; margin-bottom: 22px;
}
.blog-hero-stats { display: flex; gap: 0; flex-wrap: wrap; }
.blog-hero-stat  { padding: 0 24px 0 0; }
.blog-hero-stat + .blog-hero-stat {
  padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.1);
}
.blog-hero-stat-num {
  font-family: var(--ff-display); font-size: 26px; font-weight: 700;
  color: #fff; line-height: 1;
}
.blog-hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.38); margin-top: 2px; }

/* ══════════════════════════════════════════
   CATEGORY STRIP
══════════════════════════════════════════ */
.cat-strip { background: var(--card); border-bottom: 1px solid var(--border); }
.cat-strip-inner {
  display: flex; align-items: center; overflow-x: auto;
  scrollbar-width: none; height: 44px;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  padding: 0 16px; height: 44px; display: flex; align-items: center;
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0; text-decoration: none;
}
.cat-chip:hover, .cat-chip.active {
  color: var(--purple); border-bottom-color: var(--purple);
}

/* ══════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════ */
.site-main { flex: 1; }

/* Archive / home layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  padding: 32px 0 56px;
  align-items: start;
}
.blog-primary { min-width: 0; }

/* Section label */
.section-label {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-3);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Section header */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 18px; gap: 10px;
}
.section-title {
  font-family: var(--ff-display); font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -0.3px;
}
.section-sub   { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.section-link  { font-size: 12px; color: var(--purple); font-weight: 500; flex-shrink: 0; }
.section-link:hover { text-decoration: underline; }

/* ── Featured card ─────────────────────── */
.featured-card {
  display: grid; grid-template-columns: 1fr 360px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 28px; transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none; color: inherit;
}
.featured-card:hover { border-color: var(--purple); box-shadow: var(--shadow-md); }
.featured-body { padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.featured-cat {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--purple); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.featured-cat::before {
  content: ''; width: 6px; height: 6px;
  background: var(--purple); border-radius: 50%; flex-shrink: 0;
}
.featured-title {
  font-family: var(--ff-display); font-size: clamp(18px,2.2vw,24px);
  font-weight: 900; color: var(--text); line-height: 1.2;
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.featured-card:hover .featured-title { color: var(--purple); }
.featured-excerpt {
  font-size: 14px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.featured-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3); flex-wrap: wrap;
}
.meta-dot  { width: 3px; height: 3px; background: var(--border-2); border-radius: 50%; flex-shrink: 0; }
.meta-read { color: var(--purple); font-weight: 500; }

.featured-thumb {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, rgba(108,59,213,0.35) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 200px;
}
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-thumb-placeholder {
  font-family: var(--ff-display); font-size: 40px; font-weight: 900;
  color: rgba(255,255,255,0.12); user-select: none;
}
.featured-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(108,59,213,0.88); color: white;
  font-size: 10px; font-weight: 500; padding: 4px 10px;
  border-radius: 20px; letter-spacing: 0.5px;
}

/* ── Article grid ──────────────────────── */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.article-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none; color: inherit; min-width: 0;
}
.article-card:hover {
  border-color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.article-thumb {
  height: 120px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, rgba(108,59,213,0.28) 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb-label {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,0.28); letter-spacing: 1px; text-transform: uppercase;
}
.article-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.article-cat  { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--purple); }
.article-title {
  font-family: var(--ff-display); font-size: 14px; font-weight: 700;
  color: var(--text); line-height: 1.3; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-card:hover .article-title { color: var(--purple); }
.article-excerpt {
  font-size: 12px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px;
}
.article-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3); margin-top: 4px; flex-wrap: wrap;
}

/* ── Pagination ────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 32px 0 0; }
.page-numbers {
  min-width: 36px; height: 36px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--text-2); background: var(--card); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all var(--transition);
}
.page-numbers:hover { border-color: var(--purple); color: var(--purple); }
.page-numbers.current { background: var(--purple); color: white; border-color: var(--purple); }
.page-numbers.dots    { border: none; background: none; pointer-events: none; }
.page-numbers.prev, .page-numbers.next { gap: 4px; padding: 0 14px; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.blog-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sidebar-widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm);
}
.sidebar-widget-title {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-3); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
/* Widget default WP styles */
.widget { margin-bottom: 0; }
.widget-title { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.widget ul { display: flex; flex-direction: column; gap: 0; }
.widget ul li { border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { display: block; padding: 7px 0; font-size: 13px; color: var(--text-2); transition: color var(--transition); }
.widget ul li a:hover { color: var(--purple); }

/* Recent posts widget */
.recent-posts-list { display: flex; flex-direction: column; gap: 12px; }
.recent-post-item  { display: flex; gap: 10px; align-items: flex-start; }
.recent-post-thumb {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg,var(--navy),var(--navy-soft));
  flex-shrink: 0; overflow: hidden; display: flex;
  align-items: center; justify-content: center;
}
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-placeholder { font-family: var(--ff-display); font-size: 16px; color: rgba(255,255,255,0.2); }
.recent-post-info { min-width: 0; }
.recent-post-title {
  font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-post-item a:hover .recent-post-title { color: var(--purple); }
.recent-post-item a { text-decoration: none; color: inherit; }
.recent-post-date { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* Telegram CTA */
.tg-cta {
  background: linear-gradient(135deg,#1a1f3a 0%,#2d1f6e 100%);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
}
.tg-title { font-family: var(--ff-display); font-size: 14px; color: white; font-weight: 700; margin-bottom: 4px; }
.tg-sub   { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.tg-btn {
  display: block; background: #229ED9; color: white;
  padding: 9px 16px; border-radius: var(--radius-md);
  font-size: 12px; font-weight: 500; transition: opacity var(--transition);
}
.tg-btn:hover { opacity: 0.88; }

/* Responsible gambling widget */
.rg-widget { border: 1px solid var(--amber-bg) !important; background: var(--amber-bg) !important; }
.rg-text    { font-size: 11px; color: var(--amber-text); line-height: 1.6; }
.rg-text strong { display: block; margin-bottom: 3px; }

/* Categories widget in sidebar */
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item a { color: var(--text-2); text-decoration: none; transition: color var(--transition); }
.cat-list-item a:hover { color: var(--purple); }
.cat-count {
  font-family: var(--ff-mono); font-size: 10px; color: var(--text-3);
  background: var(--surface-2); padding: 2px 6px; border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════ */
.single-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 32px; padding: 32px 0 56px; align-items: start;
}
.single-primary { min-width: 0; }

/* Post header */
.post-header { margin-bottom: 28px; }
.post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.post-cat-badge {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--purple); background: var(--purple-dim);
  padding: 3px 10px; border-radius: 20px; text-decoration: none;
  border: 1px solid rgba(108,59,213,0.2); transition: all var(--transition);
}
.post-cat-badge:hover { background: var(--purple); color: white; border-color: var(--purple); }
.post-title {
  font-family: var(--ff-display); font-size: clamp(24px,4vw,40px);
  font-weight: 900; color: var(--text); line-height: 1.12;
  letter-spacing: -1px; margin-bottom: 14px;
}
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-3); flex-wrap: wrap; margin-bottom: 20px;
}
.post-meta-author { display: flex; align-items: center; gap: 8px; }
.author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--purple); color: white; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-name { font-weight: 500; color: var(--text-2); }
.post-featured-image {
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px;
  background: linear-gradient(135deg,var(--navy) 0%,var(--navy-soft) 60%,rgba(108,59,213,0.3) 100%);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.post-featured-image img { width: 100%; height: auto; max-height: 440px; object-fit: cover; }
.post-featured-placeholder {
  font-family: var(--ff-display); font-size: 60px; font-weight: 900;
  color: rgba(255,255,255,0.08); user-select: none;
}

/* Post content */
.entry-content { font-size: 15px; color: var(--text-2); line-height: 1.85; }
.entry-content h2 {
  font-family: var(--ff-display); font-size: 22px; font-weight: 700;
  color: var(--text); margin: 32px 0 12px; letter-spacing: -0.3px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.entry-content h3 {
  font-family: var(--ff-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin: 24px 0 10px;
}
.entry-content h4 { font-size: 15px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.entry-content p  { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 24px; display: flex; flex-direction: column; gap: 6px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { color: var(--text-2); }
.entry-content a  { color: var(--purple); text-decoration: underline; }
.entry-content a:hover { text-decoration: none; }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content em     { font-style: italic; }
.entry-content img    { border-radius: var(--radius-md); margin: 20px auto; }
.entry-content blockquote {
  border-left: 3px solid var(--purple); padding: 12px 20px;
  margin: 20px 0; background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-2);
}
[data-theme="dark"] .entry-content blockquote { background: var(--purple-dim); }
.entry-content pre, .entry-content code {
  font-family: var(--ff-mono); font-size: 13px;
  background: var(--surface-2); border-radius: var(--radius-sm);
}
.entry-content pre { padding: 16px; overflow-x: auto; margin-bottom: 18px; }
.entry-content code { padding: 2px 6px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13px; }
.entry-content table th {
  background: var(--surface-2); padding: 9px 12px; text-align: left;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-3); border-bottom: 1px solid var(--border);
}
.entry-content table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.entry-content table tr:last-child td { border-bottom: none; }
.entry-content table tr:hover td { background: var(--surface-2); }
.entry-content .wp-block-image figcaption { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 6px; }

/* Post tags */
.post-tags { margin: 28px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-tags-label { font-size: 12px; color: var(--text-3); }
.post-tag {
  font-size: 11px; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 20px;
  text-decoration: none; transition: all var(--transition);
}
.post-tag:hover { background: var(--purple); color: white; border-color: var(--purple); }

/* Post nav (prev/next) */
.post-navigation {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.post-nav-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
  text-decoration: none; color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: 4px;
}
.post-nav-item:hover { border-color: var(--purple); box-shadow: var(--shadow-md); }
.post-nav-item.next-post { text-align: right; }
.post-nav-dir  { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--purple); }
.post-nav-title { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.35; }
.post-nav-item:hover .post-nav-title { color: var(--purple); }

/* Related posts */
.related-posts { margin-top: 36px; }
.related-grid  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }

/* ══════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════ */
.comments-area { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.comments-title {
  font-family: var(--ff-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
}
.comment-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.comment-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; flex-wrap: wrap; }
.comment-author a { font-weight: 500; color: var(--purple); text-decoration: none; }
.comment-date  { color: var(--text-3); }
.comment-reply-link { color: var(--purple); font-size: 11px; margin-left: auto; text-decoration: none; }
.comment-reply-link:hover { text-decoration: underline; }
.comment-awaiting { font-size: 12px; color: var(--amber-text); margin-bottom: 8px; }
.comment-text p { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 0; }

/* Comment form */
.comment-form-title { font-family: var(--ff-display); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 10px 14px;
  background: var(--card); border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md); font-family: var(--ff-body);
  font-size: 14px; color: var(--text); transition: border-color var(--transition); outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--purple); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-submit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: white; padding: 10px 22px;
  border-radius: var(--radius-md); font-size: 13px; font-weight: 500;
  border: none; cursor: pointer; transition: opacity var(--transition); width: fit-content;
}
.comment-submit-btn:hover { opacity: 0.88; }

/* ══════════════════════════════════════════
   SEARCH RESULTS PAGE
══════════════════════════════════════════ */
.search-hero {
  background: var(--navy); padding: 36px 0 30px;
  position: relative; overflow: hidden;
}
.search-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(108,59,213,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.search-hero-inner { position: relative; z-index: 1; }
.search-hero-label {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--purple-mid); margin-bottom: 8px;
}
.search-results-title {
  font-family: var(--ff-display); font-size: clamp(22px,3.5vw,34px);
  font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 16px;
}
.search-results-title em { color: var(--purple-lt); font-style: normal; }
.search-form-wrap { max-width: 520px; }
.search-field-group {
  display: flex; gap: 0; border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md); overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.search-field {
  flex: 1; padding: 11px 16px; background: transparent;
  border: none; outline: none; color: white; font-family: var(--ff-body);
  font-size: 14px; min-width: 0;
}
.search-field::placeholder { color: rgba(255,255,255,0.35); }
.search-submit {
  padding: 11px 20px; background: var(--purple); color: white;
  border: none; cursor: pointer; font-size: 13px; font-weight: 500;
  font-family: var(--ff-body); transition: opacity var(--transition); white-space: nowrap;
}
.search-submit:hover { opacity: 0.88; }

.no-results-hero { background: var(--navy); padding: 48px 0 36px; position: relative; overflow: hidden; }
.no-results-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(108,59,213,0.2) 0%, transparent 70%); border-radius: 50%;
}
.no-results-inner { position: relative; z-index: 1; }
.no-results-icon { font-family: var(--ff-display); font-size: 60px; font-weight: 900; color: rgba(255,255,255,0.07); margin-bottom: 12px; }
.no-results-title { font-family: var(--ff-display); font-size: clamp(22px,3.5vw,34px); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 10px; }
.no-results-desc  { font-size: 14px; color: rgba(255,255,255,0.45); max-width: 440px; line-height: 1.7; }

.no-results-content { padding: 36px 0 56px; }

/* ══════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════ */
.error404-wrap { flex: 1; display: flex; flex-direction: column; }
.error404-hero {
  background: var(--navy); flex: 1;
  display: flex; align-items: center; padding: 60px 0;
  position: relative; overflow: hidden;
}
.error404-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,59,213,0.22) 0%, transparent 70%);
  border-radius: 50%;
}
.error404-inner { position: relative; z-index: 1; text-align: center; width: 100%; }
.error404-num {
  font-family: var(--ff-display); font-size: clamp(80px,16vw,160px);
  font-weight: 900; color: rgba(108,59,213,0.2); line-height: 1;
  letter-spacing: -4px; margin-bottom: 8px;
}
.error404-title {
  font-family: var(--ff-display); font-size: clamp(22px,3.5vw,34px);
  font-weight: 900; color: white; margin-bottom: 12px;
}
.error404-desc {
  font-size: 14px; color: rgba(255,255,255,0.45);
  max-width: 380px; margin: 0 auto 28px; line-height: 1.7;
}
.error404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: white; padding: 11px 22px;
  border-radius: var(--radius-md); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: opacity var(--transition);
}
.btn-primary:hover { opacity: 0.88; color: white; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  padding: 11px 22px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12); transition: all var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); color: white; }

/* ══════════════════════════════════════════
   AUTHOR / ARCHIVE HERO
══════════════════════════════════════════ */
.archive-hero {
  background: var(--navy); padding: 40px 0 32px; position: relative; overflow: hidden;
}
.archive-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(108,59,213,0.2) 0%, transparent 70%); border-radius: 50%;
}
.archive-hero-inner { position: relative; z-index: 1; }
.archive-eyebrow {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--purple-mid); margin-bottom: 8px;
}
.archive-title {
  font-family: var(--ff-display); font-size: clamp(22px,4vw,38px);
  font-weight: 900; color: white; line-height: 1.1; margin-bottom: 8px;
}
.archive-desc { font-size: 14px; color: rgba(255,255,255,0.44); max-width: 460px; line-height: 1.7; }

/* ══════════════════════════════════════════
   SEARCH OVERLAY
══════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0; background: rgba(13,15,26,0.85);
  z-index: 500; display: flex; align-items: flex-start;
  justify-content: center; padding-top: 80px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box {
  background: var(--card); border-radius: var(--radius-lg);
  width: 100%; max-width: 600px; margin: 0 20px; padding: 20px;
  box-shadow: var(--shadow-md);
}
.search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border-2); border-radius: var(--radius-md);
  padding: 10px 14px;
}
.search-input-wrap svg { color: var(--purple); flex-shrink: 0; }
.search-input {
  flex: 1; font-family: var(--ff-body); font-size: 15px;
  color: var(--text); background: none; border: none; outline: none; min-width: 0;
}
.search-input::placeholder { color: var(--text-3); }
.search-close {
  background: var(--surface-2); border: none; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.search-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.search-hint {
  font-size: 12px; color: var(--text-2); background: var(--surface-2);
  padding: 4px 10px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--border); transition: all var(--transition);
}
.search-hint:hover { background: var(--purple); color: white; border-color: var(--purple); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: #0D0F1A; background-color: #0D0F1A;
  border-top: 1px solid rgba(255,255,255,0.07); margin-top: auto;
}
.footer-top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr;
  gap: 0; padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col { padding: 0 28px; border-right: 1px solid rgba(255,255,255,0.06); }
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child  { padding-right: 0; border-right: none; }
.footer-logo {
  font-family: var(--ff-display); font-size: 20px; font-weight: 900;
  color: var(--purple-lt); letter-spacing: -0.5px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; text-decoration: none;
}
.footer-desc { font-size: 12px; color: rgba(255,255,255,0.32); line-height: 1.7; margin-bottom: 14px; }
.footer-col-title {
  font-size: 9px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1.6px; color: rgba(255,255,255,0.26);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-links { display: flex; flex-direction: column; }
.footer-link {
  font-size: 12px; color: rgba(255,255,255,0.44); padding: 4px 0;
  transition: color var(--transition); text-decoration: none; line-height: 1.5;
}
.footer-link:hover { color: rgba(255,255,255,0.88); }
.footer-bottom {
  padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a {
  font-size: 11px; color: rgba(255,255,255,0.22); transition: color var(--transition); text-decoration: none;
}
.footer-legal a:hover { color: rgba(255,255,255,0.55); }
.footer-rg {
  padding: 10px 0 14px; font-size: 11px;
  color: rgba(255,255,255,0.16); line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-rg a { color: rgba(255,255,255,0.32); text-decoration: none; }
.footer-rg a:hover { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════ */
.back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 40px; height: 40px; background: var(--purple); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 100; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(108,59,213,0.4); border: none; cursor: pointer;
}
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-3px); }

/* ══════════════════════════════════════════
   UTILITY
══════════════════════════════════════════ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .blog-layout, .single-layout { grid-template-columns: 1fr; }
  .blog-sidebar  { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 180px; order: -1; }
  .articles-grid  { grid-template-columns: repeat(2,1fr); }
  .nav-links      { display: none; }
  .btn-hamburger  { display: flex; }
  .mobile-nav     { display: block; }
  .footer-top     { grid-template-columns: 1fr 1fr; }
  .footer-col     { padding: 0 18px 22px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .footer-col:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .articles-grid    { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: 1fr; }
  .post-navigation  { grid-template-columns: 1fr; }
  .comment-form-row { grid-template-columns: 1fr; }
  .blog-hero { padding: 32px 0 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-col { padding: 0 0 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 16px; }
  .blog-layout, .single-layout { padding-bottom: 40px; }
  .back-top { bottom: 16px; right: 16px; }
}
@media (max-width: 400px) {
  .blog-hero-title { font-size: 26px; }
  .blog-hero-stat + .blog-hero-stat { padding-left: 16px; }
  .error404-num { letter-spacing: -2px; }
}
