/* ==============================================
   ARCHIVE / CATEGORY PAGE
   ============================================== */

/* ── Category hero banner ── */
.ghit-cat-hero {
  position: relative;
  background: linear-gradient(135deg, #1E1B4B, #312E81 48%, #0F766E);
  border-radius: 26px;
  padding: 52px 56px 48px;
  overflow: hidden;
  margin-top: 28px;
  margin-bottom: 40px;
}

.ghit-cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .55;
  pointer-events: none;
}

.ghit-cat-hero__glow1 {
  position: absolute;
  top: -60px; right: -30px;
  width: 340px; height: 260px;
  background: radial-gradient(rgba(167,139,250,.55), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.ghit-cat-hero__glow2 {
  position: absolute;
  bottom: -80px; left: 32%;
  width: 300px; height: 240px;
  background: radial-gradient(rgba(45,212,191,.4), transparent 70%);
  filter: blur(44px);
  pointer-events: none;
}

.ghit-cat-hero__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A78BFA;
  margin-bottom: 14px;
}

.ghit-cat-hero__title {
  position: relative;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 680px;
}

.ghit-cat-hero__desc {
  position: relative;
  font-size: 16px;
  color: rgba(255,255,255,.72);
  max-width: 580px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.ghit-cat-hero__meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.ghit-cat-hero__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
}

.ghit-cat-hero__stat strong {
  color: #fff;
  font-weight: 700;
}

/* ── Series chips in hero ── */
.ghit-cat-series {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghit-cat-series__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.ghit-cat-series__chip:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-1px);
}

.ghit-cat-series__name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.ghit-cat-series__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.55);
  line-height: 1;
}

/* ── Simple archive header (tag / author) ── */
.ghit-arc-header {
  margin: 40px 0 36px;
}

.ghit-arc-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.ghit-arc-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0;
}

/* ── Filter / sort bar ── */
.ghit-cat-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.ghit-cat-filter__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.ghit-cat-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.ghit-cat-filter__btn:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
}

.ghit-cat-filter__btn.is-active {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: #fff;
}

/* ── Post cards grid — dùng chung .ghit-pcard với trang chủ ── */
.ghit-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ghit-cat-grid .ghit-pcard__title a.ghit-ttl { color: #0F172A; }
.ghit-cat-grid .ghit-pcard__title a.ghit-ttl:hover { color: var(--color-purple) !important; }

/* ── Pagination ── */
.ghit-cat-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .ghit-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ghit-cat-hero { padding: 38px 32px 34px; }
  .ghit-cat-hero__title { font-size: 32px; }
}

@media (max-width: 640px) {
  .ghit-cat-grid { grid-template-columns: 1fr; }
  .ghit-cat-hero { padding: 30px 22px 28px; border-radius: 18px; }
  .ghit-cat-hero__title { font-size: 26px; }
  .ghit-cat-hero__desc { font-size: 14.5px; }
}
