/* Blog Styles with Dark Mode Support */
/* Font */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* CSS Variables for Light Mode (Default) */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #64748b;
  --text-color: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f3f4f6;
  --border-color: #e2e8f0;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #94a3b8;
  --text-color: #e2e8f0;
  --text-light: #94a3b8;
  --bg-color: #1e293b;
  --bg-light: #0f172a;
  --bg-gray: #334155;
  --border-color: #334155;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Body */
[data-theme="dark"] body {
  background-color: var(--bg-light);
  color: var(--text-color);
}

[data-theme="dark"] .bg-gray-50 {
  background-color: var(--bg-light) !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--bg-color) !important;
}

[data-theme="dark"] .text-gray-800 {
  color: var(--text-color) !important;
}

[data-theme="dark"] .text-gray-600 {
  color: var(--text-light) !important;
}

[data-theme="dark"] .text-gray-500 {
  color: var(--secondary-color) !important;
}

[data-theme="dark"] .border-gray-300,
[data-theme="dark"] .border-gray-200 {
  border-color: var(--border-color) !important;
}

[data-theme="dark"] nav {
  background-color: var(--bg-color) !important;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .hover\:bg-gray-100:hover {
  background-color: var(--bg-gray) !important;
}

[data-theme="dark"] input,
[data-theme="dark"] select {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] input::placeholder {
  color: var(--text-light) !important;
  opacity: 0.7;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Mobile menu styles */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
  max-height: 600px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

/* Better Spacing and Visual Hierarchy */
main {
  min-height: calc(100vh - 300px);
}

/* Improved Section Spacing */
.container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Hero Section Gradient */
.bg-gradient-to-r {
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .bg-gradient-to-r.from-blue-50.to-indigo-50 {
  background: linear-gradient(to right, #1e3a5f, #2d3748) !important;
}

/* Enhanced Hero Content */
.bg-gradient-to-r h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bg-gradient-to-r .bg-blue-100,
.bg-gradient-to-r .bg-indigo-100 {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.bg-gradient-to-r .bg-blue-100:hover,
.bg-gradient-to-r .bg-indigo-100:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Newsletter Section - Enhanced */
.newsletter-section {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  position: relative;
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .newsletter-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.newsletter-section h2 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.newsletter-section input {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.newsletter-section input:focus {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.newsletter-section button {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.newsletter-section button:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Hero Badges */
.bg-blue-100 {
  background-color: #dbeafe;
}

.text-blue-800 {
  color: #1e40af;
}

.bg-indigo-100 {
  background-color: #e0e7ff;
}

.text-indigo-800 {
  color: #3730a3;
}

[data-theme="dark"] .bg-blue-100 {
  background-color: #1e3a5f !important;
}

[data-theme="dark"] .text-blue-800 {
  color: #93c5fd !important;
}

[data-theme="dark"] .bg-indigo-100 {
  background-color: #312e81 !important;
}

[data-theme="dark"] .text-indigo-800 {
  color: #a5b4fc !important;
}

/* Text Highlights in Hero */
.text-blue-600 {
  color: #2563eb;
}

[data-theme="dark"] .text-blue-600 {
  color: #60a5fa !important;
}

/* Button Styles - Matching Portfolio */
.bg-blue-600 {
  background-color: #2563eb;
}

.bg-blue-600:hover {
  background-color: #1e40af;
}

[data-theme="dark"] .bg-blue-600 {
  background-color: #3b82f6 !important;
}

[data-theme="dark"] .bg-blue-600:hover {
  background-color: #2563eb !important;
}

/* Link Styles */
a.text-blue-600:hover {
  color: #1e40af;
}

[data-theme="dark"] a.text-blue-600:hover {
  color: #3b82f6 !important;
}

/* Blog Card Grid - Better Spacing */
#blog-posts-container {
  gap: 2rem !important;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  #blog-posts-container {
    gap: 2.5rem !important;
  }
}

/* Blog Card Styles - Enhanced */
.blog-card {
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #e5e7eb;
}

[data-theme="dark"] .blog-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .blog-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.blog-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.blog-card .p-6 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .text-blue-600 {
  margin-top: auto;
}

/* Category Badge - Matching Portfolio Style */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #1e40af;
  transition: var(--transition);
}

[data-theme="dark"] .category-badge {
  background-color: #1e3a5f;
  color: #93c5fd;
}

.category-badge:hover {
  background-color: #bfdbfe;
  transform: translateY(-1px);
}

[data-theme="dark"] .category-badge:hover {
  background-color: #2c5282;
}

/* Category Pills */
.category-pill {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid #e5e7eb;
  background-color: white;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.category-pill:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.category-pill.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .category-pill {
  background-color: var(--bg-color);
  border-color: var(--border-color);
  color: var(--text-light);
}

[data-theme="dark"] .category-pill:hover {
  border-color: var(--primary-color);
}

[data-theme="dark"] .category-pill.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

/* Type Pills */
.type-pill {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid #e5e7eb;
  background-color: white;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.type-pill:hover {
  border-color: #9333ea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

.type-pill.active {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

[data-theme="dark"] .type-pill {
  background-color: var(--bg-color);
  border-color: var(--border-color);
  color: var(--text-light);
}

[data-theme="dark"] .type-pill:hover {
  border-color: #a855f7;
}

[data-theme="dark"] .type-pill.active {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
}

/* Gradient Card Headers */
.gradient-pink {
  background: linear-gradient(135deg, #ff6b9d 0%, #ffa6c1 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #da22ff 0%, #9733ee 100%);
}

.gradient-blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-teal {
  background: linear-gradient(135deg, #1cb5e0 0%, #00b09b 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-green {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-gradient-header {
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-gradient-header i {
  font-size: 1.75rem;
  opacity: 0.9;
}

/* Reading Time Badge */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #6b7280;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

[data-theme="dark"] .reading-time {
  background-color: #374151;
  color: #9ca3af;
}

/* Post Content Styling - Enhanced */
.prose {
  line-height: 1.85;
  font-size: 1.125rem;
  color: var(--text-color);
}

.prose h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  line-height: 1.3;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.prose h3 {
  font-size: 1.625rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  line-height: 1.85;
}

.prose p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.prose ul,
.prose ol {
  margin-left: 2rem;
  margin-bottom: 1.75rem;
  margin-top: 1rem;
}

.prose li {
  margin-bottom: 0.75rem;
  color: var(--text-color);
  line-height: 1.75;
  padding-left: 0.5rem;
}

.prose ul li {
  list-style-type: disc;
}

.prose ol li {
  list-style-type: decimal;
}

.prose a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
  font-weight: 500;
}

.prose a:hover {
  color: var(--primary-dark);
  text-decoration-thickness: 2px;
}

.prose code {
  background-color: var(--bg-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: 'Monaco', 'Courier New', monospace;
  color: #e83e8c;
  font-weight: 500;
}

[data-theme="dark"] .prose code {
  color: #ff79c6;
}

.prose pre {
  background-color: var(--bg-gray);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.prose blockquote {
  border-left: 5px solid var(--primary-color);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
  background-color: var(--bg-light);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 1.1rem;
}

.prose strong {
  font-weight: 600;
  color: var(--text-color);
}

.prose em {
  font-style: italic;
  color: var(--text-light);
}

.prose hr {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 3rem 0;
}

/* Social Share Section - Enhanced */
#social-share {
  margin-top: 3rem;
}

#social-share h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Social Share Buttons - Enhanced */
#share-twitter {
  background-color: #1da1f2;
  transition: all 0.3s ease;
}

#share-twitter:hover {
  background-color: #1a8cd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

#share-facebook {
  background-color: #1877f2;
  transition: all 0.3s ease;
}

#share-facebook:hover {
  background-color: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

#share-linkedin {
  background-color: #0077b5;
  transition: all 0.3s ease;
}

#share-linkedin:hover {
  background-color: #006399;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

#share-copy {
  background-color: #6b7280;
  transition: all 0.3s ease;
}

#share-copy:hover {
  background-color: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Related Posts Section - Enhanced */
#related-posts-section {
  margin-top: 3rem;
}

#related-posts-section h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* Related Posts Card - Enhanced */
.related-post-card {
  transition: var(--transition);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.75rem;
  background-color: var(--bg-color);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-post-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-post-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.related-post-card .category-badge {
  margin-top: 0.75rem;
}

/* Search and Filter Inputs */
#search-input,
#year-filter {
  background-color: white;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

[data-theme="dark"] #search-input,
[data-theme="dark"] #year-filter {
  background-color: var(--bg-color);
  color: var(--text-color);
  border-color: var(--border-color);
}

#search-input::placeholder {
  color: #9ca3af;
}

[data-theme="dark"] #search-input::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

/* Search Input Focus */
#search-input:focus,
#year-filter:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

[data-theme="dark"] #search-input:focus,
[data-theme="dark"] #year-filter:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Post Count Styling */
#post-count {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-light);
  border-radius: 9999px;
  display: inline-block;
  margin: 0 auto;
}

.mb-6 {
  text-align: center;
}

/* No Results Message - Enhanced */
#no-results {
  padding: 4rem 2rem;
}

#no-results i {
  opacity: 0.5;
}

#no-results h3 {
  font-weight: 700;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Post Article Card - Enhanced */
#post-content {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] #post-content {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Post Header Enhancements */
#post-content header {
  border-bottom: 3px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

#post-title {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

#post-categories .category-badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Better spacing for post metadata */
#post-content header .flex {
  padding: 0.75rem 0;
}

/* Back to Blog Button - Enhanced */
.mb-8 a,
.mt-12 a {
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--bg-light);
}

.mb-8 a:hover,
.mt-12 a:hover {
  background-color: var(--bg-gray);
  transform: translateX(-4px);
}

.mb-8 a i,
.mt-12 a i {
  transition: transform 0.3s ease;
}

.mb-8 a:hover i {
  transform: translateX(-4px);
}

.mt-12 a:hover i {
  transform: translateX(-4px);
}

/* Responsive Text Sizes */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
    line-height: 1.75;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .prose p:first-of-type {
    font-size: 1.125rem;
  }

  #post-title {
    font-size: 2rem !important;
  }
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  a,
  button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Enhanced Footer */
footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 2.5rem 0;
}

[data-theme="dark"] footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

footer p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Print Styles */
@media print {
  nav,
  footer,
  #social-share,
  #related-posts-section,
  .mobile-menu,
  #dark-mode-toggle,
  #mobile-dark-mode-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .prose a {
    color: #0066cc;
  }
}

/* Enhanced Code Block Styling with Prism.js */
pre[class*="language-"] {
  background-color: #2d2d2d !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  overflow-x: auto !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #404040 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

[data-theme="dark"] pre[class*="language-"] {
  background-color: #1a1a1a !important;
  border-color: #2a2a2a !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

code[class*="language-"] {
  font-family: 'Fira Code', 'Monaco', 'Consolas', 'Courier New', monospace !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  text-shadow: none !important;
}

/* Inline code styling */
:not(pre) > code[class*="language-"],
:not(pre) > code {
  background-color: #f5f5f5 !important;
  color: #e83e8c !important;
  padding: 0.2rem 0.5rem !important;
  border-radius: 4px !important;
  font-size: 0.9em !important;
  font-family: 'Fira Code', 'Monaco', 'Consolas', 'Courier New', monospace !important;
  border: 1px solid #e0e0e0 !important;
}

[data-theme="dark"] :not(pre) > code[class*="language-"],
[data-theme="dark"] :not(pre) > code {
  background-color: #2d2d2d !important;
  color: #ff79c6 !important;
  border-color: #404040 !important;
}

/* Scrollbar for code blocks */
pre[class*="language-"]::-webkit-scrollbar {
  height: 8px;
}

pre[class*="language-"]::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

pre[class*="language-"]::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

pre[class*="language-"]::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Code block language badge (optional enhancement) */
pre[class*="language-"]::before {
  content: attr(class);
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Roboto', sans-serif;
}

pre[class*="language-"] {
  position: relative;
}

/* Better token colors for readability */
.token.comment {
  color: #6a9955 !important;
  font-style: italic;
}

.token.keyword {
  color: #569cd6 !important;
  font-weight: 500;
}

.token.string {
  color: #ce9178 !important;
}

.token.function {
  color: #dcdcaa !important;
}

.token.number {
  color: #b5cea8 !important;
}

.token.operator {
  color: #d4d4d4 !important;
}

.token.punctuation {
  color: #d4d4d4 !important;
}

.token.class-name {
  color: #4ec9b0 !important;
}

/* Mobile responsive code blocks */
@media (max-width: 768px) {
  pre[class*="language-"] {
    padding: 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
  }

  code[class*="language-"] {
    font-size: 0.85rem !important;
  }
}
