/* ================================================================
   Catalog overview page — catalog.css
   All colours via CSS variables from style.css.
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.cat-hero {
  border-radius: 20px;
  background: linear-gradient(135deg, #06060f 0%, #120524 45%, #051630 100%);
  padding: 56px 48px 48px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 85% 15%, rgba(94, 92, 230, .28) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 8% 85%,  rgba(10, 132, 255, .22) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(191, 90, 242, .12) 0%, transparent 60%);
  pointer-events: none;
}

.cat-hero-inner {
  position: relative;
  z-index: 1;
}

.cat-hero-tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.cat-hero-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 16px;
  width: 100%;
}

.cat-hero-accent {
  background: linear-gradient(135deg, #0a84ff 0%, #bf5af2 50%, #ff2d92 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cat-hero-sub {
  font-size: .97rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 560px;
}

/* Stats row */
.cat-hero-stats {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.cat-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 28px;
}

.cat-hero-stat:first-child { padding-left: 0; }

.cat-hero-stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  background: linear-gradient(135deg, #0a84ff, #bf5af2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cat-hero-stat-lbl {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}

.cat-hero-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, .1);
  flex-shrink: 0;
}

/* Vertical pills */
.cat-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .06);
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}


.cat-hero-pill:hover {
  color: #fff;
  transform: translateY(-1px);
}

.cat-hero-pill--purple { border-color: rgba(191, 90, 242, .5); color: rgba(220, 160, 255, .95); }
.cat-hero-pill--orange { border-color: rgba(255, 159, 10,  .5); color: rgba(255, 200, 100, .95); }
.cat-hero-pill--blue   { border-color: rgba(10,  132, 255, .5); color: rgba(100, 180, 255, .95); }
.cat-hero-pill--green  { border-color: rgba(48,  209, 88,  .5); color: rgba(100, 230, 130, .95); }
.cat-hero-pill--teal   { border-color: rgba(0,   199, 190, .5); color: rgba(80,  220, 210, .95); }
.cat-hero-pill--indigo { border-color: rgba(94,   92, 230, .5); color: rgba(160, 158, 255, .95); }
.cat-hero-pill--cyan   { border-color: rgba(100, 210, 255, .5); color: rgba(100, 220, 255, .95); }

.cat-hero-pill--purple:hover { background: rgba(191, 90, 242, .32); border-color: rgba(191, 90, 242, .65); color: #fff; }
.cat-hero-pill--orange:hover { background: rgba(255, 159, 10,  .32); border-color: rgba(255, 159, 10,  .65); color: #fff; }
.cat-hero-pill--blue:hover   { background: rgba(10,  132, 255, .32); border-color: rgba(10,  132, 255, .65); color: #fff; }
.cat-hero-pill--green:hover  { background: rgba(48,  209, 88,  .32); border-color: rgba(48,  209, 88,  .65); color: #fff; }
.cat-hero-pill--teal:hover   { background: rgba(0,   199, 190, .32); border-color: rgba(0,   199, 190, .65); color: #fff; }
.cat-hero-pill--indigo:hover { background: rgba(94,   92, 230, .32); border-color: rgba(94,   92, 230, .65); color: #fff; }
.cat-hero-pill--cyan:hover   { background: rgba(100, 210, 255, .32); border-color: rgba(100, 210, 255, .65); color: #fff; }

/* ── Separator between sections ───────────────────────────────────────────── */
.cat-sep {
  display: flex;
  align-items: center;
  margin: 8px 0 44px;
  gap: 12px;
}

.cat-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--glass-border) 20%, var(--glass-border) 80%, transparent 100%);
}

/* ── Vertical sections ────────────────────────────────────────────────────── */
.cat-section {
  margin-bottom: 0;
  padding-bottom: 8px;
  scroll-margin-top: 100px;
  padding-left: 14px;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: border-color .2s;
}

.cat-section--purple { border-left-color: rgba(191, 90, 242, .55); }
.cat-section--orange { border-left-color: rgba(255, 159, 10,  .55); }
.cat-section--blue   { border-left-color: rgba(10,  132, 255, .55); }
.cat-section--green  { border-left-color: rgba(48,  209, 88,  .55); }
.cat-section--teal   { border-left-color: rgba(0,   199, 190, .55); }
.cat-section--indigo { border-left-color: rgba(94,   92, 230, .55); }

.cat-section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 14px;
}

.cat-section-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.cat-section-icon svg { width: 22px; height: 22px; }

.cat-section-icon--purple { background: linear-gradient(135deg, var(--purple), var(--pink));   box-shadow: 0 4px 16px rgba(191, 90, 242, .32); }
.cat-section-icon--orange { background: linear-gradient(135deg, var(--orange), var(--yellow)); box-shadow: 0 4px 16px rgba(255, 159, 10, .32); }
.cat-section-icon--blue   { background: linear-gradient(135deg, var(--blue),   var(--indigo)); box-shadow: 0 4px 16px rgba(10, 132, 255, .32); }
.cat-section-icon--green  { background: linear-gradient(135deg, var(--green),  var(--teal));   box-shadow: 0 4px 16px rgba(48, 209, 88, .32); }
.cat-section-icon--teal   { background: linear-gradient(135deg, var(--teal),   var(--blue));   box-shadow: 0 4px 16px rgba(0, 199, 190, .32); }
.cat-section-icon--indigo { background: linear-gradient(135deg, var(--indigo), var(--purple)); box-shadow: 0 4px 16px rgba(94, 92, 230, .32); }
.cat-section-icon--cyan  { background: linear-gradient(135deg, var(--teal),   var(--blue));   box-shadow: 0 4px 16px rgba(100, 210, 255, .32); }

.cat-section-meta {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.cat-section-eyebrow {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}

.cat-section-title {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  margin: 0 0 6px;
}

.cat-section-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* Count badge (clickable) */
.cat-section-count-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}

.cat-section-count-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(10, 132, 255, .2);
}

.cat-section-count-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cat-section-count-lbl {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* View all button */
.cat-section-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.cat-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.cat-view-all svg {
  width: 15px;
  height: 15px;
  transition: transform .2s;
}

.cat-view-all:hover { transform: translateY(-1px); }
.cat-view-all:hover svg { transform: translateX(3px); }

.cat-view-all--purple:hover { background: rgba(191, 90, 242, .1); border-color: rgba(191, 90, 242, .35); color: var(--purple); }
.cat-view-all--orange:hover { background: rgba(255, 159, 10, .1);  border-color: rgba(255, 159, 10, .35); color: var(--orange); }
.cat-view-all--blue:hover   { background: rgba(10, 132, 255, .1);  border-color: rgba(10, 132, 255, .35); color: var(--blue); }
.cat-view-all--green:hover  { background: rgba(48, 209, 88, .1);   border-color: rgba(48, 209, 88, .35);  color: var(--green); }
.cat-view-all--teal:hover   { background: rgba(0, 199, 190, .1);   border-color: rgba(0, 199, 190, .35);  color: var(--teal); }
.cat-view-all--indigo:hover { background: rgba(94, 92, 230, .1);   border-color: rgba(94, 92, 230, .35);  color: var(--indigo); }

/* ── Sidebar: Jump nav widget ─────────────────────────────────────────────── */
.cat-jump-widget,
.cat-toppicks-widget {
  padding: 16px 14px;
}

.cat-jump-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.cat-jump-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 500;
  transition: background .18s, color .18s;
}

.cat-jump-link:hover,
.cat-jump-link.is-active {
  background: var(--glass-bg);
  color: var(--ink);
}

.cat-jump-link.is-active { font-weight: 600; }

.cat-jump-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.cat-jump-icon svg { width: 12px; height: 12px; }

.cat-jump-icon--purple { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.cat-jump-icon--orange { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.cat-jump-icon--blue   { background: linear-gradient(135deg, var(--blue),   var(--indigo)); }
.cat-jump-icon--green  { background: linear-gradient(135deg, var(--green),  var(--teal)); }
.cat-jump-icon--teal   { background: linear-gradient(135deg, var(--teal),   var(--blue)); }
.cat-jump-icon--indigo { background: linear-gradient(135deg, var(--indigo), var(--purple)); }

.cat-jump-label { flex: 1; min-width: 0; }

.cat-jump-count {
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-mute);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 2px 7px;
  flex-shrink: 0;
}

/* ── Sidebar: Top picks widget ────────────────────────────────────────────── */
.cat-toppick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.cat-toppick-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background .18s;
}

.cat-toppick-item:hover { background: var(--glass-bg); }

.cat-toppick-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.cat-toppick-info {
  flex: 1;
  min-width: 0;
}

.cat-toppick-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-toppick-vert {
  font-size: .68rem;
  font-weight: 500;
  margin-top: 1px;
}

.cat-toppick-vert--purple { color: var(--purple); }
.cat-toppick-vert--orange { color: var(--orange); }
.cat-toppick-vert--blue   { color: var(--blue); }
.cat-toppick-vert--green  { color: var(--green); }
.cat-toppick-vert--teal   { color: var(--teal); }
.cat-toppick-vert--indigo { color: var(--indigo); }

.cat-toppick-arrow {
  width: 14px;
  height: 14px;
  color: var(--ink-mute);
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .cat-hero { padding: 40px 32px 36px; }
  .cat-hero-stats { gap: 0; }
  .cat-hero-stat { padding: 0 18px; }
}

@media (max-width: 860px) {
  .cat-hero-divider { display: none; }
  .cat-hero-stats { flex-wrap: wrap; gap: 18px; }
  .cat-hero-stat { padding: 0; }
  .cat-section-head { flex-wrap: wrap; }
  .cat-section-count-badge { display: none; }
}

@media (max-width: 640px) {
  .cat-hero { padding: 28px 20px 24px; }
  .cat-hero-title { font-size: 1.8rem; }
  .cat-hero-sub { font-size: .88rem; margin-bottom: 24px; }
  .cat-hero-stat-num { font-size: 1.4rem; }
  .cat-section-head { padding: 16px; gap: 12px; }
  .cat-section-footer { justify-content: flex-start; }
}
