/* ============================================================
   Influeri — Cards · Showcase
   Generic content/feature cards in six treatments. Additive layer.
   Reuses tokens (--grad, --font-display, --font-body, --white,
   --primary, --text, --line) from styles.css. White-mode; pink→gold
   accent only. Treatment classes prefixed `cds-`; the showcase chrome
   (tcm-*) mirrors trending-creators.css so this page reads identically
   without loading trending-creators.css.
   ============================================================ */

/* ============================================================
   SHOWCASE CHROME — mirrors trending-creators.css (.tcm* family)
   so cards.html matches the trending-creators.html scaffold exactly.
   ============================================================ */
.tcm {
  --shadow-card: 0 1px 2px rgba(11, 11, 11, 0.06), 0 10px 22px -12px rgba(11, 11, 11, 0.20);
  --shadow-hover: 0 2px 6px rgba(11, 11, 11, 0.07), 0 14px 26px -12px rgba(11, 11, 11, 0.15);
  --shadow-focus: 0 2px 8px rgba(11, 11, 11, 0.06), 0 16px 28px -12px rgba(11, 11, 11, 0.20);
  position: relative;
  min-height: 100vh;
  padding: 0 0 110px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -160px, rgba(11, 11, 11, 0.035), transparent 70%),
    radial-gradient(900px 460px at 92% 4%, rgba(130, 130, 130, 0.12), transparent 70%),
    #fbfbfc;
}
.tcm::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 11, 11, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 11, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0, #000, transparent 78%);
  mask-image: radial-gradient(1200px 700px at 50% 0, #000, transparent 78%);
  pointer-events: none;
}
.tcm__wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
.tcm__head {
  text-align: center;
  padding: 84px 0 18px;
}
.tcm__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 20px 0 0;
}
.tcm__title em {
  font-style: normal;
  background: #0b0b0b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tcm__sub {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}
.tcm__rule {
  width: 64px;
  height: 3px;
  margin: 30px auto 0;
  border-radius: 3px;
  background: #0b0b0b;
}
.tcm-sec { padding: 56px 0 0; }
.tcm-eyebrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.tcm-eyebrow__main { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.tcm-eyebrow__no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  background: #0b0b0b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tcm-eyebrow__txt h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.tcm-eyebrow__txt p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text);
}
.tcm-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
}
.tcm-tag b { font-weight: 600; color: var(--text); }
.tcm-tag .arrow { font-size: 13px; color: #0b0b0b; }
.tcm-hint {
  display: block;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: #9a9a9a;
  letter-spacing: 0.01em;
}
.tcm-foot {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 92px;
}

/* ============================================================
   SHARED CARD PRIMITIVES (cds-)
   ============================================================ */
.cds-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.cds-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 16px;
  color: #0b0b0b;
  background: linear-gradient(135deg, rgba(11, 11, 11, 0.10), rgba(130, 130, 130, 0.12));
}
.cds-card__icon svg { width: 22px; height: 22px; display: block; }
.cds-card__kicker {
  margin: 0 0 8px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #0b0b0b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cds-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0 0 8px;
  line-height: 1.25;
}
.cds-card__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* ============================================================
   01 · BENTO GRID — mixed-span tiles, cohesive grid
   ============================================================ */
.cds-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 18px;
}
.cds-bento .cds-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.cds-bento .cds-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.cds-bento__col2 { grid-column: span 2; }
.cds-bento__col2r { grid-column: span 2; grid-row: span 2; }
.cds-bento__row2 { grid-row: span 2; }
/* feature tile (the big one) gets a soft wash + headline */
.cds-bento .cds-bento__hero {
  justify-content: space-between;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(130, 130, 130, 0.16), transparent 60%),
    radial-gradient(120% 120% at 0% 100%, rgba(11, 11, 11, 0.12), transparent 60%),
    var(--white);
}
.cds-bento__hero .cds-card__title { font-size: 26px; }
.cds-bento__stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  background: #0b0b0b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cds-bento__statlabel { margin: 6px 0 0; font-size: 12.5px; color: var(--text); }

/* ============================================================
   02 · SCROLL-STACKING CARDS — sticky + scroll-progress listener
   ============================================================ */
.cds-stack { position: relative; }
.cds-stack__item {
  position: sticky;
  top: 96px;
  margin: 0 auto 28px;
  max-width: 760px;
}
.cds-stack__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 220px;
  padding: 34px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 24px 60px -22px rgba(11, 11, 11, 0.28);
  transform-origin: center top;
  will-change: transform, opacity;
}
.cds-stack__item:nth-child(1) .cds-stack__inner {
  background: linear-gradient(135deg, rgba(11, 11, 11, 0.06), rgba(130, 130, 130, 0.08)), var(--white);
}
.cds-stack__num {
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: #0b0b0b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cds-stack__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--primary);
}
.cds-stack__body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }

/* ============================================================
   03 · FEATURE TILES — icon + title + copy grid
   ============================================================ */
.cds-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cds-features .cds-card { transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease; }
.cds-features .cds-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(11, 11, 11, 0.28);
}
.cds-features .cds-card__icon { transition: transform 0.22s ease; }
.cds-features .cds-card:hover .cds-card__icon {
  transform: translateY(-2px) scale(1.05);
}

/* ============================================================
   04 · GLASS CARDS — frosted backdrop-filter surface
   ============================================================ */
.cds-glassrow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 40px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(640px 380px at 12% 0%, rgba(11, 11, 11, 0.30), transparent 60%),
    radial-gradient(620px 420px at 90% 110%, rgba(130, 130, 130, 0.34), transparent 60%),
    #f4eef0;
}
.cds-glass {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 40px -16px rgba(11, 11, 11, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cds-glass:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.56); }
.cds-glass .cds-card__icon { background: rgba(255, 255, 255, 0.65); }
.cds-glass .cds-card__title { color: var(--primary); }
.cds-glass .cds-card__copy { color: #4a4a4a; }

/* ============================================================
   05 · GRADIENT-BORDER ACCENT CARDS — pink→gold border via mask
   ============================================================ */
.cds-gradrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cds-grad {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
/* the gradient ring drawn with a masked border (no inner-fill bleed) */
.cds-grad::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: #0b0b0b;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.cds-grad:hover { transform: translateY(-3px); box-shadow: var(--shadow-focus); }
.cds-grad .cds-card__title { color: var(--primary); }

/* ============================================================
   06 · HORIZONTAL SCROLL-SNAP CARD STRIP
   ============================================================ */
.cds-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cds-strip__card {
  scroll-snap-align: center;
  flex: 0 0 320px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(11, 11, 11, 0.08), transparent 55%),
    var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.cds-strip__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cds-strip__tag {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: #0b0b0b;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cds-features, .cds-glassrow, .cds-gradrow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .tcm__wrap { padding: 0 22px; }
  .cds-bento { grid-template-columns: repeat(2, 1fr); }
  .cds-bento__col2, .cds-bento__col2r, .cds-bento__row2 { grid-column: auto; grid-row: auto; }
  .cds-features, .cds-glassrow, .cds-gradrow { grid-template-columns: 1fr; }
  .cds-stack__item { top: 80px; }
  .cds-stack__inner { flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; }
}

/* ============================================================
   REDUCED MOTION — freeze all stacking transforms; plain static stack
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cds-stack__item { position: static; }
  .cds-stack__inner { transform: none !important; opacity: 1 !important; }
  .cds-bento .cds-card,
  .cds-features .cds-card,
  .cds-glass,
  .cds-grad,
  .cds-strip__card { transition: none; }
}
