/* ===================================
   ARTICLE STYLES
   =================================== */

.article-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.article-header {
  margin-bottom: 40px;
}

.article-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1e293b;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: #64748b;
  font-size: 14px;
  flex-wrap: wrap;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: #10b981;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.article-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #1e293b;
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 30px 0 16px;
  color: #1e293b;
}

.article-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 12px;
  color: #334155;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  margin-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: #1e293b;
  font-weight: 600;
}

.article-content em {
  font-style: italic;
  color: #475569;
}

/* Code blocks */
.article-content code {
  background-color: #f8fafc;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Courier New', monospace;
  color: #2563eb;
}

.article-content pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
  background-color: #f1f5f9;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  font-size: 14px;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Highlight boxes */
.highlight-box {
  background-color: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.highlight-box h4 {
  color: #10b981;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
}

.highlight-box p {
  margin-bottom: 0;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.highlight-box.warning {
  background-color: #fef3c7;
  border-left-color: #f59e0b;
}

.highlight-box.warning h4 {
  color: #f59e0b;
}

.highlight-box.info {
  background-color: #dbeafe;
  border-left-color: #3b82f6;
}

.highlight-box.info h4 {
  color: #3b82f6;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 30px;
  font-size: 14px;
  color: #64748b;
}

.breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
  transition: color 150ms ease;
}

.breadcrumbs a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Table of Contents */
.toc {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin: 30px 0;
}

.toc h3 {
  margin-top: 0;
  font-size: 18px;
  color: #1e293b;
}

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

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: #2563eb;
  text-decoration: none;
  transition: color 150ms ease;
}

.toc a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Images in articles */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* Blockquote */
.article-content blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 16px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #475569;
  font-style: italic;
}

/* Related articles */
.related-articles {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 24px;
  margin-top: 60px;
}

.related-articles h3 {
  margin-top: 0;
}

.related-articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.related-article-item {
  padding: 16px;
  background-color: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 200ms ease;
}

.related-article-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.related-article-item h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #2563eb;
}

.related-article-item p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 16px;
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 24px;
}

.author-info h4 {
  margin-top: 0;
  margin-bottom: 4px;
  color: #1e293b;
}

.author-info p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

/* Comments section */
.comments-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.comments-section h3 {
  margin-top: 0;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 12px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  transition: all 200ms ease;
}

.share-button:hover {
  border-color: #2563eb;
  color: #2563eb;
  background-color: #f0f7ff;
}

/* Responsive */
@media (max-width: 767px) {
  .article-title {
    font-size: 32px;
  }

  .article-content h2 {
    font-size: 24px;
    margin: 30px 0 16px;
  }

  .article-content h3 {
    font-size: 20px;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
  }

  .author-bio {
    flex-direction: column;
  }

  .author-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .related-articles-list {
    grid-template-columns: 1fr;
  }

  .toc {
    padding: 16px;
  }

  .toc h3 {
    font-size: 16px;
  }
}

/* Print styles */
@media print {
  .breadcrumbs,
  .share-buttons,
  .comments-section,
  .related-articles {
    display: none;
  }

  .article-content {
    max-width: 100%;
  }
}
