/* CSV2Invoice Blog Styles */
/* Adapted from BlogneticAI example with CSV2Invoice design system */

/* ===== Blog Header Section ===== */
.blog-header-section {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
}

.blog-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-tagline {
  font-size: 1.2rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== Blog Posts List ===== */
.blog-posts-list {
  padding: 3rem 0;
  text-align: left;
}

.blog-list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 2rem;
  max-width: 800px;
  display: inline-block;
  text-align: left;
}

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

.blog-list-link {
  color: hsl(var(--primary));
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

.blog-list-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===== Blog CTA Section ===== */
.blog-cta-section {
  padding: 3rem 0;
  border-top: 1px solid hsl(var(--border));
}

.blog-cta-card {
  background-color: hsl(var(--secondary));
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.blog-cta-card h2 {
  font-size: 1.8rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.blog-cta-card p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== Navigation Enhancement ===== */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

/* ===== Individual Blog Post Styles ===== */

/* Simple Article Header */
.article-header-simple {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: transparent;
}

.article-title-simple {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.3;
  margin: 0 0 1rem;
}

.article-meta-simple {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: hsl(var(--muted-foreground));
}

.breadcrumb-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: hsl(var(--primary));
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: hsl(var(--muted-foreground));
}

.breadcrumb-current {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* Article Styles */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.article-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid hsl(var(--border));
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: hsl(var(--primary));
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.2rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.article-featured-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content */
.article-content {
  line-height: 1.7;
  color: hsl(var(--foreground));
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: hsl(var(--primary));
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.article-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.article-content a {
  color: hsl(var(--primary));
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.3s ease;
}

.article-content a:hover {
  border-bottom-color: hsl(var(--primary));
}

.article-content blockquote {
  border-left: 4px solid hsl(var(--primary));
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background-color: hsl(var(--muted));
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content code {
  background-color: hsl(var(--muted));
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: hsl(var(--primary));
}

.article-content pre {
  background-color: hsl(var(--muted));
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid hsl(var(--border));
}

.article-content pre code {
  background: none;
  padding: 0;
  color: hsl(var(--foreground));
}

/* Override global section center alignment for blog content */
.article-content section {
  text-align: left;
  padding: 0;
  border-bottom: none;
}

/* Table of Contents */
.article-toc {
  background-color: hsl(var(--secondary));
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  border: 1px solid hsl(var(--border));
}

.article-toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: hsl(var(--primary));
}

.article-toc ul {
  margin: 0;
  padding-left: 1.5rem;
}

.article-toc li {
  margin-bottom: 0.5rem;
}

.article-toc a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.article-toc a:hover {
  color: hsl(var(--primary));
}

.article-toc ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Content Boxes */
.info-box,
.tip-box,
.warning-box {
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  border-left: 4px solid;
}

.info-box {
  background-color: hsl(var(--secondary));
  border-left-color: hsl(var(--primary));
}

.tip-box {
  background-color: #e8f8f5;
  border-left-color: #00cc6a;
  color: #1a4e41;
}

.warning-box {
  background-color: #fef5e7;
  border-left-color: #f39c12;
  color: #8b4513;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .blog-main-title {
    font-size: 2rem;
  }
  
  .blog-tagline {
    font-size: 1rem;
  }
  
  .blog-posts-list {
    padding: 2rem 0;
  }
  
  .blog-list-item {
    margin-bottom: 1.25rem;
  }
  
  .blog-list-link {
    font-size: 1rem;
  }
  
  .article-title-simple {
    font-size: 1.8rem;
  }
  
  .breadcrumb-list {
    flex-wrap: wrap;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .blog-cta-card {
    padding: 2rem 1.5rem;
  }
  
  .blog-cta-card h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-title-simple {
    font-size: 1.6rem;
  }
  
  .blog-list-link {
    font-size: 0.95rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}