/* ===================== ARTICLES PAGE ===================== */
.articles-hero {
  padding: 120px 0 48px;
  text-align: center;
}

.articles-body {
  padding: 0 0 80px;
}

.articles-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.articles-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.articles-search:focus-within {
  border-color: var(--accent);
}

.articles-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.articles-search input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}

.articles-search input::placeholder {
  color: var(--text-muted);
}

.articles-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cat-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ===================== FEATURED ===================== */
.articles-featured {
  margin-bottom: 40px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}

.featured-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.featured-card-visual {
  background: linear-gradient(135deg, var(--accent-light), var(--bg-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 280px;
}

.featured-card-visual .featured-icon {
  font-size: 72px;
  opacity: 0.3;
}

.featured-card-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-info .article-category {
  margin-bottom: 12px;
}

.featured-card-info h2 {
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.featured-card-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.featured-card-info .article-meta-inline {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================== ARTICLES GRID ===================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.article-card-visual {
  height: 140px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.25;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-light);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.04em;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  margin-top: 12px;
}

.article-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card .article-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.article-card .article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.article-date, .article-readtime {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-tags-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.article-tags-inline span {
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ===================== EMPTY STATE ===================== */
.articles-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
}

.articles-empty svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.articles-empty p {
  font-size: 15px;
}

/* ===================== PAGINATION ===================== */
.articles-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===================== ARTICLES CTA ===================== */
.articles-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-warm);
}

.articles-cta .cta-title {
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.articles-cta .cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.articles-cta .cta-actions {
  margin-top: 20px;
}

/* ===================== ARTICLE DETAIL PAGE ===================== */
.article-page {
  padding-top: 80px;
  min-height: 80vh;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  opacity: 0.5;
}

.article-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-meta-top {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.article-title {
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tags span {
  padding: 4px 12px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===================== PROSE (Article Body) ===================== */
.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.prose h1 {
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin: 48px 0 20px;
  letter-spacing: -0.02em;
}

.prose h2 {
  font-family: "Source Serif 4", "Noto Sans SC", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.prose h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin: 28px 0 12px;
}

.prose p {
  margin: 0 0 20px;
}

.prose ul, .prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

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

.prose blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.prose code {
  padding: 2px 8px;
  background: var(--bg-warm);
  border-radius: 4px;
  font-size: 14px;
  font-family: "DM Sans", monospace;
  color: var(--accent-dark);
}

.prose pre {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--text);
  color: #e0e0e0;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.prose table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
}

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

.prose th {
  font-weight: 600;
  background: var(--bg-warm);
  color: var(--text);
}

.prose td {
  color: var(--text-secondary);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.prose strong {
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  transition: border-color 0.2s;
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

/* ===================== ARTICLE FOOTER ===================== */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 15px;
}

.author-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 48px;
  gap: 16px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card-visual {
    min-height: 180px;
    padding: 32px;
  }
  .featured-card-info {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .articles-hero {
    padding: 100px 0 32px;
  }
  .featured-card-info h2 {
    font-size: 20px;
  }
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .article-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .article-nav .btn {
    text-align: center;
    justify-content: center;
  }
  .prose {
    font-size: 15px;
  }
  .prose h2 {
    font-size: 20px;
  }
  .prose table {
    font-size: 12px;
  }
  .prose th, .prose td {
    padding: 8px 10px;
  }
}
