/* ==========================================================================
   DJ4RKOM - NEUBRUTALISM THEME
   Bold, Tactile, High-Contrast, Playful & Modern Brutalist Web Design
   Dj4rkom - Tech & Networking Engineering Blog
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800;900&family=Space+Grotesk:wght@600;700;800&family=Space+Mono:wght@400;700&display=swap');

.lucide {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* --- Neubrutalism Theme Variables --- */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'Space Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Neubrutalism Palette - Light Canvas (Default) */
  --bg-body: #fffef8;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #fef08a; /* Pop Yellow */
  --bg-canvas: #faf8ef;

  /* Hard Brutalist Borders & Shadows */
  --border-width: 3px;
  --border-color: #121212;
  --border-subtle: #e4e4e7;
  --shadow-offset: 5px;
  --shadow-color: #121212;
  --shadow-brutal: var(--shadow-offset) var(--shadow-offset) 0px var(--shadow-color);
  --shadow-brutal-sm: 3px 3px 0px var(--shadow-color);
  --shadow-brutal-lg: 8px 8px 0px var(--shadow-color);
  --shadow-hover: 7px 7px 0px var(--shadow-color);
  --shadow-active: 2px 2px 0px var(--shadow-color);

  /* High-Contrast Colors */
  --text-main: #121212;
  --text-muted: #3f3f46;
  --text-dim: #71717a;
  --text-heading: #09090b;

  /* Vivid Pop Accents */
  --pop-yellow: #ffe600;
  --pop-cyan: #38bdf8;
  --pop-mint: #4ade80;
  --pop-pink: #fb7185;
  --pop-purple: #c084fc;
  --pop-orange: #fb923c;
  --pop-blue: #60a5fa;

  --code-bg: #18181b;
  --code-text: #f4f4f5;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --container-max: 1140px;
  --content-max: 820px;
  --transition-tactile: 0.12s cubic-bezier(0.2, 0.8, 0.4, 1);
}

/* Neubrutalism Dark Mode - Refined Modern Cyber-Brutalist Palette */
[data-theme="dark"] {
  --bg-body: #0d0f17;             /* Deep slate-obsidian canvas */
  --bg-surface: #141824;          /* Sleek, distinct card surface */
  --bg-surface-elevated: #1d2233; /* Elevated components, headers, dropdowns */
  --bg-canvas: #10131d;

  /* Sleek, eye-friendly borders: refined slate border instead of blinding pure white */
  --border-color: #2a3349;
  --shadow-color: #000000;        /* Pure obsidian hard brutalist shadow */
  --shadow-brutal: 5px 5px 0px var(--shadow-color);
  --shadow-brutal-sm: 3px 3px 0px var(--shadow-color);
  --shadow-brutal-lg: 8px 8px 0px var(--shadow-color);
  --shadow-hover: 6px 6px 0px var(--pop-cyan);
  --shadow-active: 2px 2px 0px var(--shadow-color);

  /* High contrast, eye-friendly typography */
  --text-main: #cbd5e1;           /* Slate 300 - soft, comfortable reading */
  --text-muted: #94a3b8;          /* Slate 400 */
  --text-dim: #64748b;            /* Slate 500 */
  --text-heading: #f8fafc;        /* Slate 50 - crisp headings */

  /* Vibrant, non-blinding cyber accents */
  --pop-yellow: #fde047;
  --pop-cyan: #38bdf8;
  --pop-mint: #4ade80;
  --pop-pink: #fb7185;
  --pop-purple: #c084fc;
  --pop-orange: #fb923c;
  --pop-blue: #60a5fa;

  --code-bg: #090b12;
  --code-text: #f1f5f9;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  /* Retro subtle dot grid pattern */
  background-image: radial-gradient(var(--border-color) 0.75px, transparent 0.75px);
  background-size: 24px 24px;
}

[data-theme="dark"] body {
  /* Subtle, comfortable cyber grid in dark mode */
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.2px, transparent 1.2px);
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  background: var(--pop-yellow);
  border-bottom: 2px solid var(--border-color);
  width: 0%;
  z-index: 99999;
  transition: width 0.1s linear;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-top: 1.6rem; margin-bottom: 0.8rem; }
h4 { font-size: 1.15rem; margin-top: 1.2rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Highlighter helper */
.neubrutal-highlight {
  background-color: var(--pop-yellow);
  color: #121212;
  padding: 0.1em 0.4em;
  border: 2px solid var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
  display: inline-block;
  transform: rotate(-1deg);
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .neubrutal-highlight {
  background-color: rgba(253, 224, 71, 0.2);
  color: var(--pop-yellow);
  border-color: var(--pop-yellow);
  box-shadow: 2px 2px 0px #000000;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.content-container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* --- Header & Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-surface);
  border-bottom: var(--border-width) solid var(--border-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
  min-width: 0;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  background: var(--pop-yellow);
  padding: 0.4rem 0.9rem;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal-sm);
  transition: all var(--transition-tactile);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal);
}

.brand-logo span {
  color: #121212;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--pop-mint);
  border: 2px solid #121212;
  border-radius: 50%;
  display: inline-block;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.45rem 1rem;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: 2px 2px 0px var(--border-color);
  transition: all var(--transition-tactile);
}

.nav-link:hover {
  background: var(--pop-cyan);
  color: #121212;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-sm);
}

.nav-link.active {
  background: var(--pop-yellow);
  color: #121212;
  box-shadow: var(--shadow-brutal-sm);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-brutal-sm);
  transition: all var(--transition-tactile);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--pop-pink);
  color: #121212;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal);
}

.btn-icon:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal-sm);
  cursor: pointer;
  transition: all var(--transition-tactile);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-trigger:hover {
  background: var(--pop-mint);
  color: #121212;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal);
}

.search-trigger:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
}

.search-trigger kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #121212;
  color: #ffffff;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .search-trigger kbd {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border-color: var(--border-color);
}

.mobile-nav-toggle {
  display: none;
}

/* --- Hero Section --- */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--pop-pink);
  color: #121212;
  border: var(--border-width) solid var(--border-color);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-brutal-sm);
  transform: rotate(-1.5deg);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-brutal);
  cursor: pointer;
  transition: all var(--transition-tactile);
  text-decoration: none;
}

.btn-primary {
  background: var(--pop-yellow);
  color: #121212;
}

.btn-primary:hover {
  background: #fde047;
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

.btn-secondary {
  background: var(--pop-mint);
  color: #121212;
}

.btn-secondary:hover {
  background: #86efac;
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

/* Feature Pillars (Neubrutalism Bento) */
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
  margin-top: 1rem;
}

.feature-card {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  text-align: left;
  box-shadow: var(--shadow-brutal);
  transition: all var(--transition-tactile);
  position: relative;
  overflow: hidden;
}

.feature-card:nth-child(1) { background-color: var(--pop-cyan); color: #121212; }
.feature-card:nth-child(2) { background-color: var(--pop-yellow); color: #121212; }
.feature-card:nth-child(3) { background-color: var(--pop-pink); color: #121212; }

.feature-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-lg);
}

.feature-sticker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: #121212;
  color: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #121212;
}

.feature-card p {
  font-size: 0.95rem;
  color: #27272a;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.6;
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: var(--border-width) solid var(--border-color);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.section-link {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
  background: var(--pop-cyan);
  padding: 0.45rem 1rem;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-tactile);
}

.section-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal);
}

/* --- Article Cards Grid --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2.2rem;
  margin-bottom: 4.5rem;
}

.post-card {
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-tactile);
  position: relative;
}

.post-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-lg);
}

.post-card-thumb {
  width: 100%;
  height: 220px;
  position: relative;
  background: #f4f4f5;
  border-bottom: var(--border-width) solid var(--border-color);
  overflow: hidden;
  display: block;
}

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

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

.post-card-thumb-fallback {
  width: 100%;
  height: 100%;
  background: var(--pop-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-thumb-fallback svg {
  width: 64px;
  height: 64px;
  color: #121212;
}

.post-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--pop-yellow);
  color: #121212;
  border: 2px solid var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
  transition: all var(--transition-tactile);
  display: inline-block;
}

.tag-badge:hover {
  background: var(--pop-pink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-color);
}

.post-card-title {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  color: var(--text-heading);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: var(--border-width) solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-main);
  font-weight: 700;
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.post-card-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- Single Post Page --- */
.article-container {
  max-width: var(--content-max);
  margin: 3rem auto 5rem;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal-sm);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--text-heading);
  text-decoration: underline;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.article-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--pop-yellow);
  color: #121212;
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-brutal);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.author-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #121212;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  border: 2px solid var(--border-color);
}

/* Featured Image */
.featured-image-box {
  margin: 2.5rem 0 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-brutal);
  background: var(--bg-surface);
}

.featured-image-box img {
  width: 100%;
  display: block;
}

.featured-image-box figcaption {
  padding: 0.9rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--pop-cyan);
  color: #121212;
  border-top: var(--border-width) solid var(--border-color);
  text-align: center;
}

/* Table of Contents */
.toc-box {
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal);
  padding: 1.6rem 2rem;
  margin: 2.5rem 0;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed var(--border-color);
}

.toc-box nav ul {
  list-style: none;
  padding-left: 0;
}

.toc-box nav ul ul {
  padding-left: 1.5rem;
  margin-top: 0.4rem;
}

.toc-box nav li {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.toc-box nav a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc-box nav a:hover {
  background: var(--pop-yellow);
  color: #121212;
}

/* --- Markdown Article Content Typography --- */
.prose {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-main);
  word-break: break-word;
}

.prose p {
  margin-bottom: 1.8rem;
}

.prose h2 {
  font-size: 1.95rem;
  font-weight: 900;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: var(--border-width) solid var(--border-color);
  display: inline-block;
  background: var(--pop-cyan);
  color: #121212;
  padding: 0.3rem 0.8rem;
  box-shadow: var(--shadow-brutal-sm);
  border-radius: var(--radius-sm);
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
}

.prose strong {
  font-weight: 800;
  color: var(--text-heading);
}

.prose ul, .prose ol {
  margin-bottom: 1.8rem;
  padding-left: 2rem;
  font-weight: 500;
}

.prose li {
  margin-bottom: 0.6rem;
}

.prose blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.6rem 2rem;
  background: var(--pop-yellow);
  color: #121212;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal);
  font-weight: 700;
  font-size: 1.1rem;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr {
  margin: 3.5rem 0;
  border: none;
  height: 4px;
  background: var(--border-color);
}

/* Tables */
.prose table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  background: var(--bg-surface);
}

.prose th {
  background: var(--pop-yellow);
  color: #121212;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  padding: 1rem 1.4rem;
  text-align: left;
  border-bottom: var(--border-width) solid var(--border-color);
}

.prose td {
  padding: 1rem 1.4rem;
  border-bottom: 2px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 600;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:hover td {
  background: var(--pop-mint);
  color: #121212;
}

/* Inline Code */
.prose code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 700;
  padding: 0.2em 0.5em;
  border-radius: var(--radius-sm);
  background: var(--pop-pink);
  color: #121212;
  border: 2px solid var(--border-color);
}

/* Code Highlight Block */
.highlight {
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-width) solid var(--border-color);
  background: var(--code-bg);
  box-shadow: var(--shadow-brutal);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.4rem;
  background: #27272a;
  border-bottom: var(--border-width) solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.code-dots {
  display: flex;
  gap: 8px;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #000;
}

.code-dot.red { background-color: #ef4444; }
.code-dot.yellow { background-color: #f59e0b; }
.code-dot.green { background-color: #10b981; }

.copy-code-btn {
  background: var(--pop-yellow);
  color: #121212;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--border-color);
  transition: all var(--transition-tactile);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.copy-code-btn:hover {
  background: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-color);
}

.highlight pre {
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--code-text);
}

/* Images in Prose */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 2.5rem auto;
  display: block;
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-brutal);
}

/* --- Social Share Bar --- */
.share-bar {
  margin: 4rem 0 3rem;
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-brutal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.share-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-brutal-sm);
  transition: all var(--transition-tactile);
  cursor: pointer;
  color: #121212;
}

.share-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal);
}

.share-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
}

.share-btn.whatsapp { background: var(--pop-mint); }
.share-btn.twitter { background: var(--pop-cyan); }
.share-btn.telegram { background: var(--pop-blue); }
.share-btn.copy-link { background: var(--pop-yellow); }

/* Post Navigation (Prev / Next) */
.post-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
  margin: 3.5rem 0;
}

.post-nav-card {
  padding: 1.6rem;
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal);
  transition: all var(--transition-tactile);
  display: flex;
  flex-direction: column;
}

.post-nav-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-lg);
  background: var(--pop-yellow);
}

.post-nav-card:hover .post-nav-title {
  color: #121212;
}

.post-nav-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.post-nav-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.35;
}

/* Author Box at End of Post */
.post-author-box {
  margin: 3.5rem 0;
  padding: 2.2rem;
  background: var(--pop-yellow);
  color: #121212;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #121212;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  flex-shrink: 0;
  border: 3px solid var(--border-color);
}

.author-box-info h4 {
  font-size: 1.35rem;
  color: #121212;
  margin: 0 0 0.4rem 0;
}

.author-box-info p {
  color: #27272a;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.author-box-info .author-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  background: #121212;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}

/* --- Penulis / Team Showcase Page --- */
.team-hero {
  text-align: center;
  padding: 3.5rem 0 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0 4.5rem;
}

.member-card {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-brutal);
  transition: all var(--transition-tactile);
  color: #121212;
}

/* Colorful Member Cards */
.member-card:nth-child(1) { background-color: var(--pop-cyan); }
.member-card:nth-child(2) { background-color: var(--pop-yellow); }
.member-card:nth-child(3) { background-color: var(--pop-pink); }
.member-card:nth-child(4) { background-color: var(--pop-mint); }
.member-card:nth-child(5) { background-color: var(--pop-purple); }

.member-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-brutal-lg);
}

.member-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  background: #121212;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-brutal-sm);
}

.member-name {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  color: #121212;
}

.member-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: #121212;
  color: #ffffff;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-sm);
}

.member-univ {
  font-size: 0.875rem;
  font-weight: 700;
  color: #27272a;
}

/* --- Search Modal (Neubrutalism Window) --- */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-tactile);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 100%;
  max-width: 660px;
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal-lg);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform var(--transition-tactile);
}

.search-modal.active .search-box {
  transform: translateY(0);
}

.search-header {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.6rem;
  background: var(--pop-yellow);
  border-bottom: var(--border-width) solid var(--border-color);
  gap: 1rem;
}

.search-header svg {
  color: #121212;
  width: 24px;
  height: 24px;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #121212;
  outline: none;
}

.search-input::placeholder {
  color: #52525b;
}

.search-close-btn {
  background: #121212;
  color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--border-color);
}

.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
}

.search-result-item {
  padding: 1rem 1.2rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  box-shadow: 2px 2px 0px var(--border-color);
  display: block;
  text-decoration: none;
  background: var(--bg-surface);
  transition: all var(--transition-tactile);
}

.search-result-item:hover {
  background: var(--pop-mint);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-sm);
}

.search-result-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #121212;
  margin-bottom: 0.25rem;
}

.search-result-snippet {
  font-size: 0.9rem;
  color: #27272a;
  font-weight: 500;
}

.search-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 700;
}

/* --- Toast Notification --- */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--pop-yellow);
  color: #121212;
  border: var(--border-width) solid var(--border-color);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120px);
  opacity: 0;
  transition: all var(--transition-tactile);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- 404 Page --- */
.error-page {
  padding: 6rem 0;
  text-align: center;
}

.error-badge {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #121212;
  background: var(--pop-pink);
  border: var(--border-width) solid var(--border-color);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-brutal-sm);
}

.error-title {
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.error-terminal {
  max-width: 580px;
  margin: 2.5rem auto;
  background: #18181b;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal);
  padding: 1.5rem 1.8rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #4ade80;
  line-height: 1.8;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: var(--border-width) solid var(--border-color);
  padding: 4rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

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

.footer-about p {
  margin-top: 1rem;
  max-width: 400px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col a:hover {
  background: var(--pop-yellow);
  color: #121212;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: var(--border-width) solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--pop-mint);
  color: #121212;
  border: 2px solid var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
}

/* --- Mobile Drawer --- */
.mobile-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  background: var(--bg-surface);
  border-bottom: var(--border-width) solid var(--border-color);
  z-index: 999;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-tactile);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-heading);
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--border-color);
}

/* ==========================================================================
   DARK THEME COMPONENT REFINEMENTS
   Aesthetic, High-Contrast, Eye-Friendly Modern Cyber-Brutalism
   ========================================================================== */

/* Header & Navigation in Dark Mode */
[data-theme="dark"] .brand-logo {
  background: var(--pop-yellow);
  color: #121212;
  border-color: #000000;
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .brand-logo:hover {
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .nav-link {
  background: var(--bg-surface);
  color: #e2e8f0;
  border-color: var(--border-color);
  box-shadow: 2px 2px 0px #000000;
}

[data-theme="dark"] .nav-link:hover {
  background: var(--pop-cyan);
  color: #121212;
  border-color: #000000;
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .nav-link.active {
  background: var(--pop-yellow);
  color: #121212;
  border-color: #000000;
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .btn-icon {
  background: var(--bg-surface);
  color: #f8fafc;
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .btn-icon:hover {
  background: var(--pop-pink);
  color: #121212;
  border-color: #000000;
  box-shadow: 4px 4px 0px #000000;
}

[data-theme="dark"] .search-trigger {
  background: var(--bg-surface);
  color: #f8fafc;
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .search-trigger:hover {
  background: var(--pop-mint);
  color: #121212;
  border-color: #000000;
  box-shadow: 4px 4px 0px #000000;
}

/* Hero Section in Dark Mode */
[data-theme="dark"] .hero-badge {
  background: rgba(251, 113, 133, 0.16);
  color: var(--pop-pink);
  border-color: var(--pop-pink);
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .btn-primary {
  background: var(--pop-yellow);
  color: #121212;
  border-color: #000000;
  box-shadow: 4px 4px 0px #000000;
}

[data-theme="dark"] .btn-primary:hover {
  background: #fef08a;
  box-shadow: 6px 6px 0px #000000;
}

[data-theme="dark"] .btn-secondary {
  background: var(--bg-surface);
  color: #f8fafc;
  border-color: var(--border-color);
  box-shadow: 4px 4px 0px #000000;
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--pop-mint);
  color: var(--pop-mint);
  box-shadow: 6px 6px 0px #000000;
}

/* Feature Bento Cards in Dark Mode (No glare, sleek cyber borders) */
[data-theme="dark"] .feature-card {
  background-color: var(--bg-surface) !important;
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .feature-card h3 {
  color: #ffffff;
}

[data-theme="dark"] .feature-card p {
  color: var(--text-muted);
}

[data-theme="dark"] .feature-card .feature-sticker {
  background: var(--bg-surface-elevated);
  color: var(--pop-yellow);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .feature-card:nth-child(1) {
  border-top: 5px solid var(--pop-cyan);
}

[data-theme="dark"] .feature-card:nth-child(1) .feature-sticker {
  color: var(--pop-cyan);
  border-color: rgba(56, 189, 248, 0.35);
}

[data-theme="dark"] .feature-card:nth-child(2) {
  border-top: 5px solid var(--pop-yellow);
}

[data-theme="dark"] .feature-card:nth-child(2) .feature-sticker {
  color: var(--pop-yellow);
  border-color: rgba(253, 224, 71, 0.35);
}

[data-theme="dark"] .feature-card:nth-child(3) {
  border-top: 5px solid var(--pop-pink);
}

[data-theme="dark"] .feature-card:nth-child(3) .feature-sticker {
  color: var(--pop-pink);
  border-color: rgba(251, 113, 133, 0.35);
}

[data-theme="dark"] .feature-card:hover {
  border-color: var(--pop-cyan);
  box-shadow: 8px 8px 0px #000000;
}

/* Section Header in Dark Mode */
[data-theme="dark"] .section-link {
  background: var(--bg-surface);
  color: var(--pop-cyan);
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .section-link:hover {
  background: var(--pop-cyan);
  color: #121212;
  border-color: #000000;
  box-shadow: 5px 5px 0px #000000;
}

/* Post Cards in Dark Mode */
[data-theme="dark"] .post-card {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .post-card:hover {
  border-color: var(--pop-cyan);
  box-shadow: 7px 7px 0px var(--pop-cyan);
}

[data-theme="dark"] .post-card-thumb {
  background: #10141f;
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .post-card-thumb-fallback {
  background: #181f2f;
}

[data-theme="dark"] .post-card-thumb-fallback svg {
  color: var(--pop-yellow);
}

[data-theme="dark"] .tag-badge {
  background: var(--bg-surface-elevated);
  color: var(--pop-yellow);
  border-color: var(--border-color);
  box-shadow: 2px 2px 0px #000000;
}

[data-theme="dark"] .tag-badge:hover {
  background: var(--pop-yellow);
  color: #121212;
  border-color: #000000;
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .post-card-title {
  color: #f8fafc;
}

[data-theme="dark"] .post-card-title a:hover {
  color: var(--pop-cyan);
}

[data-theme="dark"] .post-card-excerpt {
  color: var(--text-muted);
}

[data-theme="dark"] .post-card-meta {
  border-top-color: var(--border-color);
  color: var(--text-dim);
}

/* Single Post Page in Dark Mode */
[data-theme="dark"] .breadcrumbs {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px #000000;
  color: var(--text-muted);
}

[data-theme="dark"] .breadcrumbs a {
  color: var(--pop-cyan);
}

[data-theme="dark"] .article-meta-bar {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
  border-left: 6px solid var(--pop-yellow);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .author-avatar-sm {
  background: var(--pop-yellow);
  color: #121212;
  border-color: #000000;
}

[data-theme="dark"] .featured-image-box {
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .featured-image-box figcaption {
  background: var(--bg-surface-elevated);
  color: var(--pop-cyan);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .toc-box {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .toc-title {
  color: #ffffff;
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .toc-box nav a {
  color: var(--text-main);
}

[data-theme="dark"] .toc-box nav a:hover {
  background: rgba(56, 189, 248, 0.18);
  color: var(--pop-cyan);
}

/* Prose Markdown Typography in Dark Mode */
[data-theme="dark"] .prose h2 {
  background: rgba(56, 189, 248, 0.12);
  color: var(--pop-cyan);
  border: 2px solid var(--pop-cyan);
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .prose blockquote {
  background: var(--bg-surface-elevated);
  color: #f1f5f9;
  border-color: var(--border-color);
  border-left: 6px solid var(--pop-yellow);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .prose table {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .prose th {
  background: var(--bg-surface-elevated);
  color: var(--pop-yellow);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .prose td {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .prose tr:hover td {
  background: rgba(56, 189, 248, 0.08);
  color: #ffffff;
}

[data-theme="dark"] .prose code:not(pre code) {
  background: var(--bg-surface-elevated);
  color: var(--pop-pink);
  border-color: var(--border-color);
}

[data-theme="dark"] .highlight {
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .code-header {
  background: #111520;
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .copy-code-btn {
  background: var(--bg-surface-elevated);
  color: var(--pop-yellow);
  border-color: var(--border-color);
  box-shadow: 2px 2px 0px #000000;
}

[data-theme="dark"] .copy-code-btn:hover {
  background: var(--pop-yellow);
  color: #121212;
  border-color: #000000;
}

[data-theme="dark"] .share-bar {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .share-label {
  color: #ffffff;
}

[data-theme="dark"] .share-btn {
  border-color: #000000;
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .post-navigation .post-nav-card {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .post-navigation .post-nav-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--pop-yellow);
  box-shadow: 7px 7px 0px var(--pop-yellow);
}

[data-theme="dark"] .post-navigation .post-nav-card:hover .post-nav-title {
  color: var(--pop-yellow);
}

[data-theme="dark"] .post-author-box {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
  border-left: 6px solid var(--pop-yellow);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .author-box-avatar {
  background: var(--pop-yellow);
  color: #121212;
  border-color: #000000;
}

[data-theme="dark"] .author-box-info h4 {
  color: #ffffff;
}

[data-theme="dark"] .author-box-info p {
  color: var(--text-muted);
}

[data-theme="dark"] .author-box-info .author-badge {
  background: var(--bg-surface-elevated);
  color: var(--pop-yellow);
  border: 1px solid var(--border-color);
}

/* Team / Penulis Member Cards in Dark Mode */
[data-theme="dark"] .member-card {
  background-color: var(--bg-surface) !important;
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .member-card .member-name {
  color: #ffffff;
}

[data-theme="dark"] .member-card .member-univ {
  color: var(--text-muted);
}

[data-theme="dark"] .member-card .member-avatar {
  background: var(--bg-surface-elevated);
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px #000000;
}

[data-theme="dark"] .member-card .member-role {
  background: var(--bg-surface-elevated);
  color: #f8fafc;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .member-card:nth-child(1) {
  border-top: 5px solid var(--pop-cyan);
}

[data-theme="dark"] .member-card:nth-child(1) .member-avatar {
  color: var(--pop-cyan);
  border-color: var(--pop-cyan);
}

[data-theme="dark"] .member-card:nth-child(1) .member-role {
  color: var(--pop-cyan);
}

[data-theme="dark"] .member-card:nth-child(2) {
  border-top: 5px solid var(--pop-yellow);
}

[data-theme="dark"] .member-card:nth-child(2) .member-avatar {
  color: var(--pop-yellow);
  border-color: var(--pop-yellow);
}

[data-theme="dark"] .member-card:nth-child(2) .member-role {
  color: var(--pop-yellow);
}

[data-theme="dark"] .member-card:nth-child(3) {
  border-top: 5px solid var(--pop-pink);
}

[data-theme="dark"] .member-card:nth-child(3) .member-avatar {
  color: var(--pop-pink);
  border-color: var(--pop-pink);
}

[data-theme="dark"] .member-card:nth-child(3) .member-role {
  color: var(--pop-pink);
}

[data-theme="dark"] .member-card:nth-child(4) {
  border-top: 5px solid var(--pop-mint);
}

[data-theme="dark"] .member-card:nth-child(4) .member-avatar {
  color: var(--pop-mint);
  border-color: var(--pop-mint);
}

[data-theme="dark"] .member-card:nth-child(4) .member-role {
  color: var(--pop-mint);
}

[data-theme="dark"] .member-card:nth-child(5) {
  border-top: 5px solid var(--pop-purple);
}

[data-theme="dark"] .member-card:nth-child(5) .member-avatar {
  color: var(--pop-purple);
  border-color: var(--pop-purple);
}

[data-theme="dark"] .member-card:nth-child(5) .member-role {
  color: var(--pop-purple);
}

[data-theme="dark"] .member-card:hover {
  box-shadow: 8px 8px 0px #000000;
  border-color: var(--pop-cyan);
}

/* Search Modal in Dark Mode */
[data-theme="dark"] .search-box {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 8px 8px 0px #000000;
}

[data-theme="dark"] .search-header {
  background: var(--bg-surface-elevated);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .search-header svg {
  color: var(--pop-yellow);
}

[data-theme="dark"] .search-input {
  color: #ffffff;
}

[data-theme="dark"] .search-input::placeholder {
  color: var(--text-dim);
}

[data-theme="dark"] .search-close-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border-color: var(--border-color);
}

[data-theme="dark"] .search-result-item {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 2px 2px 0px #000000;
}

[data-theme="dark"] .search-result-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--pop-cyan);
  box-shadow: 4px 4px 0px #000000;
}

[data-theme="dark"] .search-result-title {
  color: #ffffff;
}

[data-theme="dark"] .search-result-snippet {
  color: var(--text-muted);
}

/* Toast Notice & Error Terminal in Dark Mode */
[data-theme="dark"] .toast-notice {
  background: var(--bg-surface-elevated);
  color: #ffffff;
  border-color: var(--pop-yellow);
  box-shadow: 5px 5px 0px #000000;
}

[data-theme="dark"] .error-terminal {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 5px 5px 0px #000000;
}

/* Footer & Drawer in Dark Mode */
[data-theme="dark"] .site-footer {
  background: #090b10;
  border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-col h4 {
  color: #ffffff;
}

[data-theme="dark"] .footer-col a {
  color: var(--text-muted);
}

[data-theme="dark"] .footer-col a:hover {
  background: rgba(253, 224, 71, 0.15);
  color: var(--pop-yellow);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--border-color);
  color: var(--text-dim);
}

[data-theme="dark"] .footer-status {
  background: var(--bg-surface-elevated);
  color: var(--pop-mint);
  border-color: var(--border-color);
  box-shadow: 2px 2px 0px #000000;
}

[data-theme="dark"] .mobile-drawer {
  background: var(--bg-surface);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .mobile-nav-links a {
  color: #f8fafc;
  border-bottom-color: var(--border-color);
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Hide kbd shortcut on tablet / medium mobile */
  .search-kbd {
    display: none;
  }

  .search-trigger {
    padding: 0.45rem 0.75rem;
    gap: 0.45rem;
  }

  .header-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar {
    height: 64px;
    gap: 0.5rem;
  }

  /* Compact Brand Logo on Mobile so it never overflows */
  .brand-logo {
    font-size: 1.15rem;
    padding: 0.35rem 0.65rem;
    gap: 0.4rem;
  }

  .brand-logo svg {
    width: 17px;
    height: 17px;
  }

  .pulse-dot {
    width: 8px;
    height: 8px;
  }

  .header-actions {
    gap: 0.4rem;
  }

  /* Buttons on mobile */
  .btn-icon {
    width: 38px;
    height: 38px;
  }

  .btn-icon svg {
    width: 18px;
    height: 18px;
  }

  /* Search Trigger turns into compact icon-only button on mobile */
  .search-trigger {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }

  .search-trigger svg {
    width: 17px;
    height: 17px;
  }

  .search-trigger .search-text,
  .search-trigger .search-kbd {
    display: none;
  }

  .mobile-drawer {
    top: 64px;
    height: calc(100vh - 64px);
  }

  .hero-section {
    padding: 2.8rem 0 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-author-box {
    flex-direction: column;
    text-align: center;
  }

  .share-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .btn-icon,
  .search-trigger {
    width: 34px;
    height: 34px;
  }
}
