/* Page background */
.cat-body {
  background: radial-gradient(800px 600px at 40% -10%, #202020 0%, #0a0a0a 40%, #000 100%);
  color: #fff;
  margin: 0;
  font-family: system-ui, -apple-system, "Inter", Roboto, sans-serif;
}

/* Hero section at top */
.cat-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 12px;
  text-align: left;
}

.cat-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  background: linear-gradient(90deg, #d4af37, #bfa181);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .4px;
}

.cat-desc {
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.4;
}

/* Grid wrapper */
.cat-grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 24px;
}

/* The list of categories */
.cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #d4af37;
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 999px;
  padding: 4px 10px;
  margin-top: 6px;
  margin-left: 12px;
  margin-right: auto;
  box-shadow: 0 0 12px rgba(212,175,55,.2);
  transition: all .25s ease;
}

.trend-pill:hover {
  background: rgba(212,175,55,.16);
  box-shadow: 0 0 20px rgba(212,175,55,.4);
  transform: translateY(-1px);
}

.trend-pill.down {
  color: #ff5c5c;
  background: rgba(255,92,92,.08);
  border-color: rgba(255,92,92,.25);
}

.trend-pill.flat {
  color: #aaa;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}

/* Each category card */
.cat-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  overflow: hidden;
  transition: all .22s ease;
}

/* Make entire card clickable */
.cat-link {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 16px 16px 14px;
}

/* Top row inside card: name + count */
.cat-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.cat-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
}

.cat-count {
  font-size: 12px;
  color: #9a9a9a;
}

/* Bottom row inside card: tease text + arrow */
.cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #bfa181;
  font-size: 13px;
  line-height: 1.3;
}

.cat-tease {
  color: #bfa181;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  font-weight: 500;
}

.cat-arrow {
  color: #d4af37;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

/* Hover/focus state */
.cat-card:hover,
.cat-card:focus-within {
  border-color: #d4af37;
  box-shadow: 0 0 24px rgba(212,175,55,.4);
  background: rgba(212,175,55,.07);
}

.cat-card:hover .cat-arrow,
.cat-card:focus-within .cat-arrow {
  text-shadow: 0 0 8px rgba(212,175,55,.8);
}

/* Billboard / ad block */
.cat-billboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.billboard-inner {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  min-height: 90px; /* desktop billboard height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

/* this keeps mobile billboards from busting layout */
.billboard-inner iframe,
.billboard-inner img {
  max-width: 100%;
  height: auto;
  display: block;
}
