/* /assets/css/creators.css
   Professional Creator Directory / Marketplace styling.
   UTF-8, no BOM.
*/

/* ------------------------------------------------------------
   Page foundation
------------------------------------------------------------ */

.creators-directory-page,
.creators-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(124, 58, 237, .18), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(236, 72, 153, .15), transparent 28%),
    radial-gradient(circle at 76% 100%, rgba(249, 115, 22, .08), transparent 32%),
    linear-gradient(135deg, #fff7fb 0%, #f8fafc 46%, #f5f3ff 100%);
  color: #12091f;
}

.creators-page .content-max,
.content-max.creators-directory {
  width: min(1180px, calc(100% - 28px));
  max-width: 1180px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */

.creators-hero {
  padding: 34px 0 22px;
}

.creators-hero .content-max {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 92% 8%, rgba(236,72,153,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow:
    0 34px 100px rgba(15,23,42,.13),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.creators-hero .content-max::before {
  content: "";
  position: absolute;
  right: -110px;
  top: -130px;
  width: 390px;
  height: 390px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(236,72,153,.14));
}

.creators-hero .content-max::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(249,115,22,.10));
}

.creators-hero__badge,
.home-creators-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(124,58,237,.10);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.creators-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 18px 0 0;
  color: #12091f;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: .98;
  letter-spacing: -.08em;
}

.creators-hero p {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 20px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.78;
}

/* ------------------------------------------------------------
   Directory shell
------------------------------------------------------------ */

.creators-directory {
  padding: 0 0 64px;
}

/* ------------------------------------------------------------
   Filters
------------------------------------------------------------ */

.creators-filter {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(170px, .7fr) minmax(170px, .7fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0;
  padding: 18px;
  border-radius: 30px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(226,232,240,.86);
  box-shadow:
    0 22px 60px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.86);
}

.filter-field {
  display: grid;
  gap: 7px;
}

.filter-field label {
  color: #334155;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 48px;
  border-radius: 17px;
  border: 1px solid rgba(226,232,240,.92);
  background: #fff;
  color: #12091f;
  padding: 0 14px;
  outline: none;
  font: inherit;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(124,58,237,.38);
  box-shadow: 0 0 0 4px rgba(124,58,237,.10);
}

.creators-filter button,
.filter-clear,
.creator-cta,
.creator-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 17px;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.creators-filter button {
  color: #fff;
  background: linear-gradient(135deg, #12091f, #7c3aed 55%, #ec4899);
  box-shadow: 0 16px 34px rgba(124,58,237,.22);
}

.filter-clear {
  color: #12091f;
  background: #fff;
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.creators-filter button:hover,
.filter-clear:hover,
.creator-cta:hover,
.creator-card__link:hover {
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Directory top
------------------------------------------------------------ */

.creators-directory__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 18px;
}

.creators-directory__top h2 {
  margin: 0;
  color: #12091f;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.06em;
}

.creators-directory__top p {
  margin: 9px 0 0;
  color: #64748b;
  font-weight: 800;
}

.creator-cta {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 16px 34px rgba(124,58,237,.22);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Empty state
------------------------------------------------------------ */

.creators-empty {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226,232,240,.84);
  text-align: center;
  box-shadow: 0 20px 58px rgba(15,23,42,.08);
}

.creators-empty h3 {
  margin: 0 0 8px;
  color: #12091f;
  font-size: 26px;
  letter-spacing: -.035em;
}

.creators-empty p {
  margin: 0;
  color: #64748b;
}

/* ------------------------------------------------------------
   Creator grid/cards
------------------------------------------------------------ */

.creators-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.creator-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(226,232,240,.86);
  box-shadow:
    0 18px 48px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.84);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.creator-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #7c3aed, #ec4899);
  opacity: .76;
}

.creator-card::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -52px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(124,58,237,.08);
}

.creator-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,.24);
  box-shadow: 0 30px 78px rgba(124,58,237,.14);
}

.creator-card.is-featured {
  border-color: rgba(236,72,153,.30);
  background:
    radial-gradient(circle at 86% 8%, rgba(236,72,153,.14), transparent 36%),
    rgba(255,255,255,.98);
  box-shadow:
    0 32px 90px rgba(124,58,237,.16),
    0 10px 34px rgba(236,72,153,.09);
}

.creator-card.is-placeholder {
  border-style: dashed;
  background:
    radial-gradient(circle at 86% 8%, rgba(249,115,22,.12), transparent 36%),
    rgba(255,255,255,.88);
}

.creator-featured-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(124,58,237,.10);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 950;
}

.creator-card.is-featured .creator-featured-badge {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 10px 24px rgba(249,115,22,.18);
}

.creator-card.is-placeholder .creator-featured-badge {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.creator-card__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.creator-avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #12091f, #7c3aed 55%, #ec4899);
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(124,58,237,.22);
}

.creator-card.is-placeholder .creator-avatar {
  background: linear-gradient(135deg, #f59e0b, #f97316, #ec4899);
}

.creator-category {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .035em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.creator-card h3 {
  margin: 0;
  color: #12091f;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.creator-location {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.creator-summary {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 74px;
  margin: 16px 0 14px;
  color: #475569;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.creator-card__meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.creator-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1px solid rgba(226,232,240,.72);
  color: #5b21b6;
  font-size: 12px;
  font-weight: 900;
}

.creator-card__link {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 16px 34px rgba(124,58,237,.20);
}

.creator-card.is-placeholder .creator-card__link {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-width: 1100px) {
  .creators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creators-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-field--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .creators-page .content-max,
  .content-max.creators-directory {
    width: min(100% - 20px, 1180px);
  }

  .creators-hero {
    padding-top: 18px;
  }

  .creators-hero .content-max,
  .creators-filter,
  .creator-card {
    border-radius: 28px;
  }

  .creators-hero .content-max {
    padding: 24px;
  }

  .creators-hero h1 {
    font-size: 36px;
  }

  .creators-hero p {
    font-size: 15.5px;
  }

  .creators-filter,
  .creators-grid {
    grid-template-columns: 1fr;
  }

  .creators-filter button,
  .filter-clear,
  .creator-cta {
    width: 100%;
  }

  .creators-directory__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .creators-directory__top h2 {
    font-size: 32px;
  }

  .creator-card {
    padding: 18px;
  }
}

/* ------------------------------------------------------------
   Dark mode
------------------------------------------------------------ */

html[data-theme="dark"] .creators-directory-page,
body.theme-dark.creators-directory-page,
html[data-theme="dark"] .creators-page,
body.theme-dark .creators-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(124,58,237,.24), transparent 32%),
    #0f172a;
}

html[data-theme="dark"] .creators-hero .content-max,
body.theme-dark .creators-hero .content-max,
html[data-theme="dark"] .creators-filter,
body.theme-dark .creators-filter,
html[data-theme="dark"] .creator-card,
body.theme-dark .creator-card,
html[data-theme="dark"] .creators-empty,
body.theme-dark .creators-empty {
  background: #111827;
  border-color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .creators-hero h1,
body.theme-dark .creators-hero h1,
html[data-theme="dark"] .creators-directory__top h2,
body.theme-dark .creators-directory__top h2,
html[data-theme="dark"] .creator-card h3,
body.theme-dark .creator-card h3,
html[data-theme="dark"] .creators-empty h3,
body.theme-dark .creators-empty h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .creators-hero p,
body.theme-dark .creators-hero p,
html[data-theme="dark"] .creators-directory__top p,
body.theme-dark .creators-directory__top p,
html[data-theme="dark"] .creator-summary,
body.theme-dark .creator-summary,
html[data-theme="dark"] .creator-location,
body.theme-dark .creator-location,
html[data-theme="dark"] .creators-empty p,
body.theme-dark .creators-empty p {
  color: #cbd5e1;
}

html[data-theme="dark"] .filter-field label,
body.theme-dark .filter-field label {
  color: #e2e8f0;
}

html[data-theme="dark"] .filter-field input,
html[data-theme="dark"] .filter-field select,
body.theme-dark .filter-field input,
body.theme-dark .filter-field select {
  background: #0f172a;
  border-color: rgba(255,255,255,.10);
  color: #f8fafc;
}

html[data-theme="dark"] .creator-card__meta span,
body.theme-dark .creator-card__meta span {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: #e9d5ff;
}
