/* ===== BLOG SPECIFIC STYLES - ALWAYS LIGHT MODE ===== */
body.blog-page {
  background-color: #ffffff;
  color: #2a2a2a;
}

body.blog-page #matrix-canvas {
  display: none;
}

body.blog-page .nav-logo .logo-text {
  text-decoration: none;
  color: var(--accent-primary);
}

body.blog-page[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: rgba(255, 255, 255, 0.8);
  --bg-tertiary: rgba(255, 255, 255, 0.95);
  --text-primary: #2a2a2a;
  --text-secondary: #4a4a4a;
  --text-heading: #1a1a1a;
  --accent-primary: #00aa55;
  --accent-secondary: #008844;
  --border-color: rgba(0, 170, 85, 0.3);
  --shadow-color: rgba(0, 170, 85, 0.1);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --scrollbar-track: #e0e0e0;
}

body.blog-page .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 170, 85, 0.3);
}

body.blog-page .nav-link {
  color: #2a2a2a;
}

body.blog-page .nav-link:hover {
  color: #00aa55;
}

body.blog-page .bar {
  background: #00aa55;
}

/* Override global paragraph styles for blog pages */
body.blog-page p {
  color: #1a1a1a !important;
}

body.blog-page .blog-post-content {
  color: #1a1a1a !important;
}

body.blog-page .blog-post-content p,
body.blog-page .blog-post-content li,
body.blog-page .blog-post-content span,
body.blog-page .blog-post-content div:not(.blog-post-content a):not(.blog-post-content code) {
  color: #1a1a1a !important;
}

body.blog-page .blog-post-content a {
  color: #00aa55 !important;
}

body.blog-page .blog-post-content code {
  color: #00aa55 !important;
}

/* Blog Container */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 2rem 4rem 2rem;
  min-height: 100vh;
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.blog-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.2rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* Blog Post List */
.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.blog-list-item:last-child {
  border-bottom: none;
}

.blog-list-item:hover {
  transform: translateX(5px);
}

.blog-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-post-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #00aa55;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.blog-post-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-post-link:hover .blog-post-title {
  color: #00aa55;
}

.blog-post-excerpt {
  font-size: 1.1rem;
  color: #4a4a4a;
  line-height: 1.8;
  margin-top: 0.5rem;
}

/* Single Post Page */
.blog-post {
  max-width: 700px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-post-date-large {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #00aa55;
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #00aa55;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #008844;
  transform: translateX(-3px);
}

.blog-post-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.9;
  color: #1a1a1a !important;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-post-content h1 {
  font-size: 2.5rem;
}

.blog-post-content h2 {
  font-size: 2rem;
}

.blog-post-content h3 {
  font-size: 1.5rem;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
  color: #1a1a1a !important;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  line-height: 1.9;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content a {
  color: #00aa55;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-content a:hover {
  color: #008844;
}

.blog-post-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background-color: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: #00aa55;
}

.blog-post-content pre {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
}

.blog-post-content pre code {
  background-color: transparent;
  padding: 0;
  color: #2a2a2a;
}

.blog-post-content blockquote {
  border-left: 4px solid #00aa55;
  padding-left: 1.5rem;
  margin-left: 0;
  margin-bottom: 1.5rem;
  color: #1a1a1a !important;
  font-style: italic;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-post-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2.5rem 0;
}

/* Empty State */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #4a4a4a;
}

.blog-empty p {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Loading State */
.blog-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: #4a4a4a;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .blog-container {
    padding: 100px 1.5rem 3rem 1.5rem;
  }

  .blog-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
  }

  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-header p {
    font-size: 1.1rem;
  }

  .blog-list-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-post-excerpt {
    font-size: 1rem;
    line-height: 1.7;
  }

  .blog-post-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .blog-post-content h1 {
    font-size: 2rem;
  }

  .blog-post-content h2 {
    font-size: 1.75rem;
  }

  .blog-post-content h3 {
    font-size: 1.5rem;
  }

  .blog-post-content p {
    margin-bottom: 1.25rem;
  }

  .blog-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .blog-container {
    padding: 100px 1rem 2rem 1rem;
  }

  .blog-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  .blog-header h1 {
    font-size: 1.75rem;
  }

  .blog-header p {
    font-size: 1rem;
  }

  .blog-list-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .blog-post-title {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .blog-post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .blog-post-content {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .blog-post-content h1 {
    font-size: 1.75rem;
  }

  .blog-post-content h2 {
    font-size: 1.5rem;
  }

  .blog-post-content h3 {
    font-size: 1.25rem;
  }

  .blog-post-content p {
    margin-bottom: 1rem;
  }

  .blog-post-content pre {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .blog-post-content blockquote {
    padding-left: 1rem;
    font-size: 0.95rem;
  }
}

