/* Blog-specific styles */

/* Article typography */
.article-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #212529;
  scroll-margin-top: 100px; /* Account for fixed navbar */
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #212529;
  scroll-margin-top: 100px;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #212529;
}

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

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

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

/* Table of contents */
.card .list-unstyled a {
  color: #6c757d;
  padding: 0.25rem 0;
  display: block;
  transition: color 0.3s ease;
}

.card .list-unstyled a:hover {
  color: var(--primary-color);
}

/* Blockquotes */
.blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin: 2rem 0;
  padding: 1rem 0;
}

/* Code blocks */
.article-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #e83e8c;
}

.article-content pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Images */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Alerts and callouts */
.alert {
  border: none;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.alert-heading {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Cards in articles */
.article-content .card {
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

.article-content .card-header {
  font-weight: 600;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Accordion in articles */
.accordion-item {
  border: 1px solid #dee2e6;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem !important;
}

.accordion-button {
  font-weight: 500;
  border-radius: 0.5rem !important;
}

.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: #212529;
}

/* Article header */
.badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Share buttons */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Navigation arrows */
.fa-arrow-left,
.fa-arrow-right {
  font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;
    line-height: 1.6;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

  .blockquote {
    font-size: 1rem;
    margin: 1.5rem 0;
    padding-left: 1rem;
  }

  .row.mt-5.pt-4 .col-md-6 {
    margin-bottom: 1rem;
  }

  .row.mt-5.pt-4 .col-md-6:last-child {
    margin-bottom: 0;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.article-content a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .border-top,
  footer {
    display: none !important;
  }

  .article-content {
    font-size: 12pt;
    line-height: 1.5;
  }

  .article-content h2,
  .article-content h3 {
    page-break-after: avoid;
  }
}
