/* ============================================================
   NUSANTARA INSIGHT — Category Page Styles
   ============================================================ */

/* ── Category Hero ────────────────────────────────────────── */
.cat-hero {
  background: var(--accent-pale);
  border-bottom: 1px solid var(--accent-mid);
  padding: 28px 0;
}
.cat-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: #0C447C;
  margin: 8px 0 6px;
}
.cat-hero-desc {
  font-size: 14px;
  color: var(--accent);
  line-height: 1.6;
  max-width: 500px;
}
.cat-hero-icon {
  font-size: 64px;
  color: var(--accent-mid);
}

.cat-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.cat-stat { display: flex; flex-direction: column; }
.cat-stat-num { font-size: 22px; font-weight: 500; color: #0C447C; }
.cat-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 47px;
  z-index: 90;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.pill {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.sort-select {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-mid);
  padding: 5px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
}
.sort-select i { font-size: 13px; }

/* ── Featured Grid ────────────────────────────────────────── */
.cat-featured { padding: 24px 0 0; }
.cat-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.cat-feat-main a { display: block; color: inherit; transition: opacity 0.2s; }
.cat-feat-main a:hover { opacity: 0.85; }
.cat-feat-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.cat-feat-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 8px 0 8px;
}
.cat-feat-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.cat-feat-meta { font-size: 12px; color: var(--text-muted); }

.cat-feat-secondary {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.cat-feat-sec-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cat-feat-sec-item:first-child { padding-top: 0; }
.cat-feat-sec-item:last-child { border-bottom: none; padding-bottom: 0; }
.cat-feat-sec-item a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  transition: opacity 0.2s;
}
.cat-feat-sec-item a:hover { opacity: 0.8; }
.cat-feat-sec-img {
  width: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.cat-feat-sec-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ── Section Divider ──────────────────────────────────────── */
.section-divider-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 16px;
}
.section-divider-cat span {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}
.section-divider-cat::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Article List ─────────────────────────────────────────── */
.cat-article-list { display: flex; flex-direction: column; }
.cat-art-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cat-art-row:last-child { border-bottom: none; }
.cat-art-thumb {
  width: 110px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: block;
  transition: opacity 0.2s;
}
.cat-art-thumb:hover { opacity: 0.85; }
.cat-art-body { flex: 1; }
.cat-art-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin: 6px 0 6px;
}
.cat-art-title a { color: var(--text-primary); transition: color 0.2s; }
.cat-art-title a:hover { color: var(--accent); }
.cat-art-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ── Load More ────────────────────────────────────────────── */
.load-more-wrap { text-align: center; padding: 28px 0 8px; }
.btn-load-more {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.btn-load-more:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-pale); }

/* ── Subtopic List ────────────────────────────────────────── */
.subtopic-list { display: flex; flex-direction: column; gap: 0; }
.subtopic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.subtopic-item:last-child { border-bottom: none; }
.subtopic-item:hover { color: var(--navy); }
.subtopic-item span:first-child { display: flex; align-items: center; gap: 6px; }
.subtopic-item i { font-size: 15px; color: var(--text-muted); }
.subtopic-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ── Author List ──────────────────────────────────────────── */
.author-list { display: flex; flex-direction: column; gap: 12px; }
.author-list-item { display: flex; align-items: center; gap: 10px; }
.author-mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.author-mini-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.author-mini-count { font-size: 11px; color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .cat-hero-icon { display: none; }
  .cat-featured-grid { grid-template-columns: 1fr; }
  .cat-feat-secondary { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
@media (max-width: 600px) {
  .cat-art-thumb { width: 72px; height: 60px; }
  .cat-art-excerpt { display: none; }
  .filter-pills { display: none; }
}
