/* Resources Section Styles */

/* Typography for article content */
.article-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
}

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

.article-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

.article-content code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
}

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

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

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content table th {
  background-color: #f9fafb;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

.article-content table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.article-content table tr:hover {
  background-color: #f9fafb;
}

/* Article cards on index page */
.article-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
}

/* Line clamp utility for article excerpts */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Breadcrumb styling */
nav[aria-label="Breadcrumb"] a {
  transition: color 0.2s;
}

/* Share button animations */
.share-button {
  transition: transform 0.2s, color 0.2s;
}

.share-button:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
  }
}

/* Print styles */
@media print {
  nav,
  footer,
  .share-buttons,
  .breadcrumb {
    display: none;
  }
  
  .article-content {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .article-content h2 {
    page-break-after: avoid;
  }
  
  .article-content pre {
    white-space: pre-wrap;
  }
}

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

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading skeleton for articles */
.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% {
    background-color: #f3f4f6;
  }
  100% {
    background-color: #e5e7eb;
  }
}

/* Custom scrollbar for code blocks */
.article-content pre::-webkit-scrollbar {
  height: 8px;
}

.article-content pre::-webkit-scrollbar-track {
  background: #374151;
}

.article-content pre::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}

.article-content pre::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}