/* Article listing styles (port from 6-09 main.css to fix CF cache + Editorial rename) */
/* Used on /articles/index.html and home pages */

.section-title { font-size: 28px; font-weight: 700; color: var(--color-text); margin: 0; border: none; padding: 0; }
.see-all { font-size: 15px; font-weight: 600; color: var(--color-primary-2); text-decoration: none; }
.see-all:hover { text-decoration: underline; }
.grid-3 { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.article-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border-color: var(--color-primary-2);
}
.article-card h3 { font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--color-text); margin: 0 0 10px; }
.article-card p { font-size: 15px; color: var(--color-text-soft); line-height: 1.65; margin: 0 0 16px; }
.article-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  color: var(--color-text-soft);
}
.tag-blue { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.tag-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.tag-orange { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.tag-red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.tag-green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.article-card-time { font-size: 13px; color: var(--color-text-muted); }
.article-card-author { font-size: 13px; color: var(--color-text-muted); font-weight: 500; }

.grid-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 48px);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-soft);
}
.featured-section { margin-bottom: 56px; }
.featured-section:last-child { margin-bottom: 0; }

@media (max-width: 900px) { .grid-3 { width: 100%; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-3, .grid-2 { width: 100%; grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 8px; }
}
