/* ============================================
   BLOCKIFY GHOST THEME - SCREEN STYLES
   A dark, glassmorphic theme for tech blogs
   ============================================ */
* {
  overflow-wrap: break-word;
}
pre,
code {
  overflow-wrap: normal;
}
/* CSS Custom Properties / Design Tokens */
:root {
  /* Brand Colors */
  --color-bg-primary: #0a1817;
  --color-bg-secondary: #0d1f1e;
  --color-bg-tertiary: #0c1e1d;
  --color-bg-elevated: #152322;
  --color-bg-card: rgba(13, 31, 30, 0.7);

  /* ADDED NEUMORPHISM BASE COLOR FOR NEWSLETTER */
  --color-neumorphism-base: #0d1f1e;

  /* Accent Colors */
  --color-accent-primary: #00ffa1;
  --color-accent-secondary: #00d8a1;
  --color-accent-tertiary: #1db954;
  --color-accent-highlight: #47ffff;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.5);
  --color-text-muted: rgba(255, 255, 255, 0.4);

  /* Border Colors */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(0, 255, 161, 0.3);
  --color-border-accent: rgba(0, 255, 161, 0.2);

  /* Glassmorphism */
  --glass-bg: rgba(13, 31, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-highlight));
  --gradient-card: linear-gradient(135deg, rgba(0, 255, 161, 0.05), transparent);
  --gradient-glow: radial-gradient(ellipse at center, rgba(0, 255, 161, 0.15), transparent 70%);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Ghost custom font variables - required for custom fonts feature */
  --gh-font-heading: var(--font-sans);
  --gh-font-body: var(--font-sans);

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 255, 161, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --container-width: 1280px;
  --content-width: 720px;
  --sidebar-width: 280px;
  /* Added header height variable for sticky sidebar offset */
  --header-height: 72px;
  --header-height-mobile: 60px;

  /* Ghost Portal custom properties */
  --ghost-accent-color: #00ffa1;
}

/* REMOVED GLASSMORPHISM BACKGROUND ORBS FROM BODY AND SITE-WRAPPER - MOVED TO FOOTER */

/* Added required Koenig editor width classes */
/* ============================================
   KOENIG EDITOR - REQUIRED WIDTH CLASSES
   ============================================ */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: var(--space-8) calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  min-width: 100%;
  margin: var(--space-8) calc(50% - 50vw);
}

/* Responsive adjustments for wide/full width */
@media (max-width: 1024px) {
  .kg-width-wide {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .kg-width-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
}

/* Wide/Full image styles */
.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  height: auto;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--gh-font-body, var(--font-sans));
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
}

/* Serif font variants */
.has-serif-title h1,
.has-serif-title h2,
.has-serif-title h3 {
  font-family: var(--font-serif);
}

.has-serif-body {
  font-family: var(--font-serif);
}

/* Selection */
::selection {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

/* Links */
a {
  color: var(--color-accent-highlight);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-primary);
}

/* ============================================
   IMAGES - Base Styles
   ============================================ */

/* Added height: auto per Ghost docs to prevent stretched images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all images maintain aspect ratio */
.post-content img,
.card-image-img,
.post-feature-image img,
.kg-image {
  max-width: 100%;
  height: auto;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gh-font-heading, var(--font-sans));
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-5xl);
}
h2 {
  font-size: var(--text-4xl);
}
h3 {
  font-size: var(--text-3xl);
}
h4 {
  font-size: var(--text-2xl);
}
h5 {
  font-size: var(--text-xl);
}
h6 {
  font-size: var(--text-lg);
}

/* ============================================
   LAYOUT
   ============================================ */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.content-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-12);
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  height: fit-content;
}

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
    order: -1;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Removed the harsh glow pseudo-element - using subtler effects instead */

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-bg-primary);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 161, 0.4), 0 0 40px rgba(0, 255, 161, 0.2), 0 0 60px rgba(0, 255, 161, 0.1);
  color: var(--color-bg-primary);
}

/* Redesigned secondary button with modern hover effect */
.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  z-index: 1;
}

/* Inner gradient fill that animates on hover */
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 161, 0.1), rgba(71, 255, 255, 0.05));
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 161, 0.4);
  color: var(--color-accent-primary);
  box-shadow: 0 4px 20px rgba(0, 255, 161, 0.15), 0 0 0 1px rgba(0, 255, 161, 0.1) inset;
}

.btn-secondary:hover::before {
  opacity: 1;
}

/* Active/pressed state for tactile feedback */
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 255, 161, 0.1);
}

/* Improved ghost button hover */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--color-accent-primary);
  background: rgba(0, 255, 161, 0.05);
  box-shadow: none;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 24, 23, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: var(--container-width);
  margin: 0 auto;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.search-toggle,
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  transition: color var(--transition-fast);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
  color: var(--color-accent-primary);
}

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

/* ============================================
   SEARCH OVERLAY
   ============================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 23, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--space-24);
}

.search-overlay.is-active {
  display: flex;
}

.search-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  transition: color var(--transition-fast);
}

.search-close:hover {
  color: var(--color-accent-primary);
}

.search-container {
  width: 100%;
  max-width: 600px;
  padding: 0 var(--space-6);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  transition: border-color var(--transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: var(--color-accent-primary);
}

.search-icon {
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-family: inherit;
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.search-results {
  margin-top: var(--space-6);
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 23, 0.8);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--color-bg-secondary);
  border-left: 1px solid var(--color-border);
  z-index: 999;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-menu.is-active {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  transition: color var(--transition-fast);
}

.mobile-menu-close:hover {
  color: var(--color-accent-primary);
}

.mobile-nav {
  margin-top: var(--space-12);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav-link {
  display: block;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.nav-current {
  color: var(--color-accent-primary);
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: var(--space-24) 0;
  background: var(--gradient-glow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* ADDED TWO HERO ORBS WITH DIFFERENT COLORS AND POSITIONS */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(0, 255, 161, 0.35) 0%, rgba(0, 255, 161, 0.15) 40%, transparent 70%);
  filter: blur(80px);
  animation: heroOrbFloat1 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(71, 255, 255, 0.3) 0%, rgba(71, 255, 255, 0.1) 40%, transparent 70%);
  filter: blur(100px);
  animation: heroOrbFloat2 25s ease-in-out infinite;
}

@keyframes heroOrbFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-30px, 20px) scale(1.05);
    opacity: 1;
  }
}

@keyframes heroOrbFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(25px, -15px) scale(1.08);
    opacity: 0.9;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-title-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  /* Added position relative for the pseudo-element underline */
  position: relative;
}

/* Delightful gradient underline at bottom of card */
.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent-primary),
    var(--color-accent-highlight),
    var(--color-accent-secondary),
    var(--color-accent-primary)
  );
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Expand underline from left to right on hover */
.card:hover::after {
  transform: scaleX(1);
  animation: shimmer 2s linear infinite;
}

/* Contract from right to left when mouse leaves */
.card:not(:hover)::after {
  transform-origin: right center;
}

/* Shimmer animation for the gradient */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 24, 23, 0.8), transparent);
  transition: opacity var(--transition-base);
}

.card:hover .card-image-overlay {
  opacity: 1;
}

.card-content {
  padding: var(--space-6);
  position: relative;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.card-tag {
  color: var(--color-accent-primary);
  font-weight: 500;
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

/* Added delightful animated gradient underline effect on card title */
.card-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(
    90deg,
    var(--color-accent-primary),
    var(--color-accent-secondary),
    var(--color-accent-primary)
  );
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
  padding-bottom: 2px;
}

.card-title a:hover {
  color: var(--color-accent-primary);
  background-size: 100% 2px;
}

/* Reverse animation - contract from right to left when leaving */
.card:not(:hover) .card-title a {
  background-position: right bottom;
}

.card:hover .card-title a {
  background-position: left bottom;
}

.card-excerpt {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.card-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.card-author-avatar-placeholder {
  background: var(--color-bg-elevated);
}

.card-author-name {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.card-reading-time {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Featured Card */
.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

.card-featured .card-image {
  aspect-ratio: auto;
}

@media (max-width: 768px) {
  .card-featured {
    grid-template-columns: 1fr;
  }
}

/* Added full-card clickable link overlay */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

/* Keep specific interactive elements (tag, author) clickable above overlay */
.card-interactive {
  position: relative;
  z-index: 2;
}

/* Ensure card content stays above the link for visual purposes but below interactive elements */
.card-content {
  position: relative;
}

.card-image {
  position: relative;
}

/* ============================================
   POST FEED
   ============================================ */

.posts-section {
  padding: var(--space-16) 0;
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

/* Added mobile responsive fix for cards on small screens */
@media (max-width: 480px) {
  .post-feed {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .card {
    max-width: 100%;
  }

  .card-content {
    padding: var(--space-4);
  }

  .card-title {
    font-size: var(--text-lg);
  }
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  color: var(--color-text-primary);
}

.section-title svg {
  color: var(--color-accent-primary);
}

/* ============================================
   SIDEBAR
   ============================================ */

/* Fixed sidebar cropping and improved TOC */
.sidebar,
.content-sidebar {
  max-width: 100%;
  overflow: visible;
}

.sidebar-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  max-width: 100%;
  overflow: hidden;
}

/* Sidebar title with gradient accent bar */
.sidebar-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  padding-left: var(--space-4);
}

.sidebar-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: linear-gradient(180deg, var(--color-accent-primary), var(--color-accent-secondary));
  border-radius: var(--radius-full);
}

.sidebar-title svg {
  color: var(--color-accent-primary);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sidebar-tag {
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.sidebar-tag:hover {
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

.sidebar-post-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-post-item:last-child {
  border-bottom: none;
}

.sidebar-post-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.sidebar-post-date {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

/* Post Page Sidebar */
.sidebar-post-toc {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

/* TOC Styles with hierarchy - targeting #toc-widget .sidebar-widget and .toc nav */
#toc-widget {
  max-height: 45vh;
  flex-shrink: 1;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.toc {
  max-height: calc(45vh - 50px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-secondary) var(--color-bg-elevated);
}

/* Custom scrollbar for TOC */
.toc::-webkit-scrollbar {
  width: 4px;
}

.toc::-webkit-scrollbar-track {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
}

.toc::-webkit-scrollbar-thumb {
  background: var(--color-accent-secondary);
  border-radius: var(--radius-full);
}

.toc-progress {
  height: 4px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.toc-progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  width: 0;
  transition: width var(--transition-fast);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-4);
  margin: 0;
  list-style: none;
}

.toc-item {
  position: relative;
}

.toc-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-decoration: none;
}

.toc-link:hover {
  color: var(--color-accent-primary);
  background: rgba(0, 255, 161, 0.05);
}

.toc-link.active {
  color: var(--color-accent-primary);
  background: linear-gradient(90deg, rgba(0, 255, 161, 0.1), transparent);
  border-left: 2px solid var(--color-accent-primary);
  margin-left: calc(-1 * var(--space-4) - 2px);
  padding-left: calc(var(--space-4) + var(--space-3));
}

/* TOC Heading hierarchy - indentation for different levels */
.toc-item[data-level="3"] .toc-link {
  padding-left: calc(var(--space-3) + var(--space-4));
  font-size: var(--text-xs);
}

.toc-item[data-level="4"] .toc-link {
  padding-left: calc(var(--space-3) + var(--space-8));
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.toc-item[data-level="5"] .toc-link,
.toc-item[data-level="6"] .toc-link {
  padding-left: calc(var(--space-3) + var(--space-12));
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* ADDED TOPICS WIDGET STYLES WITH SCROLLABLE CONTENT AND PROPER HEIGHT CONSTRAINTS */
#topics-widget {
  max-height: 30vh;
  display: flex;
  flex-direction: column;
}

.topics-scroll-wrapper {
  max-height: calc(30vh - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-secondary) var(--color-bg-elevated);
}

/* Custom scrollbar for Topics */
.topics-scroll-wrapper::-webkit-scrollbar {
  width: 4px;
}

.topics-scroll-wrapper::-webkit-scrollbar-track {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
}

.topics-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-accent-secondary);
  border-radius: var(--radius-full);
}

/* ADJUST SIDEBAR STICKY CONTAINER TO PREVENT CLIPPING */
.sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-height: calc(100vh - var(--header-height) - var(--space-12));
  overflow: visible;
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
  padding: var(--space-16) 0;
  /* Use same background as neumorphic card for seamless look */
  background: var(--color-neumorphism-base);
}

/* Complete neumorphic redesign - same background color, proper shadows */
.newsletter-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  /* Neumorphism: same base color as section background */
  background: var(--color-neumorphism-base);
  /* Classic neumorphic shadows - dark on bottom-right, light on top-left */
  /* Adjusted to proper neumorphism principles: softer, more diffused shadows with balanced depth */
  box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.25), -12px -12px 24px rgba(40, 60, 58, 0.2), inset 0 1px 2px
    rgba(255, 255, 255, 0.03);

  border: none;
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

/* Reduced depth on hover - pressed effect */
/* Adjusted hover state with proper reduced depth maintaining neumorphic feel */
.newsletter-card:hover {
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.2), -6px -6px 12px rgba(40, 60, 58, 0.15), inset 0 1px 2px
    rgba(255, 255, 255, 0.03);
}

/* Removed glow/glassmorphism effect */
.newsletter-card::before {
  display: none;
}

/* Neumorphic icon - same base color, raised effect */
.newsletter-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-6);
  /* Flat accent background instead of neumorphic */
  background: var(--gradient-accent);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Dark icon color for contrast on accent background */
  color: var(--color-bg-primary);
  /* No neumorphic shadows - just a subtle glow */
  box-shadow: 0 4px 20px rgba(0, 255, 161, 0.3);
  position: relative;
  z-index: 1;
}

/* Icon pressed effect on card hover */
/* REMOVED HOVER EFFECT ON NEWSLETTER-ICON - THE BLOCK FROM LINES 1347-1351 IS DELETED */

.newsletter-icon svg {
  width: 32px;
  height: 32px;
}

.newsletter-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.newsletter-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Neumorphic inset input field - same base color */
.newsletter-input {
  flex: 1;
  padding: var(--space-4);
  background: var(--color-neumorphism-base);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  /* Subtler inset neumorphic effect - reduced offset, blur, and opacity */
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.15), inset -3px -3px 6px rgba(50, 70, 68, 0.08);
  transition: box-shadow var(--transition-base);
}

.newsletter-input::placeholder {
  color: var(--color-text-tertiary);
}

.newsletter-input:focus {
  outline: none;
  /* Subtler focus state - gentle depth increase */
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(50, 70, 68, 0.1), 0 0 0 2px
    rgba(0, 255, 161, 0.15);
}

/* Neumorphic raised button - same base, accent gradient overlay */
.newsletter-form .btn-primary {
  background: var(--gradient-accent);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4), -4px -4px 8px rgba(30, 50, 48, 0.15);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

/* Reduced depth on hover - subtle pressed effect */
.newsletter-form .btn-primary:hover {
  transform: translateY(1px);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), -2px -2px 4px rgba(30, 50, 48, 0.1);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-card {
    padding: var(--space-8);
  }

  .post-header {
    padding: 0 var(--space-3);
  }
}

/* ============================================
   FOOTER
   ============================================ */

/* Added relative positioning and overflow for orbs */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

/* Added subtle glassmorphism orbs to footer */
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.site-footer::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 161, 0.6) 0%, rgba(0, 216, 161, 0.3) 40%, transparent 70%);
  top: -180px;
  left: -120px;
  animation: footerOrb1 20s ease-in-out infinite, footerOrbPulse1 4s ease-in-out infinite;
}

.site-footer::after {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(71, 255, 255, 0.55) 0%, rgba(0, 255, 161, 0.25) 40%, transparent 70%);
  bottom: -120px;
  right: -100px;
  animation: footerOrb2 25s ease-in-out infinite, footerOrbPulse2 5s ease-in-out infinite;
}

@keyframes footerOrb1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, 30px);
  }
}

@keyframes footerOrb2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-35px, -25px);
  }
}

/* Added pulsing glow animations for extra delight */
@keyframes footerOrbPulse1 {
  0%,
  100% {
    opacity: 0.35;
    filter: blur(100px);
  }
  50% {
    opacity: 0.45;
    filter: blur(90px);
  }
}

@keyframes footerOrbPulse2 {
  0%,
  100% {
    opacity: 0.35;
    filter: blur(100px);
  }
  50% {
    opacity: 0.5;
    filter: blur(85px);
  }
}

/* Added z-index to footer content to appear above orbs */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer-logo img {
  height: 32px;
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-accent-primary);
}

.footer-column h4 {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent-primary);
}

/* Add styles for Ghost's {{navigation}} helper output in footer */
.footer-nav-wrapper .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav-wrapper .nav li a {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-nav-wrapper .nav li a:hover {
  color: var(--color-accent-primary);
}

.footer-legal .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.footer-legal .nav li a {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-legal .nav li a:hover {
  color: var(--color-accent-primary);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   POST ARTICLE STYLES
   ============================================ */

.post-header {
  max-width: var(--content-width);
  margin: 0 auto var(--space-8);
  text-align: center;
}

.post-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}

.post-tag:hover {
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.post-date-published,
.post-date-updated {
  display: inline;
}

.post-date-updated {
  opacity: 0.7;
}

.post-date-updated::before {
  content: "•";
  margin: 0 var(--space-2);
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.post-excerpt {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ADDED NEUMORPHIC POSITIVE DEPTH EFFECT TO BLOG COVER IMAGES */
.post-feature-image {
  max-width: 1000px;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-2xl);
  overflow: visible; /* Changed to visible to show neumorphic shadows */
  position: relative;
  /* Proper neumorphic shadows for dark theme */
  /* Light shadow (top-left): lighter than bg, Dark shadow (bottom-right): darker than bg */
  box-shadow: -10px -10px 24px rgba(60, 90, 85, 0.25), 10px 10px 24px rgba(0, 0, 0, 0.5);
  background: var(--color-bg-secondary);
  /* Added padding to create visible frame for neumorphic effect */
  padding: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover: decrease depth (smaller shadows) but stay positive */
.post-feature-image:hover {
  box-shadow: -4px -4px 12px rgba(60, 90, 85, 0.2), 4px 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(2px);
}

.post-feature-image picture {
  display: block;
  border-radius: calc(var(--radius-2xl) - 4px);
  overflow: hidden;
}

.post-feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-2xl) - 4px);
}

.post-feature-image figcaption {
  padding: var(--space-4) var(--space-3) var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-align: center;
}

/* ============================================
   POST CONTENT
   ============================================ */

.post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-secondary);
  /* Added padding and overflow handling for responsive content */
  padding: 0 var(--space-4);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.post-content h2 {
  font-size: var(--text-3xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  color: var(--color-text-primary);
  /* Added flexbox for // prefix alignment */

  position: relative;
}

/* Added // design element prefix for H2 headings */
.post-content h2::before {
  content: "//";
  color: transparent;
  color: #ffffff00;
  font-family: var(--font-mono);
  position: absolute;
  left: -44px;
  scale: 0.9;
  font-weight: inherit;
  top: 0px;
  line-height: inherit;
  font-size: inherit;
  background-image: linear-gradient(90deg, #00ffa1, #47ffff);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Added text gradient for bold and link elements inside H2 */
.post-content h2 b {
  background: linear-gradient(90deg, #47ffff, #00d8a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reset link underline effect inside H2 headings */
.post-content h2 a {
  text-decoration: none;
}

.post-content h2 a:hover {
  opacity: 0.85;
}

.post-content h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.post-content h4 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.post-content p {
  margin-bottom: var(--space-6);
}

/* Replaced highlight effect with gradient fade underline that's bright in center and fades at edges
.post-content a {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline;
}*/

/* Gradient fade underline - bright center, fading edges
.post-content a::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00ffa1 0%, #47ffff 100%);
  transform: translateX(-50%);
  border-radius: 0;
  box-shadow: 0 0 6px rgba(0, 255, 161, 0.3);
  transition: all 0.33s ease;
}

.post-content a:hover {
  color: black !important;
}
.post-content h2 a:hover {
  background-image: linear-gradient(45deg, black, black) !important;
}
*/
/* On hover: expand width and increase glow
.post-content a:hover::after {
  height: calc(100% + 4px);
}
*/

.post-content a {
  color: inherit;
  color: #eee;
  text-decoration: none;

  background-color: transparent;

  background-image: -webkit-gradient(linear, left top, right top, from(#00ffa1), to(#47ffff));
  background-image: -o-linear-gradient(left, #00ffa1 0%, #47ffff 100%);
  background-image: linear-gradient(90deg, #00ffa1 0%, #47ffff 100%);

  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% 3px;

  display: inline;

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  margin: 0;

  transition: all 0.33s ease;
}

.post-content a:hover {
  color: black !important;
  background-size: 100% 100%;
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: var(--space-2);
}

/* Blockquote with gradient left border using pseudo-element */
.post-content blockquote {
  position: relative;
  border-left: none;
  padding-left: calc(var(--space-6) + 4px);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-secondary);
  background: rgba(0, 255, 161, 0.03);
  padding: var(--space-6);
  padding-left: calc(var(--space-6) + 8px);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Gradient border via pseudo-element */
.post-content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--color-accent-primary) 0%,
    var(--color-accent-highlight) 50%,
    var(--color-accent-secondary) 100%
  );
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.post-content blockquote cite,
.post-content blockquote footer {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-tertiary);
}

.post-content pre {
  position: relative;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  padding-top: calc(var(--space-6) + 4px);
  margin: var(--space-6) 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* Gradient top border via pseudo-element */
.post-content pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent-primary) 0%,
    var(--color-accent-highlight) 50%,
    var(--color-accent-secondary) 100%
  );
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(0, 255, 161, 0.1);
  color: var(--color-accent-primary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.post-content pre code {
  background: none;
  color: var(--color-text-primary);
  padding: 0;
}

.post-content img {
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

.post-content figure {
  margin: var(--space-8) 0;
}

.post-content figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-3);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-12) 0;
}

/* ============================================
   PAGE ARTICLE - ENHANCED DESIGN
   ============================================ */

/* Enhanced page-article with modern design, more spacing, and visual polish */
.page-article {
  max-width: 100%;
  overflow-x: hidden;
  padding: var(--space-12) var(--space-6);
  position: relative;
}

/* Subtle background gradient for depth */
.page-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 400px;
  background: radial-gradient(ellipse at center top, rgba(0, 255, 161, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Enhanced header with glassmorphism card effect */
.page-article .post-header {
  max-width: var(--content-width);
  margin: 0 auto var(--space-10);
  padding: var(--space-8) var(--space-8);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Decorative accent line at top of header */
.page-article .post-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

/* Enhanced title styling */
.page-article .post-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Styled excerpt/description */
.page-article .post-excerpt {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced content area with generous spacing */
.page-article .post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-8) 0;
  position: relative;
  z-index: 1;
}

/* Enhanced paragraph spacing */
.page-article .post-content p {
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

/* Enhanced heading styles with better spacing */
.page-article .post-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.page-article .post-content h3 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.page-article .post-content h4 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

/* Enhanced list styling */
.page-article .post-content ul,
.page-article .post-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.page-article .post-content li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
}

.page-article .post-content ul li::marker {
  color: var(--color-accent-primary);
}

.page-article .post-content ol li::marker {
  color: var(--color-accent-primary);
  font-weight: 600;
}

/* Enhanced blockquote with glassmorphism */
.page-article .post-content blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-8);
  background: var(--glass-bg);
  border-left: 3px solid var(--color-accent-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.page-article .post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Page article images */
.page-article .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

/* Page article iframes and embeds */
.page-article .post-content iframe,
.page-article .post-content video,
.page-article .post-content embed,
.page-article .post-content object {
  max-width: 100%;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
}

/* Page article code blocks */
.page-article .post-content pre {
  max-width: 100%;
  overflow-x: auto;
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Enhanced inline code */
.page-article .post-content code:not(pre code) {
  padding: var(--space-1) var(--space-2);
  background: rgba(0, 255, 161, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-accent-primary);
}

/* Enhanced feature image container */
.page-article .post-feature-image {
  max-width: 900px;
  margin: 0 auto var(--space-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Page Article Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-article {
    padding: var(--space-8) var(--space-4);
  }

  .page-article .post-header {
    padding: var(--space-6);
    margin-bottom: var(--space-8);
  }

  .page-article .post-title {
    font-size: var(--text-3xl);
  }

  .page-article .post-excerpt {
    font-size: var(--text-base);
  }

  .page-article .post-content {
    font-size: var(--text-base);
    padding: var(--space-4) 0;
  }

  .page-article .post-content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
  }

  /* Hide the // prefix on mobile to save horizontal space */
  /* .page-article .post-content h2::before {
    display: none; 
  }*/

.page-article .post-content h2
{
      margin-left: 30px !important;
}
  .page-article .post-content h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-6);
  }

  .page-article .post-content h4 {
    font-size: var(--text-lg);
  }

  .page-article .post-content ul,
  .page-article .post-content ol {
    padding-left: var(--space-4);
  }

  .page-article .post-content blockquote {
    padding: var(--space-4) var(--space-5);
    margin: var(--space-6) 0;
  }
}

@media (max-width: 480px) {
  .page-article {
    padding: var(--space-6) var(--space-3);
  }

  .page-article .post-header {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }

  .page-article .post-header::before {
    width: 50px;
  }

  .page-article .post-title {
    font-size: var(--text-2xl);
  }

  .page-article .post-content {
    font-size: var(--text-sm);
    line-height: 1.7;
  }

  .page-article .post-content h2 {
    font-size: var(--text-xl);
  }

  .page-article .post-content h3 {
    font-size: var(--text-lg);
  }

  .page-article .post-content h4 {
    font-size: var(--text-base);
  }

  .page-article .post-content blockquote {
    padding: var(--space-3);
    margin-left: 0;
    margin-right: 0;
  }

  .page-article .post-content pre {
    padding: var(--space-3);
    font-size: var(--text-xs);
  }
}

/* ============================================
   POST TAGS
   ============================================ */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.tag-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.tag-link:hover {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

.tag-link span {
  color: var(--color-accent-primary);
}

.tag-link:hover span {
  color: var(--color-bg-primary);
}

/* ============================================
   SHARE SECTION
   ============================================ */

/* Redesigned share section with better layout and platform-specific colors */
.share-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.share-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Platform-specific hover colors */
.share-twitter:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.share-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}

.share-reddit:hover {
  background: #ff4500;
  border-color: #ff4500;
  color: #ffffff;
}

.share-pinterest:hover {
  background: #e60023;
  border-color: #e60023;
  color: #ffffff;
}

.share-hackernews:hover {
  background: #ff6600;
  border-color: #ff6600;
  color: #ffffff;
}

.share-email:hover {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

.share-copy:hover {
  background: var(--color-accent-secondary);
  border-color: var(--color-accent-secondary);
  color: var(--color-bg-primary);
}

/* Copy success state */
.share-copy.copied {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

/* Responsive: stack label above buttons on mobile */
@media (max-width: 480px) {
  .share-section {
    padding: var(--space-4);
  }

  .share-btn {
    width: 38px;
    height: 38px;
  }
}

/* ============================================
   AUTHOR BOX
   ============================================ */

/* Complete redesign with glassmorphism and improved layout */
.author-box {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  margin-top: var(--space-8);
  background: rgba(20, 40, 38, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 161, 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Decorative glow behind card */
.author-box-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 161, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.author-box-header {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-4);
}

.author-box-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-primary);
}

.author-box-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

/* Redesigned author-box-avatar to use gradient ring via pseudo-element */
.author-box-avatar {
  flex-shrink: 0;
  position: relative;
  padding: 3px;
  border-radius: var(--radius-full);
  /* Reduced gradient opacity for subtler, less vibrant appearance */
  background: linear-gradient(135deg, rgba(0, 255, 161, 0.18), rgba(71, 255, 255, 0.1), rgba(0, 216, 161, 0.15));
  /* Removed transition - no hover effects */
}

/* Subtle glow effect behind the gradient ring */
.author-box-avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  /* Reduced glow opacity for subtler effect */
  background: linear-gradient(135deg, rgba(0, 255, 161, 0.08), rgba(71, 255, 255, 0.05), rgba(0, 216, 161, 0.08));
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
  /* Removed transition - no hover effects */
}

/* Removed hover effect rule entirely */

/* Removed solid border from author-avatar, now handled by parent gradient */
.author-box .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: none;
  display: block;
}

/* Removed hover border-color change since gradient ring handles the effect */

.author-box-info {
  flex: 1;
  min-width: 0;
}

.author-box .author-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.author-box .author-name a {
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.author-box .author-name a:hover {
  color: var(--color-accent-primary);
}

.author-box .author-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.author-box .author-bio-fallback {
  font-style: italic;
  opacity: 0.8;
}

.author-box-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.author-box .author-links {
  display: flex;
  gap: var(--space-2);
}

.author-box .author-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.author-box .author-link:hover {
  background: rgba(0, 255, 161, 0.15);
  color: var(--color-accent-primary);
  transform: translateY(-2px);
}

.author-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-primary);
  background: rgba(0, 255, 161, 0.1);
  border: 1px solid rgba(0, 255, 161, 0.3);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.author-profile-btn:hover {
  background: rgba(0, 255, 161, 0.2);
  border-color: var(--color-accent-primary);
  transform: translateX(4px);
}

.author-profile-btn svg {
  transition: transform var(--transition-fast);
}

.author-profile-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .post-content h2 {
    margin-left: 18px;
  }
  .author-box-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-box-footer {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-3);
  }

  .author-box .author-links {
    justify-content: center;
  }
}

/* ============================================
   POSTNAVIGATION
   ============================================ */

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.post-nav-link:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.post-nav-prev {
  text-align: left;
}

.post-nav-next {
  text-align: right;
  grid-column: 2;
}

.post-nav-label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.post-nav-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav-next {
    grid-column: 1;
    text-align: left;
  }
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

/* Enhanced comments section with improved glassmorphism and neumorphism */
.post-comments {
  margin-top: var(--space-12);
  /* Added bottom margin for separation with section below */
  margin-bottom: var(--space-12);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(22, 35, 32, 0.85) 0%, rgba(12, 22, 20, 0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  /* Removed border (top border was requested to be removed) */
  border: none;
  /* Removed box-shadow as requested */
  position: relative;
  overflow: hidden;
}

/* Removed gradient accent bar at top - now empty */
.post-comments::before {
  content: none;
}

/* Decorative glow orb - repositioned */
.post-comments::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 255, 161, 0.12) 0%, rgba(71, 255, 255, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: comments-orb-float 25s ease-in-out infinite;
}

@keyframes comments-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-30px, 20px) scale(1.1);
    opacity: 1;
  }
}

/* Comments header wrapper for icon + title */
.comments-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Icon container with gradient background */
.comments-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0, 255, 161, 0.15) 0%, rgba(71, 255, 255, 0.1) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 255, 161, 0.2);
  flex-shrink: 0;
}

.comments-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent-primary);
}

/* Enhanced comments title styling */
.post-comments > *:first-child,
.gh-comments-title,
.comments-title {
  position: relative;
  z-index: 1;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0;
  /* Removed gradient, using solid accent color instead */
  color: var(--color-accent-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

/* Remove emoji icon - using SVG icon in HTML instead */
.post-comments > *:first-child::before,
.gh-comments-title::before,
.comments-title::before {
  content: none;
}

/* Ghost native comments iframe container */
.post-comments iframe,
.gh-comments iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  border: none;
  border-radius: var(--radius-lg);
  /* Added margin-top for "Member discussion" separation */
  margin-top: var(--space-6);
}

/* Style Ghost's comment elements via CSS custom properties */
:root {
  --ghost-accent-color: var(--color-accent-primary);
}

/* Comments count badge */
.comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 var(--space-2);
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  color: var(--color-bg-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 50px;
  margin-left: var(--space-2);
}

/* Comment form styling (for custom implementations) */
.comment-form {
  position: relative;
  z-index: 1;
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: rgba(15, 28, 25, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.15);
}

.comment-form-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.comment-form-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--color-accent-primary), var(--color-accent-secondary));
  border-radius: 2px;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: var(--text-base);
  resize: vertical;
  transition: all 0.2s ease;
  /* Subtle inset neumorphism */
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.comment-form textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 161, 0.3);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(0, 255, 161, 0.1);
}

.comment-form textarea::placeholder {
  color: var(--color-text-tertiary);
}

.comment-form-submit {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  color: var(--color-bg-primary);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 161, 0.3);
}

/* Enhanced individual comment card styling */
.comment {
  position: relative;
  z-index: 1;
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  background: rgba(20, 35, 32, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  /* Subtle neumorphic effect */
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2), -2px -2px 8px rgba(40, 70, 65, 0.08);
  transition: all 0.3s ease;
}

.comment:hover {
  background: rgba(25, 45, 40, 0.7);
  border-color: rgba(0, 255, 161, 0.15);
  box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.25), -3px -3px 10px rgba(40, 70, 65, 0.1), 0 0 20px rgba(0, 255, 161, 0.05);
  transform: translateY(-2px);
}

/* Accent line on comment card */
.comment::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-4);
  bottom: var(--space-4);
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent-primary) 0%, transparent 100%);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.comment:hover::before {
  opacity: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* Enhanced comment avatar with gradient ring */
.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 161, 0.4) 0%,
    rgba(71, 255, 255, 0.3) 50%,
    rgba(0, 216, 161, 0.4) 100%
  );
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-meta {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition: color 0.2s ease;
}

.comment:hover .comment-author {
  color: var(--color-accent-primary);
}

.comment-date {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.comment-content {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--text-base);
}

.comment-content p {
  margin: 0 0 var(--space-3);
}

.comment-content p:last-child {
  margin-bottom: 0;
}

/* Comment actions with subtle styling */
.comment-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-action:hover {
  color: var(--color-accent-primary);
  background: rgba(0, 255, 161, 0.1);
}

.comment-action svg {
  width: 16px;
  height: 16px;
}

/* Enhanced nested replies styling */
.comment-replies {
  margin-left: var(--space-6);
  margin-top: var(--space-4);
  padding-left: var(--space-5);
  border-left: 2px solid rgba(0, 255, 161, 0.15);
  position: relative;
}

.comment-replies::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, var(--color-accent-primary) 0%, rgba(0, 255, 161, 0.15) 100%);
}

.comment-replies .comment {
  background: rgba(15, 28, 25, 0.5);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.15), -2px -2px 6px rgba(40, 70, 65, 0.06);
}

/* Member CTA for comments (sign in prompt) */
.comments-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0, 255, 161, 0.3);
}

.comments-cta-text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.comments-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  color: var(--color-bg-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comments-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 161, 0.3);
}

/* Member discussion prompt */
.member-discussion-prompt {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0, 255, 161, 0.3);
  margin-top: var(--space-6);
}

.member-discussion-prompt-text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.member-discussion-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  color: var(--color-bg-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-discussion-prompt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 161, 0.3);
}

/* Loading state for comments */
.comments-loading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  color: var(--color-text-tertiary);
}

.comments-loading::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 255, 161, 0.2);
  border-top-color: var(--color-accent-primary);
  border-radius: 50%;
  margin-right: var(--space-3);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty comments state */
.comments-empty {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-tertiary);
}

.comments-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.comments-empty-text {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.comments-empty-subtext {
  font-size: var(--text-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .post-comments {
    padding: var(--space-5);
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    border-radius: 0;
  }

  .comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .comments-icon {
    width: 40px;
    height: 40px;
  }

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

  .comment-replies {
    margin-left: var(--space-4);
    padding-left: var(--space-3);
  }

  .comment-actions {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
}

/* ============================================
   RELATED POSTS
   ============================================ */

.related-posts-inline {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  /* Added bottom margin for spacing after the section */
  margin-bottom: var(--space-12);
}

.related-posts-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
  padding: var(--space-4) var(--space-6);
  max-width: var(--container-width);
  margin: 0 auto var(--space-6);
}

/* Fixed class name to match HTML: breadcrumb-list instead of breadcrumbs-list */
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Added styling for breadcrumb items with separator */
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Add separator between items */
.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--color-text-tertiary);
  margin-left: var(--space-2);
}

/* Style links inside breadcrumb items */
.breadcrumb-item a {
  color: var(--color-accent-primary);
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Fixed class name to match HTML */
.breadcrumb-current {
  color: var(--color-text-secondary);
}

.breadcrumb-current span {
  color: var(--color-text-secondary);
}

/* ADDED URL slug in breadcrumbs - muted and monospace */
.breadcrumb-slug {
  color: var(--color-text-muted);
}

.breadcrumb-slug::after {
  display: none; /* No separator after slug since it's the last item */
}

.breadcrumb-slug-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8) 0;
}

.pagination-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.pagination-link:hover {
  border-color: var(--color-border-hover);
  color: var(--color-accent-primary);
}

.pagination-info {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ============================================
   READING PROGRESS (Sidebar)
   ============================================ */

.reading-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.reading-progress-bar {
  height: 4px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.reading-progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  width: 0;
  transition: width var(--transition-fast);
}

/* ADDED READING STATS FLEXBOX LAYOUT FOR LEFT/RIGHT ALIGNMENT */
.reading-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

.reading-stats span:last-child {
  font-weight: 600;
  color: var(--color-accent-primary); /* Corrected to use --color-accent-primary */
}

.reading-progress-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Added mobile sticky reading progress styles */
/* ============================================
   MOBILE STICKY READING PROGRESS
   ============================================ */

.mobile-reading-progress {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(10, 24, 23, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  transform: translateY(-100%);
  transition: transform var(--transition-base);
}

.mobile-reading-progress.is-visible {
  transform: translateY(0);
}

.mobile-progress-bar {
  height: 3px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-1);
}

.mobile-progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  width: 0;
  transition: width var(--transition-fast);
}

.mobile-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.mobile-progress-time {
  color: var(--color-text-tertiary);
}

.mobile-progress-percent {
  color: var(--color-accent-primary);
  font-weight: 600;
}

/* Show mobile progress on smaller screens */
@media (max-width: 1024px) {
  .mobile-reading-progress {
    display: block;
    /* use mobile header height for proper positioning */
    top: calc(var(--header-height-mobile) + 20px);
  }
}

/* further adjust for very small screens where header may be even smaller */
@media (max-width: 480px) {
  .mobile-reading-progress {
    top: calc(var(--header-height-mobile) + 20px);
  }
}

/* ============================================
   TAG CLOUD
   ============================================ */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag-cloud-link {
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.tag-cloud-link:hover {
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

/* ============================================
   RECOMMENDATIONS
   ============================================ */

.recommendations-section {
  padding: var(--space-8) 0;
}

.recommendations-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  text-align: center;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.recommendation-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.recommendation-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.recommendation-favicon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.recommendation-info {
  flex: 1;
  min-width: 0;
}

.recommendation-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommendation-reason {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

/* ============================================
   PRIVATE PAGE
   ============================================ */

.private-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--gradient-glow);
}

.private-card {
  max-width: 400px;
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  text-align: center;
  backdrop-filter: blur(var(--glass-blur));
}

.private-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--color-accent-primary);
}

.private-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.private-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.private-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.private-input {
  padding: var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: var(--text-base);
}

.private-input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
}

.private-error {
  font-size: var(--text-sm);
  color: #ff6b6b;
}

/* ============================================
   ERROR PAGES
   ============================================ */

/* Restructured error page to support suggestions section */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  text-align: center;
  padding: var(--space-16) 0;
}

.error-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-content {
  max-width: 600px;
  text-align: center;
  margin-bottom: var(--space-16);
}

.error-code {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-digit {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent-primary);
}

.error-digit-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.error-description {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Added error suggestions section styles */
.error-suggestions {
  width: 100%;
  max-width: var(--container-width);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.error-suggestions-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  color: var(--color-text-primary);
}

.error-suggestions-title svg {
  color: var(--color-accent-primary);
}

.error-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .error-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .error-posts-grid {
    grid-template-columns: 1fr;
  }

  .error-digit {
    font-size: 4rem;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* ============================================
   ARCHIVE / TAG / AUTHOR PAGES
   ============================================ */

.archive-header {
  padding: var(--space-16) 0;
  text-align: center;
  background: var(--gradient-glow);
}

.archive-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  margin-bottom: var(--space-4);
}

.archive-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

.archive-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

.archive-count {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Redesigned author archive section with hero layout, bio card, and social links */
.author-archive-header {
  padding-bottom: var(--space-12);
}

.author-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--space-10);
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-8);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient accent at top of card */
.author-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent-primary),
    var(--color-accent-highlight),
    var(--color-accent-secondary)
  );
}

.author-hero-avatar {
  flex-shrink: 0;
}

.author-avatar-img {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--color-accent-primary);
  box-shadow: 0 0 30px rgba(0, 255, 161, 0.2);
}

.author-avatar-placeholder {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
  border: 4px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}

.author-hero-content {
  flex: 1;
  min-width: 0;
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 255, 161, 0.1);
  border: 1px solid rgba(0, 255, 161, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.author-hero-name {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.author-hero-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.author-hero-location svg {
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.author-hero-bio {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--color-accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.author-hero-bio p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.author-hero-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.author-social-link:hover {
  background: rgba(0, 255, 161, 0.1);
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 161, 0.2);
}

/* Responsive author hero */
@media (max-width: 768px) {
  .author-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-6);
    gap: var(--space-6);
  }

  .author-avatar-img,
  .author-avatar-placeholder {
    width: 120px;
    height: 120px;
  }

  .author-hero-name {
    font-size: var(--text-3xl);
  }

  .author-hero-location {
    justify-content: center;
  }

  .author-hero-bio {
    border-left: none;
    border-top: 3px solid var(--color-accent-primary);
    border-radius: var(--radius-md);
  }

  .author-hero-links {
    justify-content: center;
  }
}

/* Legacy author header styles (keeping for backwards compatibility) */
.author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-header-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: var(--space-6);
  border: 4px solid var(--color-accent-primary);
}

.author-header-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.author-header-link {
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.author-header-link:hover {
  color: var(--color-accent-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for cards */
.post-feed .card:nth-child(1) {
  animation-delay: 0.1s;
}
.post-feed .card:nth-child(2) {
  animation-delay: 0.2s;
}
.post-feed .card:nth-child(3) {
  animation-delay: 0.3s;
}
.post-feed .card:nth-child(4) {
  animation-delay: 0.4s;
}
.post-feed .card:nth-child(5) {
  animation-delay: 0.5s;
}
.post-feed .card:nth-child(6) {
  animation-delay: 0.6s;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--color-accent-primary);
}

.text-center {
  text-align: center;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .content-sidebar,
  .share-section,
  .post-navigation,
  .newsletter-section {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .post-content {
    max-width: 100%;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}

/* ============================================
   TABLES - GLASSMORPHISM DESIGN
   ============================================ */

/* New scrollable wrapper for responsive tables */
.table-scroll-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  position: relative;
}

/* Glow effect on wrapper (stays fixed, doesn't scroll) */
.table-scroll-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 161, 0.05) 0%, transparent 60%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* Complete redesign with glassmorphism - translucent background, blur, glow orb */
.post-content table,
.page-article table {
  width: 100%;
  min-width: 500px; /* Ensure minimum width so columns stay aligned */
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(20, 40, 38, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 255, 161, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 80px rgba(0, 255, 161, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Remove margin from table when inside wrapper */
.table-scroll-wrapper table {
  margin: 0;
}

/* Glow orb behind table for glassmorphism effect */
.post-content table::before,
.page-article table::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 161, 0.15) 0%,
    rgba(71, 255, 255, 0.08) 40%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Subtle accent line at top instead of gradient bar */
.post-content table::after,
.page-article table::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 161, 0.5) 50%, transparent 100%);
  z-index: 1;
}

/* Uniform translucent header - no gradient */
.post-content thead,
.page-article thead {
  background: rgba(0, 255, 161, 0.08);
  position: relative;
  z-index: 1;
}

.post-content th,
.page-article th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-primary);
  /* Keep border only on header row to separate from body */
  border-bottom: 1px solid rgba(0, 255, 161, 0.2);
  position: relative;
  z-index: 1;
  white-space: nowrap; /* Prevent header text wrapping */
}

/* Uniform background for all cells - no alternating colors */
.post-content tbody,
.page-article tbody {
  position: relative;
  z-index: 1;
}

.post-content td,
.page-article td {
  padding: var(--space-4) var(--space-5);
  /* Removed border-bottom - no cell/row borders */
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  background: transparent;
  text-align: left; /* Ensure left alignment */
}

/* Removed .post-content tbody tr:last-child td rule - no longer needed */

/* Subtle hover glow effect */
.post-content tbody tr,
.page-article tbody tr {
  transition: all var(--transition-fast);
}

.post-content tbody tr:hover,
.page-article tbody tr:hover {
  background: rgba(0, 255, 161, 0.06);
  box-shadow: inset 0 0 20px rgba(0, 255, 161, 0.03);
}

.post-content tbody tr:hover td,
.page-article tbody tr:hover td {
  color: var(--color-text-primary);
}

/* Responsive table wrapper - legacy support */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  position: relative;
}

/* Additional glow wrapper for extra depth */
.table-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 161, 0.05) 0%, transparent 60%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* Mobile responsive styles - wrapper handles scroll, table stays intact */
@media (max-width: 768px) {
  .table-scroll-wrapper {
    margin: var(--space-6) 0;
  }

  .post-content table,
  .page-article table {
    min-width: 600px; /* Ensure table doesn't collapse */
  }

  .post-content th,
  .post-content td,
  .page-article th,
  .page-article td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .table-scroll-wrapper {
    margin: var(--space-4) 0;
  }

  .post-content table,
  .page-article table {
    min-width: 500px;
  }

  .post-content th,
  .post-content td,
  .page-article th,
  .page-article td {
    padding: var(--space-2) var(--space-3);
  }
}

/* ADDED AUTHORS LISTING PAGE STYLES */
/* ============================================
   AUTHORS LISTING PAGE
   ============================================ */

.authors-page {
  padding: var(--space-16) 0;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
}

.author-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.author-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent-primary),
    var(--color-accent-highlight),
    var(--color-accent-secondary)
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.author-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.author-card:hover::before {
  transform: scaleX(1);
}

.author-card-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--color-border);
  transition: border-color var(--transition-base);
}

.author-card:hover .author-card-avatar {
  border-color: var(--color-accent-primary);
}

.author-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card-avatar .author-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
  color: var(--color-text-tertiary);
}

.author-card-info {
  flex: 1;
  min-width: 0;
}

.author-card-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  transition: color var(--transition-fast);
}

.author-card:hover .author-card-name {
  color: var(--color-accent-primary);
}

.author-card-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-card-posts {
  font-size: var(--text-xs);
  color: var(--color-accent-primary);
  font-weight: 500;
}

.author-card-arrow {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  transition: all var(--transition-base);
}

.author-card:hover .author-card-arrow {
  color: var(--color-accent-primary);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .authors-grid {
    grid-template-columns: 1fr;
  }

  .author-card {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .author-card-avatar {
    width: 56px;
    height: 56px;
  }
}

/* ==========================================================================
   Ghost Portal Styling - Brand-aligned popup
   ========================================================================== */

/* Portal container and backdrop */
.gh-portal-popup-container {
  background: var(--color-bg-primary) !important;
}

.gh-portal-popup-wrapper {
  background: var(--color-bg-secondary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 161, 0.1) !important;
}

/* Portal content */
.gh-portal-content {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
}

/* Portal titles and text */
.gh-portal-title,
.gh-portal-main-title {
  color: var(--color-text-primary) !important;
  font-family: var(--font-heading) !important;
}

.gh-portal-text,
.gh-portal-description {
  color: var(--color-text-secondary) !important;
}

/* Portal input fields */
.gh-portal-input {
  background: var(--color-bg-tertiary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--color-text-primary) !important;
  padding: var(--space-3) var(--space-4) !important;
  transition: all var(--transition-base) !important;
}

.gh-portal-input:focus {
  border-color: var(--color-accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 255, 161, 0.15) !important;
  outline: none !important;
}

.gh-portal-input::placeholder {
  color: var(--color-text-tertiary) !important;
}

/* Portal labels */
.gh-portal-input-label {
  color: var(--color-text-secondary) !important;
  font-size: var(--text-sm) !important;
  font-weight: 500 !important;
}

/* Portal buttons - Primary (Sign up) */
.gh-portal-btn,
.gh-portal-btn-main {
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary)) !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  color: var(--color-bg-primary) !important;
  font-weight: 600 !important;
  padding: var(--space-3) var(--space-6) !important;
  transition: all var(--transition-base) !important;
  box-shadow: 0 4px 15px rgba(0, 255, 161, 0.3) !important;
}

.gh-portal-btn:hover,
.gh-portal-btn-main:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 255, 161, 0.4) !important;
}

/* Portal links (Sign in, etc.) */
.gh-portal-link,
.gh-portal-signin-link,
.gh-portal-signup-link {
  color: var(--color-accent-primary) !important;
  transition: color var(--transition-base) !important;
}

.gh-portal-link:hover,
.gh-portal-signin-link:hover,
.gh-portal-signup-link:hover {
  color: var(--color-accent-highlight) !important;
}

/* Portal close button */
.gh-portal-closeicon {
  color: var(--color-text-tertiary) !important;
  transition: color var(--transition-base) !important;
}

.gh-portal-closeicon:hover {
  color: var(--color-text-primary) !important;
}

/* Portal powered by Ghost */
.gh-portal-powered {
  color: var(--color-text-tertiary) !important;
}

.gh-portal-powered a {
  color: var(--color-text-secondary) !important;
}

/* Portal dividers */
.gh-portal-divider {
  background: var(--color-border) !important;
}

/* Portal errors */
.gh-portal-error {
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.1) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-2) var(--space-3) !important;
}

/* Portal success states */
.gh-portal-success {
  color: var(--color-accent-primary) !important;
}

/* Portal icon container */
.gh-portal-icon {
  border: 2px solid var(--color-accent-primary) !important;
}

/* Backdrop overlay */
.gh-portal-overlay {
  background: rgba(10, 25, 23, 0.85) !important;
  backdrop-filter: blur(4px) !important;
}

/* Plans and pricing cards */
.gh-portal-plan-section {
  background: var(--color-bg-tertiary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
}

.gh-portal-plan-section.checked {
  border-color: var(--color-accent-primary) !important;
  box-shadow: 0 0 0 1px var(--color-accent-primary) !important;
}

.gh-portal-plan-name {
  color: var(--color-text-primary) !important;
}

.gh-portal-plan-price {
  color: var(--color-accent-primary) !important;
}

.gh-portal-plan-currency,
.gh-portal-plan-period {
  color: var(--color-text-secondary) !important;
}

/* Checkboxes and radios */
.gh-portal-checkbox {
  border-color: var(--color-border) !important;
}

.gh-portal-checkbox:checked {
  background: var(--color-accent-primary) !important;
  border-color: var(--color-accent-primary) !important;
}

/* Complete redesign of author page with centered card layout, glassmorphism, and modern styling */

/* Author Page Header */
.author-page-header {
  padding: var(--space-12) 0 var(--space-16);
  position: relative;
}

/* Author Profile Card - Centered glassmorphic design */
.author-profile-card {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-10);
  background: linear-gradient(135deg, rgba(13, 31, 30, 0.9), rgba(21, 35, 34, 0.8));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Decorative accent glow behind card */
.author-card-bg-accent {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 255, 161, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Gradient top border */
.author-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent-primary),
    var(--color-accent-highlight),
    var(--color-accent-secondary)
  );
}

/* Avatar wrapper with decorative ring */
.author-profile-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-6);
  z-index: 1;
}

.author-profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--color-bg-primary);
  box-shadow: 0 0 0 4px var(--color-accent-primary), 0 8px 32px rgba(0, 255, 161, 0.3);
  position: relative;
  z-index: 2;
}

.author-profile-avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
  border: 4px solid var(--color-bg-primary);
  box-shadow: 0 0 0 4px var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  position: relative;
  z-index: 2;
}

/* Animated ring around avatar */
.author-profile-avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-full);
  border: 2px dashed rgba(0, 255, 161, 0.3);
  animation: spin 20s linear infinite;
  z-index: 1;
}

/* Author info section */
.author-profile-info {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-6);
}

.author-profile-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(0, 255, 161, 0.1);
  border: 1px solid rgba(0, 255, 161, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.author-profile-name {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.author-profile-location {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.author-profile-location svg {
  color: var(--color-accent-primary);
}

/* Bio section with accent styling */
.author-profile-bio {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-8);
  padding: var(--space-5);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-profile-bio::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--color-accent-primary);
  opacity: 0.3;
  line-height: 1;
}

.author-profile-bio p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin: 0;
  font-style: italic;
}

/* Social links as buttons */
.author-profile-social {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.author-social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.author-social-btn:hover {
  background: rgba(0, 255, 161, 0.1);
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 255, 161, 0.2);
}

.author-social-btn svg {
  flex-shrink: 0;
}

/* Stats section */
.author-profile-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.author-stat {
  text-align: center;
}

.author-stat-value {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.author-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Author posts section */
.author-posts-section {
  padding: var(--space-12) 0;
}

.author-posts-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-10);
  text-align: center;
}

.author-posts-title svg {
  color: var(--color-accent-primary);
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Skip to content link for keyboard navigation */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: var(--space-4);
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
}

/* Enhanced focus states for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Remove outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* Active navigation link indicator */
.nav-link.nav-current,
.mobile-nav-link.nav-current {
  color: var(--color-accent-primary);
  position: relative;
}

.nav-link.nav-current::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent-primary);
  border-radius: var(--radius-full);
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable specific animations */
  .hero-orb-1,
  .hero-orb-2,
  .footer-orb,
  .card::after,
  .glow-pulse {
    animation: none !important;
  }

  /* Disable transform effects */
  .card:hover,
  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none !important;
  }

  /* Keep hover color changes but remove motion */
  .card:hover .card-image img {
    transform: none !important;
  }
}

/* ============================================
   HIGH CONTRAST MODE SUPPORT
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --color-border: rgba(255, 255, 255, 0.3);
    --color-text-secondary: rgba(255, 255, 255, 0.85);
    --color-text-tertiary: rgba(255, 255, 255, 0.7);
  }

  .card,
  .sidebar-widget,
  .newsletter-card {
    border-width: 2px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  /* Hide non-essential elements for printing */
  .site-header,
  .site-footer,
  .content-sidebar,
  .newsletter-section,
  .share-section,
  .post-navigation,
  .related-posts-inline,
  .post-comments,
  .hero-orb,
  .btn,
  .mobile-menu,
  .mobile-menu-overlay,
  .skip-to-content {
    display: none !important;
  }

  /* Reset colors for print */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Ensure text is readable */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  td,
  th {
    color: black !important;
  }

  a {
    color: black !important;
    text-decoration: underline;
  }

  /* Show URLs after links */
  .post-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  /* Full width content */
  .content-wrapper,
  .content-main,
  .post-article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Ensure images print well */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Avoid page breaks inside important elements */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  blockquote,
  pre,
  figure {
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  /* Print header info */
  .post-header {
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }

  .post-title {
    font-size: 24pt !important;
  }

  .post-meta {
    color: #666 !important;
  }

  /* Code blocks */
  pre,
  code {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    color: black !important;
  }

  /* Tables */
  table {
    border-collapse: collapse !important;
  }

  th,
  td {
    border: 1px solid #ddd !important;
    padding: 8px !important;
  }
}

/* ============================================
   TABLES - GLASSMORPHISM DESIGN
   ============================================ */

/* Complete redesign with glassmorphism - translucent background, blur, glow orb */
.post-content table {
  width: 100%;
  margin: var(--space-8) 0;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(20, 40, 38, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 255, 161, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 80px rgba(0, 255, 161, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Glow orb behind table for glassmorphism effect */
.post-content table::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 161, 0.15) 0%,
    rgba(71, 255, 255, 0.08) 40%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Subtle accent line at top instead of gradient bar */
.post-content table::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 161, 0.5) 50%, transparent 100%);
  z-index: 1;
}

/* Uniform translucent header - no gradient */
.post-content thead {
  background: rgba(0, 255, 161, 0.08);
  position: relative;
  z-index: 1;
}

.post-content th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-primary);
  /* Keep border only on header row to separate from body */
  border-bottom: 1px solid rgba(0, 255, 161, 0.2);
  position: relative;
  z-index: 1;
}

/* Uniform background for all cells - no alternating colors */
.post-content tbody {
  position: relative;
  z-index: 1;
}

.post-content td {
  padding: var(--space-4) var(--space-5);
  /* Removed border-bottom - no cell/row borders */
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  background: transparent;
}

/* Removed .post-content tbody tr:last-child td rule - no longer needed */

/* Subtle hover glow effect */
.post-content tbody tr {
  transition: all var(--transition-fast);
}

.post-content tbody tr:hover {
  background: rgba(0, 255, 161, 0.06);
  box-shadow: inset 0 0 20px rgba(0, 255, 161, 0.03);
}

.post-content tbody tr:hover td {
  color: var(--color-text-primary);
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  position: relative;
}

/* Additional glow wrapper for extra depth */
.table-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 161, 0.05) 0%, transparent 60%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* ADDED MOBILE RESPONSIVE TABLE STYLES TO PREVENT HORIZONTAL OVERFLOW */
@media (max-width: 768px) {
  .post-content table {
    display: table; /* Ensure table display is preserved */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .post-content thead {
    display: table-header-group;
  }

  .post-content tbody {
    display: table-row-group;
  }

  .post-content tr {
    display: table-row;
  }

  .post-content th,
  .post-content td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    min-width: 120px;
    white-space: nowrap;
    text-align: left; /* Left-align text */
    display: table-cell; /* Ensure cell display is preserved */
  }
}

/* EVEN SMALLER SCREENS - REDUCE PADDING FURTHER */
@media (max-width: 480px) {
  .post-content table {
    margin: var(--space-4) 0;
  }

  .post-content th,
  .post-content td {
    padding: var(--space-2) var(--space-3);
    min-width: 100px;
  }
}

/* ADDED AUTHORS LISTING PAGE STYLES */
/* ============================================
   AUTHORS LISTING PAGE
   ============================================ */

.authors-page {
  padding: var(--space-16) 0;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
}

.author-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.author-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent-primary),
    var(--color-accent-highlight),
    var(--color-accent-secondary)
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.author-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.author-card:hover::before {
  transform: scaleX(1);
}

.author-card-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--color-border);
  transition: border-color var(--transition-base);
}

.author-card:hover .author-card-avatar {
  border-color: var(--color-accent-primary);
}

.author-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card-avatar .author-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
  color: var(--color-text-tertiary);
}

.author-card-info {
  flex: 1;
  min-width: 0;
}

.author-card-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  transition: color var(--transition-fast);
}

.author-card:hover .author-card-name {
  color: var(--color-accent-primary);
}

.author-card-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-card-posts {
  font-size: var(--text-xs);
  color: var(--color-accent-primary);
  font-weight: 500;
}

.author-card-arrow {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  transition: all var(--transition-base);
}

.author-card:hover .author-card-arrow {
  color: var(--color-accent-primary);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .authors-grid {
    grid-template-columns: 1fr;
  }

  .author-card {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .author-card-avatar {
    width: 56px;
    height: 56px;
  }
}
