/* Public creator discovery — fictional, static and scoped to the BeJiggi preview. */
.creator-discovery-page {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  color: var(--ui-color-text);
  background: var(--ui-color-background);
}

.creator-discovery-container {
  width: min(1320px, calc(100% - 2 * clamp(var(--space-md), 4vw, var(--space-xl))));
  margin-inline: auto;
}

.creator-discovery-header {
  border-bottom: 1px solid var(--ui-color-border);
  background: color-mix(in srgb, var(--ui-color-surface) 96%, transparent);
}

.creator-discovery-header-inner,
.creator-discovery-nav,
.creator-discovery-footer > div {
  display: flex;
  align-items: center;
}

.creator-discovery-header-inner {
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 96px;
}

.creator-discovery-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.creator-discovery-nav {
  justify-content: flex-end;
  gap: var(--space-sm);
}

.creator-discovery-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-sm);
  border-radius: var(--radius-button);
  color: var(--ui-color-text);
  font-size: var(--ui-font-sm);
  font-weight: 750;
  text-decoration: none;
}

.creator-discovery-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-pill);
  color: var(--ui-color-muted);
  background: var(--ui-color-surface);
  font-size: var(--ui-font-xs);
  font-weight: 750;
  letter-spacing: var(--ui-letter-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.creator-discovery-status > span {
  width: var(--space-xs);
  height: var(--space-xs);
  border-radius: 50%;
  background: var(--bejiggi-accent);
  box-shadow: 0 0 0 4px var(--bejiggi-accent-surface);
}

.creator-discovery-hero {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(var(--space-xl), 7vw, var(--space-3xl));
  padding-block: clamp(var(--space-xl), 7vw, var(--space-2xl));
}

.creator-discovery-kicker,
.creator-discovery-card-label {
  margin: 0;
  color: var(--bejiggi-accent);
  font-size: var(--ui-font-xs);
  font-weight: 850;
  letter-spacing: var(--ui-letter-label);
  text-transform: uppercase;
}

.creator-discovery-hero h1 {
  max-width: 11ch;
  margin: var(--space-sm) 0 0;
  font-size: clamp(3.25rem, 7vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.06em;
}

.creator-discovery-intro {
  display: grid;
  gap: var(--space-md);
  max-width: 67ch;
}

.creator-discovery-disclosure {
  margin: 0;
  padding: var(--space-md);
  border-left: 3px solid var(--bejiggi-accent);
  border-radius: 0 var(--ui-radius-md) var(--ui-radius-md) 0;
  color: var(--ui-color-muted);
  background: color-mix(in srgb, var(--bejiggi-accent-surface) 62%, transparent);
  font-size: var(--ui-font-sm);
  line-height: 1.6;
}

.creator-discovery-value {
  display: grid;
  justify-items: start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-color-surface);
  box-shadow: var(--ui-shadow-sm);
}

.creator-discovery-value h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: var(--ui-letter-tight);
}

.creator-discovery-value > p:last-of-type {
  max-width: 58ch;
  margin: 0;
  color: var(--ui-color-muted);
  line-height: 1.55;
}

.creator-discovery-gallery-section {
  padding-bottom: clamp(var(--space-xl), 7vw, var(--space-2xl));
}

.creator-discovery-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.creator-discovery-section-heading h2,
.creator-discovery-boundary h2 {
  margin: var(--space-xs) 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: var(--ui-letter-tight);
}

.creator-discovery-section-heading > p {
  max-width: 45ch;
  margin: 0;
  color: var(--ui-color-muted);
  font-size: var(--ui-font-sm);
  line-height: 1.55;
  text-align: right;
}

.creator-discovery-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-md);
}

.creator-discovery-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--radius-card);
  background: var(--ui-color-surface);
  box-shadow: var(--ui-shadow-sm);
}

.creator-discovery-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--ui-color-border);
  background: var(--ui-color-surface-raised);
}

.creator-discovery-card-media img {
  position: absolute;
  top: -10%;
  width: 500%;
  max-width: none;
  height: auto;
  object-fit: cover;
}

.creator-discovery-card[data-creator-crop="mina"] img {
  left: 0;
}

.creator-discovery-card[data-creator-crop="theo"] img {
  left: -97%;
}

.creator-discovery-card[data-creator-crop="mara"] img {
  left: -196%;
}

.creator-discovery-card[data-creator-crop="elara"] img {
  left: -296%;
}

.creator-discovery-card[data-creator-crop="sami"] img {
  left: -397%;
}

.creator-discovery-card-media > span {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid color-mix(in srgb, var(--bejiggi-on-accent) 36%, transparent);
  border-radius: var(--ui-radius-pill);
  color: var(--bejiggi-on-accent);
  background: color-mix(in srgb, var(--bejiggi-action) 86%, transparent);
  font-size: var(--ui-font-xs);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.creator-discovery-card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: var(--space-md);
}

.creator-discovery-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.creator-discovery-card-heading h3 {
  margin: var(--space-xs) 0 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: var(--ui-letter-tight);
  overflow-wrap: anywhere;
}

.creator-discovery-region {
  flex: 0 1 auto;
  padding: var(--space-xs);
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-color-muted);
  font-size: var(--ui-font-xs);
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
}

.creator-discovery-handle {
  margin: var(--space-sm) 0 0;
  color: var(--ui-color-muted);
  font-size: var(--ui-font-sm);
  overflow-wrap: anywhere;
}

.creator-discovery-categories {
  margin: var(--space-md) 0;
  font-size: var(--ui-font-sm);
  font-weight: 750;
}

.creator-discovery-profile-link,
.creator-discovery-hero-link,
.creator-discovery-later {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: auto 0 0;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-button);
  font-size: var(--ui-font-xs);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.creator-discovery-profile-link,
.creator-discovery-hero-link {
  border: 1px solid var(--bejiggi-action);
  color: var(--bejiggi-on-accent);
  background: var(--bejiggi-action);
  text-decoration: none;
}

.creator-discovery-later {
  border: 1px dashed var(--bejiggi-border-strong);
  color: var(--ui-color-muted);
  background: var(--ui-color-surface-raised);
}

.creator-discovery-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: clamp(var(--space-xl), 7vw, var(--space-2xl));
  padding: clamp(var(--space-md), 4vw, var(--space-xl));
  border: 1px solid var(--ui-color-border);
  border-left: 3px solid var(--bejiggi-accent);
  border-radius: var(--radius-dialog);
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in srgb, var(--ui-color-border) 38%, transparent) 12px 13px),
    var(--bejiggi-locked);
}

.creator-discovery-lock {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-md);
  color: var(--bejiggi-accent);
  background: var(--ui-color-surface);
  font-size: 1.25rem;
}

.creator-discovery-boundary > div > p:last-of-type {
  max-width: 72ch;
  margin: var(--space-sm) 0 0;
  color: var(--ui-color-muted);
  line-height: 1.6;
}

.creator-discovery-boundaries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.creator-discovery-boundaries li {
  border: 1px solid var(--bejiggi-border-subtle);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--ui-color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.creator-discovery-boundary > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--bejiggi-action);
  border-radius: var(--radius-button);
  color: var(--bejiggi-accent);
  background: var(--ui-color-surface);
  font-size: var(--ui-font-sm);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.creator-discovery-page a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.creator-discovery-profile-link:hover,
.creator-discovery-hero-link:hover {
  color: var(--bejiggi-on-accent);
  background: var(--bejiggi-action-hover);
  text-decoration: none;
}

[data-theme="dark"] .creator-discovery-card-label,
[data-theme="dark"] .creator-discovery-lock,
[data-theme="dark"] .creator-discovery-value .creator-discovery-kicker,
[data-theme="dark"] .creator-discovery-boundary .creator-discovery-kicker,
[data-theme="dark"] .creator-discovery-boundary > a,
[data-theme="dark"] .creator-discovery-boundary > a:hover {
  color: #f2646f;
}

[data-theme="dark"] .creator-discovery-profile-link:hover,
[data-theme="dark"] .creator-discovery-hero-link:hover {
  background: #d01a28;
}

.creator-discovery-page a:focus-visible {
  outline: 3px solid var(--ui-color-focus);
  outline-offset: 3px;
}

.creator-discovery-footer {
  border-top: 1px solid var(--ui-color-border);
  color: var(--ui-color-muted);
  background: var(--ui-color-surface);
  font-size: var(--ui-font-xs);
}

.creator-discovery-footer > div {
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 76px;
}

.creator-discovery-footer span:first-child {
  color: var(--ui-color-text);
  font-weight: 850;
}

@media (max-width: 1180px) {
  .creator-discovery-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-discovery-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - var(--space-sm));
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .creator-discovery-header-inner,
  .creator-discovery-footer > div {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--space-md);
  }

  .creator-discovery-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .creator-discovery-hero {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-block: var(--space-lg);
  }

  .creator-discovery-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-discovery-section-heading > p {
    text-align: left;
  }

  .creator-discovery-boundary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .creator-discovery-boundary > a {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .creator-discovery-gallery {
    grid-template-columns: 1fr;
  }

  .creator-discovery-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .creator-discovery-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-discovery-region {
    text-align: left;
  }

  .creator-discovery-boundary {
    grid-template-columns: 1fr;
  }

  .creator-discovery-hero h1 {
    font-size: clamp(2.8rem, 15vw, 3.85rem);
  }

  .creator-discovery-hero-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creator-discovery-page *,
  .creator-discovery-page *::before,
  .creator-discovery-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
