/* ============================================
   BUBBA v2 — Brutalist Premium
   Font: Archivo Black (display) + Space Grotesk (body)
   Accent: #c8ff00 (neon lime)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --neon: #c8ff00;
  --neon-dim: rgba(200,255,0,0.15);
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --card-bg: #0f0f0f;
  --border: #1e1e1e;
  --border-bright: #2e2e2e;
  --text: #ffffff;
  --text-dim: #888;
  --text-muted: #444;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --radius: 0px;
  --max-w: 1320px;
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* ── Selection ───────────────────────────── */
::selection { background: var(--neon); color: var(--bg); }

/* ═══════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border-bottom: 3px solid var(--neon);
  background: var(--bg);
}
.logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--neon);
  padding: 18px 32px;
  letter-spacing: -1px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.category-nav {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}
.category-nav a:first-child { border-left: 1px solid var(--border); }
.category-nav a:hover, .category-nav a.active {
  background: var(--neon);
  color: var(--bg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0;
  border-left: 1px solid var(--border);
}
.header-actions button {
  width: 52px;
  height: 100%;
  min-height: 56px;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-actions button:hover {
  background: var(--neon);
  color: var(--bg);
}

/* ═══════════════════════════════════════════
   HOME — HERO
   ═══════════════════════════════════════════ */
.home-body {
  padding-top: 56px; /* header height */
}

/* ── Hero ───────────────────────────────── */
.home-hero {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 40px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-left::before {
  content: 'BUBBA';
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 260px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(200,255,0,0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-left > * { position: relative; z-index: 1; }
.kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--neon);
  margin-bottom: 24px;
}
.hero-left h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -2px;
  margin-bottom: 32px;
}
.hero-left h1 .accent { color: var(--neon); }
.hero-left p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--neon);
  color: var(--bg);
  padding: 16px 36px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.2s;
  align-self: flex-start;
}
.hero-cta:hover {
  background: #fff;
  transform: translateX(4px);
}

/* ── Hero Right (featured post) ─────────── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.hero-featured-card {
  background: var(--card-bg);
  border: 1px solid var(--border-bright);
  width: 100%;
  max-width: 520px;
  transition: all 0.3s;
  transform: rotate(-1deg);
}
.hero-featured-card:hover {
  border-color: var(--neon);
  transform: rotate(0deg);
}
.hero-featured-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: grayscale(0.2);
}
.hero-featured-body { padding: 32px; }
.hero-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon);
  margin-bottom: 14px;
}
.hero-featured-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-featured-body p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}
.hero-meta {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════
   AREAS GRID
   ═══════════════════════════════════════════ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}
.area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.area:last-child { border-right: none; }
.area::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.area:hover::before, .area.active::before { transform: scaleX(1); }
.area:hover, .area.active {
  background: var(--neon-dim);
}
.area strong {
  font-family: var(--font-display);
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
.area:hover strong, .area.active strong { color: var(--neon); }
.area span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.area:hover span, .area.active span { color: var(--text-dim); }

/* ═══════════════════════════════════════════
   SECTION HEAD + FILTERS
   ═══════════════════════════════════════════ */
.section-head {
  padding: 48px 40px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}
.section-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.filters {
  display: flex;
  gap: 0;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter:hover { color: var(--text); background: var(--neon-dim); }
.filter.active { background: var(--neon); color: var(--bg); }

/* ═══════════════════════════════════════════
   POST GRID
   ═══════════════════════════════════════════ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.post-card {
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  background: #111;
  border-color: var(--neon);
  z-index: 1;
}
.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: all 0.3s;
}
.post-card:hover img { filter: grayscale(0); }
.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon);
  margin-bottom: 10px;
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 10px;
  flex: 1;
}
.post-card:hover h3 { color: var(--neon); }
.post-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  margin-top: 16px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════
   PAGER
   ═══════════════════════════════════════════ */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 40px;
  border-bottom: 1px solid var(--border);
}
.pager button {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pager button:hover:not(:disabled) { border-color: var(--neon); color: var(--neon); }
.pager button.active { background: var(--neon); color: var(--bg); border-color: var(--neon); }
.pager button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ═══════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.site-footer a { color: var(--text-muted); transition: color 0.2s; }
.site-footer a:hover { color: var(--neon); }

/* ═══════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════ */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.95);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
#search-overlay.open { display: flex; }
#search-box {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
}
#search-input {
  width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--neon);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  padding: 20px 24px;
  outline: none;
  caret-color: var(--neon);
}
#search-input::placeholder { color: var(--text-muted); }
#search-results {
  margin-top: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.search-result {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 20px 24px;
  transition: all 0.2s;
}
.search-result:last-child { border-bottom: 1px solid var(--border); }
.search-result:hover { background: #111; border-color: var(--neon); }
.search-result a {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.search-result:hover a { color: var(--neon); }
.sr-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--neon); margin-bottom: 4px; }
.sr-desc { font-size: 13px; color: var(--text-dim); }

/* ═══════════════════════════════════════════
   CATEGORY PAGE
   ═══════════════════════════════════════════ */
.page-header {
  padding: 80px 40px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -2px;
}
.page-header h1 .accent { color: var(--neon); }
.page-header p { font-size: 15px; color: var(--text-dim); max-width: 500px; }
.page-count {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 8px;
}
.page-header + .home-body .post-grid {
  border-top: none;
}

/* ═══════════════════════════════════════════
   ARTICLE / POST TEMPLATE
   ═══════════════════════════════════════════ */
.article-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Breadcrumb ──────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb span { color: var(--text-muted); padding: 0 8px; }

/* ── Progress Bar ───────────────────────── */
.progress-bar {
  position: fixed;
  top: 56px;
  left: 0;
  height: 3px;
  background: var(--neon);
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Post Header ─────────────────────────── */
.post-header {
  padding: 60px 40px 48px;
  border-bottom: 3px solid var(--neon);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: end;
}
.post-header-left .eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--neon);
  margin-bottom: 20px;
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.post-header .description {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 600px;
}
.post-header-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}
.post-date, .post-readtime {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-date::before, .post-readtime::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--border-bright);
}

/* ── Hero Image ──────────────────────────── */
.post-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* ── Post Body Layout ───────────────────── */
.post-body-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

/* ── Article Body ───────────────────────── */
.article-body {
  padding: 48px 40px 80px;
  border-right: 1px solid var(--border);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 760px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--text);
  margin: 48px 0 20px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin: 36px 0 14px;
}
.article-body p { margin-bottom: 24px; }
.article-body p:first-child { font-size: 19px; color: var(--text); line-height: 1.7; }
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--neon);
  padding-left: 24px;
  margin: 32px 0;
  font-size: 19px;
  color: var(--text);
  font-style: italic;
}
.article-body a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.article-body img {
  width: 100%;
  margin: 32px 0;
  filter: grayscale(0.1);
}

/* ── ToC Sidebar ────────────────────────── */
.toc-sidebar {
  position: sticky;
  top: 56px;
  height: fit-content;
  padding: 32px 24px;
  overflow-y: auto;
  max-height: calc(100vh - 56px);
}
.toc-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0; }
.toc-list a {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  padding: 7px 12px;
  border-left: 2px solid var(--border);
  transition: all 0.2s;
  line-height: 1.4;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--neon);
  border-color: var(--neon);
  background: var(--neon-dim);
}

/* ── Share Bar ──────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-right: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.share-btn:hover { border-color: var(--neon); color: var(--neon); background: var(--neon-dim); }
.share-btn.primary { background: var(--neon); color: var(--bg); border-color: var(--neon); }
.share-btn.primary:hover { background: #fff; border-color: #fff; }

/* ── Related Posts ──────────────────────── */
.related-posts {
  padding: 60px 40px;
  border-top: 3px solid var(--neon);
}
.related-title {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.related-card {
  background: var(--card-bg);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.related-card:hover { background: #111; }
.related-card:hover .related-card-title { color: var(--neon); }
.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  filter: grayscale(0.2);
}
.related-card-body { padding: 20px; }
.related-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--neon); margin-bottom: 8px; }
.related-card-title { font-family: var(--font-display); font-size: 15px; line-height: 1.3; transition: color 0.2s; }
.related-card-meta { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; }

/* ═══════════════════════════════════════════
   DARK TOGGLE
   ═══════════════════════════════════════════ */
[data-dark="true"] {
  --bg: #f0f0f0;
  --bg-alt: #e8e8e8;
  --card-bg: #ffffff;
  --border: #d8d8d8;
  --border-bright: #c0c0c0;
  --text: #111;
  --text-dim: #555;
  --text-muted: #999;
  --neon: #5a9a00;
  --neon-dim: rgba(90,154,0,0.12);
}
[data-dark="true"] .logo { color: #5a9a00; }
[data-dark="true"] .hero-left::before { -webkit-text-stroke-color: rgba(90,154,0,0.07); }
[data-dark="true"] .article-body h2 { border-color: #d0d0d0; }
[data-dark="true"] .article-body p:first-child { color: #222; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }
  .post-header { grid-template-columns: 1fr; }
  .post-body-layout { grid-template-columns: 1fr; }
  .toc-sidebar { display: none; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo { padding: 16px 20px; font-size: 20px; }
  .category-nav a { padding: 0 14px; font-size: 10px; }
  .hero-left { padding: 60px 20px; }
  .hero-left h1 { font-size: 44px; }
  .post-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body { padding: 32px 20px; }
  .post-header { padding: 40px 20px; }
  .section-head { padding: 32px 20px 16px; }
  .filters { padding: 0 20px; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .share-bar { flex-wrap: wrap; padding: 20px; }
}
