/* Polecani twórcy na publicznej stronie głównej. */
.home-creators-showcase {
  width: 100%;
  margin: 18px 0 0;
  padding: 38px max(24px, calc((100% - 1220px) / 2)) 44px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 2%, rgba(210, 154, 51, .10), transparent 31%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 18%, var(--surface-2) 82%, var(--bg) 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="dark"] .home-creators-showcase {
  background:
    radial-gradient(circle at 82% 2%, rgba(229, 190, 112, .08), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #11171b 19%, #11171b 81%, var(--bg) 100%);
}

.home-section + .home-creators-showcase {
  margin-top: 54px;
}

.home-creators-showcase + .home-cta {
  margin-top: 24px;
}

.home-creators-head {
  margin-bottom: 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.home-creators-head > div {
  min-width: 0;
}

.home-creators-head h2 {
  margin: 3px 0 4px;
  color: var(--text);
  font: 800 clamp(24px, 2.3vw, 31px)/1.15 var(--font-display);
  letter-spacing: -.035em;
}

.home-creators-head p {
  max-width: 690px;
  margin: 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.55;
}

.home-creators-head > a {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.home-creators-head > a:hover {
  color: var(--gold);
}

.home-creators-carousel {
  position: relative;
  min-width: 0;
}

.home-creators-track {
  min-width: 0;
  padding: 2px 2px 7px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-creators-track::-webkit-scrollbar {
  display: none;
}

.home-creator-card {
  position: relative;
  flex: 0 0 clamp(250px, 24vw, 282px);
  width: clamp(250px, 24vw, 282px);
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-content: start;
  scroll-snap-align: start;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  box-shadow: 0 9px 26px rgba(72, 47, 12, .07);
}

html[data-theme="dark"] .home-creator-card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.home-creator-cover {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  height: 124px;
  overflow: hidden;
  display: block;
  isolation: isolate;
  background: var(--surface-3);
}

.home-creator-cover::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(9, 7, 4, .42));
  pointer-events: none;
}

.home-creator-cover > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease;
}

.home-creator-card:hover .home-creator-cover > img {
  transform: scale(1.035);
}

.home-creator-presence {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #fff;
  background: rgba(13, 12, 9, .72);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.home-creator-presence > i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #a69f91;
  border-radius: 50%;
}

.home-creator-presence.is-online > i {
  background: #2fc38a;
  box-shadow: 0 0 0 3px rgba(47, 195, 138, .18);
}

.home-creator-avatar {
  position: relative;
  z-index: 3;
  grid-column: 1;
  width: 64px;
  height: 64px;
  margin: -31px 0 0 14px;
  display: block;
}

.home-creator-avatar > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--surface);
  border: 3px solid var(--surface-2);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold);
}

.home-creator-avatar > i {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 13px;
  height: 13px;
  background: #2fc38a;
  border: 3px solid var(--surface-2);
  border-radius: 50%;
}

.home-creator-copy {
  min-width: 0;
  grid-column: 2;
  padding: 10px 14px 0 2px;
}

.home-creator-copy > a,
.home-creator-copy strong,
.home-creator-copy > a > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-creator-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.home-creator-copy > a > span {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 9px;
}

.home-creator-stats {
  grid-column: 1 / -1;
  margin: 12px 14px 0;
  padding: 11px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
}

.home-creator-stats > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
  color: var(--text-faint);
  font-size: 8px;
  line-height: 1.25;
}

.home-creator-stats i {
  grid-row: 1 / 3;
  color: var(--gold-deep);
  font-size: 12px;
  text-align: center;
}

.home-creator-stats b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-creator-actions {
  grid-column: 1 / -1;
  margin: 13px 12px 12px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 7px;
}

.home-creator-actions > a {
  min-height: 39px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 11px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.home-creator-profile-link {
  color: var(--gold-deep);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.home-creator-profile-link:hover {
  color: var(--text);
  background: var(--gold-wash);
}

.home-creator-follow {
  color: #241704;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 1px solid var(--gold);
  box-shadow: 0 6px 16px rgba(143, 91, 11, .14);
}

.home-creator-follow:hover {
  color: #171109;
  filter: brightness(1.035);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .home-creators-showcase {
    width: 100%;
    margin: 0;
    padding: 26px 14px 30px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .home-section + .home-creators-showcase {
    margin-top: 36px;
  }

  .home-creators-showcase + .home-cta {
    margin-top: 16px;
  }

  .home-creators-head {
    margin-bottom: 15px;
    gap: 12px;
  }

  .home-creators-head h2 {
    font-size: 24px;
  }

  .home-creators-head p {
    max-width: 285px;
    font-size: 11px;
    line-height: 1.5;
  }

  .home-creators-head > a {
    min-height: 32px;
    font-size: 0;
  }

  .home-creators-head > a i {
    font-size: 12px;
  }

  .home-creators-track {
    width: calc(100% + 14px);
    max-width: calc(100% + 14px);
    margin-right: -14px;
    padding-right: 14px;
    gap: 10px;
  }

  .home-creator-card {
    flex: 0 0 min(78vw, 286px);
    width: min(78vw, 286px);
  }

  .home-creator-cover {
    height: 116px;
  }

  .home-creators-carousel .dashboard-carousel-arrow {
    display: none;
  }

  .home-creator-actions > a {
    min-height: 42px;
    font-size: 10px;
  }
}
