/* Styles specific to article pages */

/* Article layout */
.article-container {
  max-width: 1100px; /* Wider article layout */
  margin: 2rem auto;
  background: var(--article-bg);
  padding: 2rem 2.5rem; /* slightly more horizontal padding for larger layouts */
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--article-shadow);
  color: var(--text-color);
}

.article-content pre {
  background: var(--code-bg);
}

.article-meta { color: var(--muted-color); }

.article-content { color: var(--text-color); }

.article-footer { color: var(--muted-color); }
.article-meta { color: var(--muted-color); }

.article-content { color: var(--text-color); }

.article-footer { color: var(--muted-color); }
@media (min-width: 1400px) {
  .article-container { max-width: 1300px; padding: 3rem 3.5rem; }
}

.article-header {
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 2.25rem;
  line-height: 1.05;
  margin-bottom: 0.25rem;
}

.article-meta {
  color: var(--muted-color);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.article-description {
  color: var(--text-color);
  opacity: 0.95;
  margin-bottom: 1.25rem;
}

.article-content {
  text-align: left;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text-color);
}

.article-content h2,
.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

/* Lists: keep bullets inside article padding and aligned nicely */
.article-content ul,
.article-content ol {
  margin: 0 0 1rem 1.25rem; /* top/right/bottom/left */
  padding: 0;
  list-style-position: outside;
}

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

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

.article-content pre {
  background: rgba(0,0,0,0.32);
  padding: 1rem;
  border-radius: 8px;
  overflow: auto;
  margin: 1rem 0;
}

.article-content code {
  background: rgba(0,0,0,0.18);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
}

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

.article-content table th,
.article-content table td {
  border: 1px solid var(--border-muted);
  padding: 0.6rem;
}

.article-content blockquote {
  border-left: 4px solid var(--border-muted);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: rgba(0,0,0,0.06);
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.75rem auto;
  border-radius: 6px;
}

.article-footer {
  margin-top: 2rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 1rem;
}

/* Article list / index */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-card {
  background: var(--article-bg);
  padding: 1rem;
  border-radius: 10px;
  min-height: 140px;
}

.post-card h3 {
  margin: 0 0 0.5rem 0;
}

.post-card p.excerpt {
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.9);
}

/* Small screens tweaks */
@media (max-width: 640px) {
  .article-header h1 { font-size: 1.6rem; }
  .article-container { padding: 1rem; margin: 0.5rem; }
}
