/* Articles Page Styling */
/* Extracted from foundation.css to separate page-specific styles */

/* Articles List Page */
.articles-list {
  max-width: 1200px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* Articles list now uses foundation card classes - most custom styling removed */

/* Individual Article Page */
.article-content {
  max-width: 1000px;
  margin: 16px auto;
  background: var(--bg-elev-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.article {
  padding: 48px;
}


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

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
  margin: 0;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  max-width: none;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin: 48px 0 24px 0;
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.3;
}

.article-body h1 {
  font-size: 2rem;
  border-bottom: 3px solid var(--primary-600);
  padding-bottom: 12px;
  margin-top: 32px;
}

.article-body h2 {
  font-size: 1.5rem;
}

.article-body h3 {
  font-size: 1.25rem;
}

.article-body h4 {
  font-size: 1.125rem;
}

.article-body p {
  margin-bottom: 28px;
}

.article-body ul,
.article-body ol {
  margin: 24px 0 32px 0;
  padding-left: 32px;
}

.article-body li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-body li > ul,
.article-body li > ol {
  margin: 8px 0 8px 16px;
}

.article-body strong,
.article-body b {
  font-weight: 600;
  color: var(--text-strong);
}

.article-body em,
.article-body i {
  font-style: italic;
  color: var(--text-muted);
}

.article-body code {
  background: var(--bg-elev-2);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  border: 1px solid var(--border);
}

.article-body pre {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 32px 0;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-600);
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--bg-elev-2);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  position: relative;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 48px 0;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.article-body a {
  color: var(--primary-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--duration-1) ease;
}

.article-body a:hover {
  border-bottom-color: var(--primary-600);
  color: var(--primary-700);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--bg-elev-1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-body th,
.article-body td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-body th {
  background: var(--bg-elev-2);
  font-weight: 600;
  color: var(--text-strong);
}

.article-body tr:last-child td {
  border-bottom: none;
}

.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Responsive articles */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .article {
    padding: 32px 24px;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-body {
    font-size: 1rem;
  }
  
  .article-body h1 {
    font-size: 1.75rem;
  }
  
  .article-body h2 {
    font-size: 1.375rem;
  }
  
  .article-body h3 {
    font-size: 1.125rem;
  }
  
  .article-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .article-content {
    margin: 0 16px;
    border-radius: var(--radius-sm);
  }
}
