/* ═══════════════════════════════════════════════════════
   DROID CLI — Premium Blog Styles
   Dark Futuristic Terminal & Glassmorphic Aesthetic
   ═══════════════════════════════════════════════════════ */

:root {
  --blog-max-width: 760px;
  --blog-grid-max: 1200px;

  /* HSL Color Tokens — Tailored Harmonious Palette */
  --h-deep-dark: 224;
  --bg-deep: hsl(var(--h-deep-dark), 30%, 5%);
  --bg-surface: hsla(var(--h-deep-dark), 25%, 8%, 0.4);
  --bg-card: hsla(var(--h-deep-dark), 25%, 8%, 0.35);
  --bg-elevated: hsla(var(--h-deep-dark), 25%, 12%, 0.65);
  
  --text-bright: #fafafa;
  --text-primary: #d4d4d8;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent: #ffffff;
  --accent-hover: #f4f4f5;
  --accent-glow: rgba(255, 255, 255, 0.1);
  --accent-glow-strong: rgba(255, 255, 255, 0.2);
  
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-active: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(255, 255, 255, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode {
  --bg-deep: #f7f6f1;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-elevated: #ffffff;
  
  --text-bright: #0f172a;
  --text-primary: #334155;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent: #0f172a;
  --accent-hover: #334155;
  --accent-glow: rgba(15, 23, 42, 0.05);
  --accent-glow-strong: rgba(15, 23, 42, 0.1);
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(15, 23, 42, 0.15);
  --border-accent: rgba(15, 23, 42, 0.2);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
  overflow-x: hidden;
}

/* Smooth background grid layout */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
  z-index: -10;
  pointer-events: none;
  opacity: 0.4;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ NAV BAR (Glassmorphic) ═══ */
.blog-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: hsla(var(--h-deep-dark), 30%, 5%, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, border-color 0.3s;
}
.blog-nav .nav-inner {
  max-width: var(--blog-grid-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 72px;
}
.blog-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-nav .nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700; font-size: 1.2rem; color: var(--text-bright);
  letter-spacing: -0.02em;
}
.blog-nav .nav-logo img {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s var(--ease-spring);
}
.blog-nav .nav-logo:hover img {
  transform: rotate(6deg) scale(1.05);
}
.blog-nav .nav-logo .cursor {
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.blog-nav .nav-links { display: flex; gap: 32px; align-items: center; }
.blog-nav .nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  padding: 4px 0;
}
.blog-nav .nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
}
.blog-nav .nav-links a:hover { color: var(--text-bright); }
.blog-nav .nav-links a.active { color: var(--text-bright); font-weight: 600; }
.blog-nav .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.blog-nav .nav-cta {
  background: var(--text-bright); color: var(--bg-deep); border: none;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.blog-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

/* Theme Toggle Button Styling */
.theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-bright);
  transition: all 0.3s var(--ease-out-expo);
  padding: 0;
}
.theme-toggle:hover {
  background-color: var(--accent-glow);
  border-color: var(--accent);
  transform: scale(1.06) rotate(15deg);
}
body.light-mode .theme-toggle .sun-icon { display: none; }
body:not(.light-mode) .theme-toggle .moon-icon { display: none; }

.blog-nav .hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 6px; padding: 6px;
}
.blog-nav .hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text-bright); border-radius: 2px;
  transition: all 0.3s;
}

/* ═══ PAGE HEADER ═══ */
.blog-header {
  padding: 140px 32px 32px;
  max-width: var(--blog-grid-max); margin: 0 auto;
  text-align: left;
}
.blog-header h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 800; color: var(--text-bright);
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 0;
}
body.light-mode .blog-header h1 {
  color: #0f172a !important;
}

/* ═══ FEATURED POST CARD (Premium Split Bento Hero) ═══ */
.featured-post-section {
  max-width: var(--blog-grid-max);
  margin: 0 auto;
  padding: 0 32px 56px;
}
.featured-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.featured-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
  background: var(--bg-surface);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 64px rgba(0,0,0,0.35);
}
body.light-mode .featured-card {
  border-color: rgba(15, 23, 42, 0.05);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.06);
}
body.light-mode .featured-card:hover {
  box-shadow: 0 30px 64px rgba(15, 23, 42, 0.1);
}

.featured-card-left {
  background: #090c15;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  height: 100%;
  position: relative;
}
body.light-mode .featured-card-left {
  background: #0f172a;
}

.featured-card-right {
  background-size: cover;
  background-position: center;
  height: 100%;
}

.featured-tag-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  width: fit-content;
  display: inline-block;
}

.featured-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.featured-excerpt {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.3s;
}
.btn-circle-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s var(--ease-spring);
}
.btn-circle-arrow svg {
  width: 18px;
  height: 18px;
}
.featured-card:hover .btn-circle-arrow {
  background: #4f46e5;
  transform: translateX(4px);
}

/* ═══ FILTERS & SEARCH ROW ═══ */
.filters-search-row {
  max-width: var(--blog-grid-max);
  margin: 0 auto 40px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  flex-wrap: wrap;
  gap: 20px;
}

.category-tabs {
  display: flex;
  align-items: center;
  background: #0f172a;
  padding: 6px;
  border-radius: 100px;
  gap: 6px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
body.light-mode .category-tabs {
  background: #0f172a;
  border: none;
}

.tab-link {
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  display: flex;
  align-items: center;
  position: relative;
}
body.light-mode .tab-link {
  color: #94a3b8 !important;
}
.tab-link::after {
  display: none;
}
.tab-link:hover {
  color: #fafafa;
}
body.light-mode .tab-link:hover {
  color: #fafafa !important;
}
.tab-link.active {
  background: #ffffff;
  color: #0f172a !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
body.light-mode .tab-link.active {
  color: #0f172a !important;
}

.tab-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: #818cf8;
  background: rgba(129, 140, 248, 0.15);
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 8px;
  transition: all 0.25s var(--ease-out-expo);
}
.tab-link.active .tab-badge {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.search-box-container {
  position: relative;
  margin-bottom: 0;
}

.search-input {
  font-family: 'Inter', sans-serif;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 0 42px 0 20px;
  color: var(--text-bright);
  font-size: 0.88rem;
  width: 250px;
  height: 48px;
  transition: all 0.3s var(--ease-out-expo);
}
body.light-mode .search-input {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

.search-input:focus {
  width: 320px;
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
body.light-mode .search-input:focus {
  border-color: #6366f1 !important;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  pointer-events: none;
  transition: stroke 0.2s;
}
.search-input:focus ~ .search-icon {
  stroke: #6366f1;
}

/* ═══ POST CARDS GRID ═══ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 36px;
  max-width: var(--blog-grid-max); margin: 0 auto;
  padding: 0 32px 80px;
}

.post-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.4s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
}
.post-card::before {
  display: none; /* remove background bento glow */
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

.post-card-img-container {
  width: 100%; height: 230px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  transition: border-color 0.3s;
}
body.light-mode .post-card-img-container {
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.post-card:hover .post-card-img-container {
  border-color: rgba(99, 102, 241, 0.3);
}

.post-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.post-card:hover .post-card-img {
  transform: scale(1.04);
}

.post-card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, hsla(var(--h-deep-dark), 25%, 4%, 0.8) 0%, hsla(var(--h-deep-dark), 20%, 10%, 0.8) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem; color: var(--accent);
  opacity: 0.35;
}

.post-card-body {
  padding: 20px 4px 0 4px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  width: 100%;
}

.post-card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.post-card-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  width: fit-content;
  margin-bottom: 0;
  transition: all 0.3s;
}
body.light-mode .post-card-category {
  background: rgba(99, 102, 241, 0.06);
  color: #4f46e5 !important;
  border-color: rgba(99, 102, 241, 0.12);
}

.post-card-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.28rem; font-weight: 700; color: var(--text-bright);
  line-height: 1.35; margin-bottom: 10px;
  transition: color 0.2s;
}
body.light-mode .post-card-title {
  color: #0f172a !important;
}
.post-card:hover .post-card-title {
  color: #6366f1;
}
body.light-mode .post-card:hover .post-card-title {
  color: #4f46e5 !important;
}

.post-card-excerpt {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65;
}
body.light-mode .post-card-excerpt {
  color: #475569 !important;
}

.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px 0 4px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem; color: var(--text-muted);
}

.author-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-bright);
}
body.light-mode .author-name {
  color: #334155 !important;
}

.read-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══ EMPTY STATE ═══ */
.posts-empty {
  text-align: center; padding: 100px 32px;
  max-width: var(--blog-grid-max); margin: 0 auto;
}
.posts-empty h2 { color: var(--text-bright); font-size: 1.6rem; margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; }
.posts-empty p { color: var(--text-secondary); }

/* ═══ PAGINATION ═══ */
.pagination {
  display: flex; justify-content: center; gap: 10px;
  padding: 0 32px 80px;
  max-width: var(--blog-grid-max); margin: 0 auto;
}
.page-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s var(--ease-out-expo);
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled) {
  background: var(--bg-elevated); color: var(--text-bright);
  border-color: var(--border-active);
  transform: scale(1.05);
}
.page-btn.active {
  background: var(--accent-glow); border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }


/* ═══════════════════════════════════════════════════════
   SINGLE POST PAGE (Premium Wide Editorial Layout)
   ═══════════════════════════════════════════════════════ */

/* Premium Wide Hero Backdrop Wrapper */
.post-hero-wrapper {
  position: relative;
  width: 100%;
  margin-top: 72px; /* under nav bar */
  padding: 48px 24px; /* decreased wrapper height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  transition: all 0.4s var(--ease-out-expo);
}
body.light-mode .post-hero-wrapper {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

/* Edge-to-edge full width blurred backdrop image */
.post-hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5; /* transparent 50% */
  filter: blur(40px) saturate(1.3); /* beautiful neon ambient blur */
  z-index: 1;
  pointer-events: none;
  transform: scale(1.05);
}

/* Two-column Hero container inside the wrapper */
.post-hero-container {
  position: relative;
  z-index: 2;
  max-width: 960px; /* aligns perfectly with content breakout width */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* balanced 50/50 split */
  gap: 48px;
  align-items: center;
}

/* Left column styling */
.post-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Breadcrumbs styled inside left column */
.post-hero-left .breadcrumbs {
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  max-width: 100% !important;
}

/* Right column styling */
.post-hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

/* Cover Hero - Premium Framed Graphic Card */
.post-hero {
  position: relative;
  max-width: 480px; /* increased to premium large graphic size */
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-left: auto;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, hsla(var(--h-deep-dark), 30%, 4%, 1) 0%, hsla(var(--h-deep-dark), 25%, 8%, 1) 100%);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.55);
  transition: all 0.4s var(--ease-out-expo);
}
.post-hero img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
  filter: none;
  transition: transform 0.8s var(--ease-out-expo);
}
.post-hero:hover img {
  transform: scale(1.03);
}
.post-hero-overlay {
  display: none;
}
body.light-mode .post-hero {
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 32px 64px -16px rgba(15, 23, 42, 0.06);
}

/* Breadcrumbs aligned to edge of wide content grid */
.breadcrumbs {
  max-width: 960px; margin: 0 auto;
  padding: 48px 24px 0;
  font-size: 0.8rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumbs a:hover { color: #6366f1; }
body.light-mode .breadcrumbs a:hover { color: #4f46e5; }
.breadcrumbs .sep { color: var(--text-muted); opacity: 0.5; margin: 0 4px; }

/* Article Header with aligned text column */
.post-article-header {
  max-width: 960px; margin: 0 auto;
  padding: 32px 24px 0;
}
.post-article-header .post-category-pill,
.post-article-header h1,
.post-article-header .post-article-meta,
.post-article-header .post-share-row {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.post-hero-left .post-category-pill,
.post-article-header .post-category-pill {
  display: inline-block;
  padding: 6px 14px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.03);
}
body.light-mode .post-hero-left .post-category-pill,
body.light-mode .post-article-header .post-category-pill {
  background: rgba(99, 102, 241, 0.06);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.12);
}

.post-hero-left h1,
.post-article-header h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--text-bright);
  letter-spacing: -0.03em; line-height: 1.18;
  margin-bottom: 24px;
}
.post-article-meta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.post-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-article-meta svg {
  color: var(--text-muted);
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
}

/* Table of Contents Box aligned to reading column */
.toc {
  max-width: 960px; margin: 0 auto;
  padding: 40px 24px 20px;
}
.toc-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.toc-box:hover {
  border-color: var(--border-active);
}
.toc-title {
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.toc-list li { margin: 0; }
.toc-list a {
  font-size: 0.92rem; color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
  display: inline-flex; align-items: baseline;
  position: relative; padding-left: 20px;
}
.toc-list a::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.25;
  transition: all 0.3s var(--ease-spring);
}
.toc-list a:hover {
  color: var(--text-bright);
  padding-left: 24px;
}
.toc-list a:hover::before {
  opacity: 1;
  background: #6366f1;
  transform: translateY(-50%) scale(1.6);
}
body.light-mode .toc-list a:hover::before {
  background: #4f46e5;
}
.toc-list .toc-h3 { padding-left: 40px; }
.toc-list .toc-h3:hover { padding-left: 44px; }
.toc-list .toc-h3::before {
  left: 20px;
}

/* Article Body - Spatially aligned breakout layout */
.post-body {
  max-width: 960px; margin: 0 auto;
  padding: 40px 24px 80px;
  font-size: 1.06rem; line-height: 1.85;
  color: var(--text-primary);
}

/* Standard text column limit */
.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > h2,
.post-body > h3,
.post-body > blockquote {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.post-body h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--text-bright);
  margin: 56px auto 20px; letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.3;
}
.post-body h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.4rem; font-weight: 600; color: var(--text-bright);
  margin: 40px auto 16px;
  line-height: 1.3;
}
.post-body p { margin: 20px auto; }
.post-body a {
  color: #6366f1; text-decoration: none;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}
body.light-mode .post-body a {
  color: #4f46e5;
  border-bottom-color: rgba(79, 70, 229, 0.3);
}
.post-body a:hover {
  color: #6366f1;
  border-bottom-color: #6366f1;
  opacity: 0.95;
}
body.light-mode .post-body a:hover {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

.post-body strong { color: var(--text-bright); font-weight: 650; }
.post-body em { font-style: italic; }

.post-body ul, .post-body ol { padding-left: 26px; margin: 20px auto; }
.post-body li { margin: 10px 0; }
.post-body li::marker { color: #6366f1; }
body.light-mode .post-body li::marker { color: #4f46e5; }

/* Code terminal breaks out to edge-to-edge of 960px container */
.code-terminal {
  max-width: 960px;
  width: 100%;
  background: #090a0f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 36px auto;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.code-terminal:hover {
  border-color: var(--border-active);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}
body.light-mode .code-terminal {
  background: #0f172a;
  border-color: rgba(15, 23, 42, 0.8);
}
.code-terminal .terminal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.code-terminal .terminal-dots {
  display: flex; gap: 7px;
}
.code-terminal .dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.code-terminal .dot.red { background: #ff5f56; }
.code-terminal .dot.yellow { background: #ffbd2e; }
.code-terminal .dot.green { background: #27c93f; }

.code-terminal .terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: #a1a1aa;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}
.code-terminal pre {
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 20px 24px !important;
  overflow-x: auto;
}
.code-terminal pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem; line-height: 1.75;
  color: #e4e4e7;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Fallback/Generic code element inline style */
.post-body code:not(pre code) {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 3px 7px; border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em; color: #6366f1;
  font-weight: 500;
}
body.light-mode .post-body code:not(pre code) {
  background: rgba(79, 70, 229, 0.06) !important;
  border-color: rgba(79, 70, 229, 0.12) !important;
  color: #4f46e5 !important;
}

.post-body blockquote {
  border-left: 4px solid #6366f1;
  padding: 16px 24px; margin: 36px auto;
  background: rgba(99, 102, 241, 0.04);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--text-secondary);
}
body.light-mode .post-body blockquote {
  border-left-color: #4f46e5;
  background: rgba(79, 70, 229, 0.04);
}
.post-body blockquote p {
  margin: 0;
  font-style: italic;
}

.post-body img {
  max-width: 960px;
  width: 100%;
  border-radius: var(--radius-lg); margin: 40px auto;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}
.post-body img:hover {
  transform: scale(1.01);
}
body.light-mode .post-body img {
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.06);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 56px 0;
}

.post-body table {
  max-width: 960px;
  width: 100%;
  border-collapse: collapse; margin: 40px auto;
  font-size: 0.96rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.post-body th, .post-body td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.post-body th {
  color: var(--text-bright); font-weight: 600;
  background: var(--bg-surface);
}

/* ═══ GEO CONTENT BLOCKS (Breakout Edge-to-edge of 960px container) ═══ */

/* TL;DR Summary Box */
.geo-tldr {
  max-width: 960px;
  width: 100%;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px 32px; margin: 40px auto 48px;
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.03);
  position: relative;
  overflow: hidden;
}
body.light-mode .geo-tldr {
  background: rgba(79, 70, 229, 0.03);
  border-color: rgba(79, 70, 229, 0.12);
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.02);
}
.geo-tldr::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: #6366f1;
}
body.light-mode .geo-tldr::before {
  background: #4f46e5;
}
.geo-tldr-label {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 700; color: #6366f1;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
body.light-mode .geo-tldr-label {
  color: #4f46e5;
}
.geo-tldr p { margin: 0; font-size: 1rem; color: var(--text-primary); }

/* Definition Block */
.geo-definition {
  max-width: 960px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px; margin: 40px auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.geo-definition-term {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.geo-definition h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem; font-weight: 700; color: var(--text-bright);
  margin: 0 0 12px; border: none; padding: 0;
}
.geo-definition p { margin: 0; font-size: 1rem; color: var(--text-secondary); }

/* FAQ Block */
.geo-faq { max-width: 760px; margin: 48px auto; }
.geo-faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}
.geo-faq-item:last-child {
  border-bottom: none;
}
.geo-faq-q {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 650; color: var(--text-bright);
  margin-bottom: 12px;
}
.geo-faq-a { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }


/* ═══ PRODUCT CTA BLOCK (Premium Wide Banner) ═══ */
.post-cta {
  max-width: 960px; margin: 0 auto;
  padding: 0 24px 80px;
}
.post-cta-box {
  width: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(8, 9, 13, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.05);
}
body.light-mode .post-cta-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, #ffffff 100%);
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.06);
}
.post-cta-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--text-bright);
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.post-cta-box p {
  color: var(--text-secondary); margin-bottom: 30px; font-size: 1.05rem;
  max-width: 500px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}
.post-cta-btn {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 14px 38px; border-radius: var(--radius-sm);
  background: var(--text-bright); color: var(--bg-deep);
  font-weight: 700; font-size: 0.95rem;
  position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}
body.light-mode .post-cta-btn {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.post-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
  opacity: 0.95;
}
body.light-mode .post-cta-btn:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  background: #334155;
}

/* ═══ FOOTER ═══ */
.blog-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 32px;
  text-align: center;
  font-size: 0.85rem; color: var(--text-muted);
}
.blog-footer a { color: var(--text-secondary); transition: color 0.2s; margin: 0 4px; }
.blog-footer a:hover { color: #6366f1; }
body.light-mode .blog-footer a:hover { color: #4f46e5; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .blog-nav .nav-links { display: none; }
  .blog-nav .nav-cta { display: none; }
  .blog-nav .hamburger { display: flex; }
  
  .blog-nav.menu-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: hsla(var(--h-deep-dark), 30%, 5%, 0.98);
    padding: 32px 32px; gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .blog-nav.menu-open .nav-links a::after { display: none; }
  
  .blog-nav.menu-open .nav-cta {
    display: block; margin: 0 32px 24px; text-align: center;
  }

  .blog-header { padding: 120px 24px 40px; }
  .blog-header h1 { font-size: 2.2rem; }
  .category-filters { padding: 0 24px 28px; }
  
  .posts-grid { grid-template-columns: 1fr; padding: 0 24px 60px; gap: 20px; }
  .post-card-img-container { height: 190px; }
  .post-hero-wrapper {
    margin-top: 72px;
    padding: 48px 24px;
  }
  .post-hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .post-hero-left h1 {
    font-size: 2.1rem;
    margin-bottom: 16px;
  }
  .post-hero-right {
    justify-content: center;
  }
  .post-hero {
    max-width: 320px;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
  }
  
  .post-article-header { padding: 24px 24px 0; }
  .post-article-header h1 { font-size: 1.8rem; }
  .breadcrumbs { padding: 24px 24px 0; }
  .toc { padding: 24px; }
  .post-body { padding: 28px 24px 60px; }
  .post-cta { padding: 0 24px 60px; }
}

@media (max-width: 480px) {
  .post-card-body { padding: 20px 20px 24px; }
}

/* ═══════════════════════════════════════════════════════
   DARK/LIGHT THEME SWITCHER OVERRIDES                  
   ═══════════════════════════════════════════════════════ */

/* Light mode overrides for blog page components */
body.light-mode .blog-header h1,
body.light-mode .post-card-title,
body.light-mode .posts-empty h2,
body.light-mode .post-article-header h1,
body.light-mode .post-body h2,
body.light-mode .post-body h3,
body.light-mode .post-body strong,
body.light-mode .post-body th,
body.light-mode .geo-definition h3,
body.light-mode .geo-faq-q,
body.light-mode .post-cta-box h3 {
  color: var(--text-bright) !important;
}

body.light-mode .blog-header p,
body.light-mode .post-card-excerpt,
body.light-mode .posts-empty p,
body.light-mode .toc-list a,
body.light-mode .geo-faq-a,
body.light-mode .post-cta-box p,
body.light-mode .breadcrumbs a {
  color: var(--text-muted) !important;
}

body.light-mode .post-body {
  color: var(--text-primary) !important;
}

body.light-mode .geo-tldr p {
  color: var(--text-primary) !important;
}

body.light-mode .post-card,
body.light-mode .toc-box,
body.light-mode .geo-definition {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
}

body.light-mode .post-body code:not(pre code) {
  background: rgba(15, 23, 42, 0.05) !important;
  color: var(--text-primary) !important;
}

body.light-mode .post-body pre {
  background: #0f172a !important; /* Keep code snippets dark and syntax-highlighted for legibility */
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.light-mode .post-body pre code {
  color: #d4d4d8 !important;
}

body.light-mode .page-btn {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-muted) !important;
}
body.light-mode .page-btn:hover {
  background: var(--bg-elevated) !important;
  color: var(--text-bright) !important;
}
body.light-mode .page-btn.active {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: var(--border-active) !important;
  color: var(--text-bright) !important;
}
body.light-mode .blog-footer {
  border-top-color: var(--border-subtle) !important;
  color: var(--text-muted) !important;
}

/* Light mode mobile navigation dropdown background override */
body.light-mode .blog-nav.menu-open .nav-links {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}
body.light-mode .blog-nav.menu-open .nav-cta {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* Mobile Theme Toggle Adjustments */
@media (max-width: 768px) {
  .blog-nav .theme-toggle {
    display: none !important;
  }
  .blog-nav .nav-cta {
    display: none !important;
  }
}

.mobile-only-flex {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only-flex {
    display: flex !important;
  }
}

.mobile-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

body.light-mode .mobile-login-row {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

#blog-mobile-theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-bright);
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
}

body.light-mode #blog-mobile-theme-toggle {
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
}

#blog-mobile-theme-toggle svg {
  width: 18px;
  height: 18px;
}

body.light-mode #blog-mobile-theme-toggle .sun-icon {
  display: none;
}
body:not(.light-mode) #blog-mobile-theme-toggle .moon-icon {
  display: none;
}

/* ═══ READING PROGRESS BAR ═══ */
.scroll-progress {
  position: fixed;
  top: 72px; /* right below nav bar */
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 99;
  pointer-events: none;
}
.scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.1s ease-out;
}

/* ═══ ACTIVE TOC SCROLL-SPY HIGHLIGHT ═══ */
.toc-list a.active {
  color: var(--accent) !important;
  padding-left: 22px;
  font-weight: 600;
}
.toc-list a.active::before {
  opacity: 1 !important;
  background: var(--accent) !important;
  transform: translateY(-50%) scale(1.8) !important;
}

/* ═══ CLIPBOARD COPY BUTTON ═══ */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 5px 10px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}
.copy-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}
.copy-btn svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}
.copy-btn.copied {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #22c55e;
}

/* ═══ RELATED POSTS SECTION ═══ */
.related-posts-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  border-top: 1px solid var(--border-subtle);
}
.related-posts-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 24px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ SHARE BUTTONS ═══ */
.post-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.share-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}
.share-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.share-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Responsive updates for progress bar positioning & overflow protection */
@media (max-width: 768px) {
  .scroll-progress {
    top: 60px; /* keeps alignment on universal top-nav */
  }
  
  .post-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-subtle);
  }
  
  .post-body pre {
    padding: 16px;
    margin: 20px 0;
    border-radius: var(--radius-md);
  }
}

/* ═══════════════════════════════════════════════════════
   ANTIGRAVITY DESIGN - Premium Motion & Depth Enhancements
   ═══════════════════════════════════════════════════════ */

/* Diffused spatial shadows to give cards a floating, weightless appearance */
.toc-box, .post-cta-box, .geo-definition, .geo-tldr {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2), 
              0 8px 16px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-accent) !important;
}

body.light-mode .toc-box, 
body.light-mode .post-cta-box, 
body.light-mode .geo-definition, 
body.light-mode .geo-tldr {
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.04), 
              0 8px 16px rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
}

/* Elevate mockup cards for premium weightlessness */
.code-terminal {
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5) !important;
  will-change: transform;
}

/* Staggered entrance and scroll-reveal triggers (Antigravity Style) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Smooth float animation for the table of contents as a visual hint of weightlessness */
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.toc-box {
  animation: floaty 8s ease-in-out infinite;
}
