/* ========================================
   BLOG SYSTEM - Firecrawl Inspired Design
   ======================================== */

/* Blog Variables */
:root {
  --blog-max-width: 1100px;
  --blog-sidebar-width: 280px;
  --blog-content-gap: 60px;
  --blog-accent: rgba(245, 158, 11, 0.1);
  --blog-border: rgba(226, 232, 240, 0.6);
  --blog-primary: #f59e0b;
  --blog-secondary: #b45309;
  --blog-purple: #f59e0b;
}

/* ========================================
   BLOG INDEX PAGE
   ======================================== */

.blog-hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  text-align: center;
  position: relative;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh);
  opacity: 0.3;
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.blog-hero p {
  font-size: 1.25rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.blog-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

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

.blog-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.blog-stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Blog Posts Grid */
.blog-posts {
  padding: 80px 0;
  background: var(--bg-white);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-post-card {
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--blog-border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 158, 11, 0.2);
}

.blog-post-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--transition);
}

.blog-post-card:hover .blog-post-image {
  transform: scale(1.02);
}

.blog-post-content {
  padding: 2rem;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.blog-post-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-post-read-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: var(--transition);
}

.blog-post-card:hover .blog-post-title {
  color: var(--primary-color);
}

.blog-post-excerpt {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.blog-post-tag {
  background: rgba(245, 158, 11, 0.1);
  color: var(--purple-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.blog-post-cta:hover {
  color: var(--secondary-color);
  transform: translateX(4px);
}

/* ========================================
   BLOG POST LAYOUT - Firecrawl Style
   ======================================== */

.blog-post-layout {
  display: block;
  max-width: var(--blog-max-width);
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #0b0c1d 0%, #12132a 100%);
  min-height: 100vh;
}

.blog-content {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  background: transparent;
  overflow-x: hidden;
}

.blog-sidebar {
  display: none; /* Hide sidebar, using fixed hamburger menu instead */
}

/* Fixed TOC Hamburger Menu */
.toc-hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(245, 158, 11, 0.9);
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toc-hamburger:hover {
  background: rgba(245, 158, 11, 1);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.toc-hamburger-icon {
  font-size: 24px;
  color: white;
  font-weight: bold;
}

.toc-menu-fixed {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  background: rgba(11, 12, 29, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 280px;
  max-width: 320px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.toc-menu-fixed.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.toc-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.toc-close {
  background: transparent;
  border: none;
  color: #E5E7EB;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toc-close:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.toc-menu-fixed .toc-title {
  color: #f59e0b;
  font-size: 1.1rem;
  margin: 0;
}

.toc-menu-fixed .toc-link {
  color: #E5E7EB;
}

.toc-menu-fixed .toc-link:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

/* Blog Header */
.blog-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--blog-border);
}

.blog-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

:not(.dark-mode) .blog-title {
  color: #0f172a;
}

.blog-subtitle {
  font-size: 1.25rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 400;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-light);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-read-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-updated {
  color: var(--text-light);
  font-style: italic;
}

/* TL;DR Callout Box */
.tldr-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0 3rem;
  position: relative;
}

.tldr-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 12px 12px 0 0;
}

.tldr-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tldr-list {
  display: grid;
  gap: 0.75rem;
}

.tldr-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-medium);
  line-height: 1.5;
}

.tldr-item::before {
  content: '✓';
  color: var(--success-color);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Infographic Hero Image */
.infographic-hero {
  margin: 3rem 0;
  text-align: center;
}

.infographic-hero img,
.infographic-hero .infographic-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  max-width: 1200px;
}

.infographic-hero img:hover,
.infographic-hero .infographic-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(245, 158, 11, 0.3);
}

.infographic-caption {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 1rem;
  font-style: italic;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Content */
.blog-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #E5E7EB;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  display: block;
  visibility: visible;
  opacity: 1;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4,
.blog-body h5,
.blog-body h6 {
  color: #ffffff;
  margin: 2rem 0 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-body h3 {
  color: #fbbf24;
}

.blog-body h1 { font-size: 2.5rem; }
.blog-body h2 { font-size: 2rem; }
.blog-body h3 { font-size: 1.5rem; }
.blog-body h4 { font-size: 1.25rem; }

.blog-body p {
  margin-bottom: 1.5rem;
  color: #E5E7EB;
}

.blog-body ul,
.blog-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #E5E7EB;
}

/* Light mode overrides for blog body */
:not(.dark-mode) .blog-body {
  color: #1e293b;
}

:not(.dark-mode) .blog-body h1,
:not(.dark-mode) .blog-body h2 {
  color: #0f172a;
}

:not(.dark-mode) .blog-body h3 {
  color: #d97706;
}

:not(.dark-mode) .blog-body p {
  color: #1e293b;
}

:not(.dark-mode) .blog-body li {
  color: #1e293b;
}

.blog-body blockquote {
  border-left: 4px solid var(--purple-accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-medium);
  background: rgba(245, 158, 11, 0.05);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
}

.blog-body code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

.blog-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-body pre code {
  background: none;
  padding: 0;
}

/* Image Captions */
.image-container {
  margin: 2rem 0;
  text-align: center;
}

.blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.blog-image:hover {
  transform: scale(1.02);
}

.image-caption {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  font-style: italic;
  text-align: center;
}

/* Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  opacity: 1;
}

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.image-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Table Styles */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.blog-table th,
.blog-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--blog-border);
}

.blog-table th {
  background: rgba(245, 158, 11, 0.05);
  font-weight: 700;
  color: var(--text-dark);
}

.blog-table tr:hover {
  background: rgba(245, 158, 11, 0.02);
}

/* Table scroll wrapper (Tailwind utilities are not loaded on blog pages) */
.overflow-x-auto {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.5rem 0;
}

.overflow-x-auto table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  border: 2px solid #4b5563;
}

.overflow-x-auto table thead {
  background-color: #1f2937;
}

.overflow-x-auto table th {
  border: 1px solid #4b5563;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #f3f4f6;
}

.overflow-x-auto table td {
  border: 1px solid #4b5563;
  padding: 12px;
  color: #e5e7eb;
}

.overflow-x-auto table tbody tr {
  background-color: rgba(31, 41, 55, 0.5);
}

.overflow-x-auto table tbody tr:hover {
  background-color: rgba(245, 158, 11, 0.1);
}

.overflow-x-auto table tbody tr:nth-child(even) {
  background-color: rgba(31, 41, 55, 0.3);
}

/* Responsive figures and charts inside blog posts */
.blog-body figure,
.blog-post-layout figure {
  max-width: 100%;
  margin: 2rem 0;
  overflow: hidden;
}

.blog-body figure img,
.blog-body img,
.blog-post-layout .blog-content img,
.blog-post-layout .blog-content svg,
.blog-body svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.blog-body > table,
.blog-content > table {
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* CTA Section */
.blog-cta {
  background: var(--gradient-accent);
  color: white;
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.blog-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.blog-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.blog-cta .btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
  touch-action: manipulation;
  display: inline-block;
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.blog-cta .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.blog-cta .btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.25);
}

/* Ensure all buttons are clickable */
.btn,
a.btn,
button.btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
  text-decoration: none;
  display: inline-block;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
  pointer-events: auto !important;
}

.btn:active,
a.btn:active,
button.btn:active {
  pointer-events: auto !important;
}

.btn-primary-link {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-link:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Table of Contents */
.toc {
  background: var(--bg-white);
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: var(--transition);
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2);
  touch-action: manipulation;
}

.toc-link:hover {
  color: var(--primary-color);
  background: var(--blog-accent);
}

.toc-link.active {
  color: var(--primary-color);
  background: var(--blog-accent);
  font-weight: 600;
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--blog-border);
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.related-post-card {
  background: var(--bg-white);
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition);
}

.related-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(245, 158, 11, 0.2);
}

.related-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.related-post-card:hover .related-post-title {
  color: var(--primary-color);
}

.related-post-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Social Links */
.social-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--blog-border);
}

.social-links h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 119, 181, 0.3);
  touch-action: manipulation;
}

.social-btn.linkedin {
  background: #0077b5;
  color: white;
}

.social-btn.linkedin:hover {
  background: #005885;
  transform: translateY(-2px);
}

.social-btn.linkedin:active {
  transform: translateY(0);
  background: #004d6b;
}

/* FAQ Section */
.faq-section {
  margin: 4rem 0;
}

.faq-item {
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background: rgba(245, 158, 11, 0.05);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(245, 158, 11, 0.08);
}

.faq-question h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-medium);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .blog-post-layout {
    padding: 60px 24px;
  }
  
  .blog-content {
    max-width: 100%;
    width: 100%;
  }
  
  .toc-menu-fixed {
    top: 70px;
    right: 10px;
    min-width: 260px;
    max-width: 280px;
  }
  
  .toc-hamburger {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .blog-post-layout {
    padding: 48px 12px 64px;
  }

  .blog-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .overflow-x-auto {
    margin: 1.5rem -4px;
    border-radius: 8px;
  }

  .overflow-x-auto table th,
  .overflow-x-auto table td,
  .blog-table th,
  .blog-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .blog-body h2 {
    font-size: 1.55rem;
    word-break: break-word;
  }

  .blog-body h3 {
    font-size: 1.2rem;
    word-break: break-word;
  }

  .blog-hero h1 {
    font-size: 2.5rem;
  }
  
  .blog-title {
    font-size: 2.2rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .tldr-box {
    padding: 1.5rem;
  }
  
  .blog-cta {
    padding: 3rem 1.5rem;
  }
  
  .blog-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .social-buttons {
    justify-content: center;
  }
  
  /* Best/Worst User Scenario Grid - Mobile */
  .blog-body > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .infographic-hero img {
    max-width: 100%;
  }
  
  .toc-menu-fixed {
    top: 60px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
    max-height: calc(100vh - 80px);
  }
  
  .toc-hamburger {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .toc-hamburger-icon {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 60px 0 40px;
  }
  
  .blog-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-post-content {
    padding: 1.5rem;
  }
  
  .blog-post-layout {
    padding: 40px 16px;
  }
  
  .toc {
    padding: 1rem;
  }
}

/* ========================================
   LIGHT MODE SUPPORT
   ======================================== */

/* Light mode - black text on light background */
:not(.dark-mode) .blog-post-layout {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

:not(.dark-mode) .blog-body {
  color: #1e293b;
}

:not(.dark-mode) .blog-body h1,
:not(.dark-mode) .blog-body h2 {
  color: #0f172a;
}

:not(.dark-mode) .blog-body h3 {
  color: #d97706;
}

:not(.dark-mode) .blog-body p {
  color: #1e293b;
}

:not(.dark-mode) .blog-body li {
  color: #1e293b;
}

:not(.dark-mode) .blog-title {
  color: #0f172a;
}

:not(.dark-mode) .blog-subtitle {
  color: #475569;
}

:not(.dark-mode) .toc-menu-fixed {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(245, 158, 11, 0.2);
}

:not(.dark-mode) .toc-menu-fixed .toc-link {
  color: #475569;
}

:not(.dark-mode) .toc-menu-fixed .toc-link:hover {
  color: #d97706;
  background: rgba(245, 158, 11, 0.1);
}

:not(.dark-mode) .overflow-x-auto table {
  border: 2px solid #cbd5e1;
}

:not(.dark-mode) .overflow-x-auto table thead {
  background-color: #f1f5f9;
}

:not(.dark-mode) .overflow-x-auto table th {
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

:not(.dark-mode) .overflow-x-auto table td {
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

:not(.dark-mode) .overflow-x-auto table tbody tr {
  background-color: #ffffff;
}

:not(.dark-mode) .overflow-x-auto table tbody tr:hover {
  background-color: rgba(245, 158, 11, 0.05);
}

:not(.dark-mode) .overflow-x-auto table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

.dark-mode .blog-post-card,
.dark-mode .toc,
.dark-mode .related-post-card {
  background: #1e293b;
  border-color: rgba(226, 232, 240, 0.2);
}

.dark-mode .blog-post-title,
.dark-mode .blog-title,
.dark-mode .toc-title,
.dark-mode .related-post-title {
  color: #e2e8f0;
}

.dark-mode .blog-subtitle,
.dark-mode .blog-post-excerpt,
.dark-mode .blog-body,
.dark-mode .toc-link,
.dark-mode .related-post-date {
  color: #cbd5e1;
}

.dark-mode .blog-post-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.dark-mode .tldr-box {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.dark-mode .blog-table th {
  background: rgba(245, 158, 11, 0.1);
}

.dark-mode .faq-question {
  background: rgba(245, 158, 11, 0.1);
}

.dark-mode .faq-question:hover {
  background: rgba(245, 158, 11, 0.15);
}

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

@media print {
  .blog-sidebar,
  .social-links,
  .blog-cta {
    display: none;
  }
  
  .blog-post-layout {
    grid-template-columns: 1fr;
  }
  
  .blog-body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
