/* /creators/ index: profile cards and the full creator grid (built by build/creators-index.mjs). */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.cx-search { display: block; margin-top: 26px; max-width: 520px; }
.cx-search input {
  width: 100%; padding: 14px 18px 14px 44px; border-radius: 999px; border: 1px solid var(--white-24);
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9c55f' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 16px 50% / 18px;
  color: var(--white); font: inherit; font-size: 15px; outline: none; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.cx-search input:focus { border-color: var(--gold-500); background-color: rgba(255, 255, 255, 0.07); }
.cx-search input::placeholder { color: var(--white-60); }

/* Full profiles */
.cx-feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cx-feat a {
  position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--white);
  border: 1px solid var(--white-12); background: var(--purple-950); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cx-feat a:hover, .cx-feat a:focus-visible { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: 0 18px 40px -18px rgba(233, 197, 95, 0.45); }
.cx-feat-hero { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(139, 61, 240, 0.45), transparent 60%), var(--purple-950); }
.cx-feat-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.cx-feat a:hover .cx-feat-hero img { transform: scale(1.05); }
.cx-feat-hero::after { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 16 / 9; background: linear-gradient(to bottom, transparent 55%, var(--purple-950)); pointer-events: none; }
.cx-feat-av {
  position: relative; z-index: 1; width: 88px; height: 88px; margin: -48px 0 0 20px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--gold-500); background: var(--purple-950); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); display: grid; place-items: center;
}
.cx-feat-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-feat-body { display: grid; gap: 8px; padding: 14px 20px 22px; flex: 1; align-content: start; }
.cx-feat-body small { font-family: var(--font-caps); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); line-height: 1.5; }
.cx-feat-body strong { font-size: 22px; font-weight: 800; line-height: 1.15; }
.cx-bio { color: var(--white-80); font-size: 14px; line-height: 1.55; }
.cx-feat-body .cx-bio { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cx-feat-body em { font-style: normal; font-size: 12px; color: var(--white-60); }
.cx-go { font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); margin-top: 4px; }

/* Everyone featured */
.cx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cx-card a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; height: 100%; padding: 12px; border-radius: 14px;
  text-decoration: none; color: var(--white); border: 1px solid var(--white-12); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.cx-card a:hover, .cx-card a:focus-visible { border-color: var(--gold-500); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.cx-pic { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--purple-950); display: grid; place-items: center; }
.cx-pic.is-avatar { border-radius: 50%; border: 2px solid var(--gold-500); }
.cx-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-card-body { display: grid; gap: 3px; min-width: 0; }
.cx-card-body strong { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.cx-card-body .cx-bio { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-card-body em { font-style: normal; font-size: 11px; color: var(--gold-500); }
.cx-mono {
  width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 26px; color: var(--gold-500);
  background: radial-gradient(circle at 30% 20%, rgba(139, 61, 240, 0.55), transparent 65%), var(--purple-950);
}
.cx-feat-av .cx-mono { font-size: 36px; }
.cx-none { color: var(--white-60); margin-top: 18px; }
.cx-feat[hidden], .cx-card[hidden] { display: none; }

@media (max-width: 1000px) { .cx-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cx-feat-grid { grid-template-columns: 1fr; }
  .cx-grid { grid-template-columns: 1fr; }
  .cx-feat-body strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-feat a, .cx-card a, .cx-feat-hero img { transition: none; }
  .cx-feat a:hover, .cx-card a:hover { transform: none; }
}
