/* Featured Creators — Dark theme with NSFW blur controls and age gate */

/* ==========================================================================
   WORDPRESS RESETS (scoped to .babesky-featured-creators)
   ========================================================================== */

.babesky-featured-creators h1,
.babesky-featured-creators h2,
.babesky-featured-creators h3,
.babesky-featured-creators h4,
.babesky-featured-creators h5,
.babesky-featured-creators h6 {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: normal;
  margin: 0;
  padding: 0;
  color: inherit;
  -webkit-text-fill-color: unset;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.babesky-featured-creators button,
.babesky-featured-creators input[type="button"],
.babesky-featured-creators input[type="submit"] {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  color: inherit;
  box-shadow: none;
  letter-spacing: normal;
  line-height: normal;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
}

.babesky-featured-creators a {
  color: inherit;
  text-decoration: none;
}
.babesky-featured-creators a:hover {
  color: inherit;
}

.babesky-featured-creators input,
.babesky-featured-creators select,
.babesky-featured-creators textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.babesky-featured-creators,
.babesky-featured-creators * {
  box-sizing: border-box;
}

.babesky-featured-creators p {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

.babesky-featured-creators .hidden {
  display: none !important;
}

.wp-site-blocks .babesky-featured-creators.alignfull,
.is-layout-constrained > .babesky-featured-creators.alignfull,
.is-layout-flow > .babesky-featured-creators.alignfull {
  max-width: none !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* ==========================================================================
   AGE GATE
   ========================================================================== */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.age-gate.hidden {
  display: none !important;
}

.age-gate__content {
  max-width: 480px;
  width: 90%;
  background: linear-gradient(135deg, #1a0a2e 0%, #0d0d1a 100%);
  border: 1px solid rgba(145, 70, 255, 0.3);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(145, 70, 255, 0.2);
}

.age-gate__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.age-gate__title {
  font-family: var(
    --wp--preset--font-family--heading,
    "Space Grotesk",
    sans-serif
  );
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fffaf5;
  -webkit-text-fill-color: #fffaf5;
}

.age-gate__text {
  font-size: 1rem;
  color: rgba(255, 250, 245, 0.8);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.age-gate__confirm-text {
  font-size: 0.875rem;
  color: rgba(255, 250, 245, 0.6);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.age-gate__btn {
  display: inline-block;
  cursor: pointer;
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  margin-bottom: 1.25rem;
}

.age-gate__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.age-gate__exit {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 250, 245, 0.5);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.age-gate__exit:hover {
  color: rgba(255, 250, 245, 0.8);
}

/* ==========================================================================
   LAYOUT & BACKGROUND
   ========================================================================== */

.babesky-featured-creators {
  width: 100%;
  max-width: 100%;
  background: #0a0a0a;
  background-image:
    radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(118, 75, 162, 0.12) 0px, transparent 50%);
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
  color: #fffaf5;
  font-size: 16px;
  line-height: 1.6;
}

.babesky-featured-creators.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.babesky-fc-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem 1.5rem;
}

/* ==========================================================================
   NSFW CONTROLS
   ========================================================================== */

.nsfw-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.nsfw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: background 0.2s;
}

.nsfw-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nsfw-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.nsfw-toggle__slider {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  transition: background 0.3s;
  flex-shrink: 0;
}

.nsfw-toggle__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.nsfw-toggle input[type="checkbox"]:checked ~ .nsfw-toggle__slider {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.nsfw-toggle input[type="checkbox"]:checked ~ .nsfw-toggle__slider::after {
  transform: translateX(18px);
}

.nsfw-toggle__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 250, 245, 0.8);
  user-select: none;
}

/* ==========================================================================
   LOADING / ERROR / EMPTY STATES
   ========================================================================== */

.babesky-fc-loading {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(255, 250, 245, 0.6);
}

.babesky-fc-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgb(168, 85, 247);
  border-radius: 50%;
  animation: fc-spin 0.8s linear infinite;
}

@keyframes fc-spin {
  to {
    transform: rotate(360deg);
  }
}

.babesky-fc-error,
.babesky-fc-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 250, 245, 0.6);
  font-size: 1.1rem;
}

/* ==========================================================================
   CREATORS GRID
   ========================================================================== */

.babesky-fc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1279px) {
  .babesky-fc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1023px) {
  .babesky-fc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 639px) {
  .babesky-fc-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CREATOR CARD
   ========================================================================== */

.fc-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.fc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(168, 85, 247, 0.3);
}

/* Banner */
.fc-card__banner {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e, #0d1a2e);
  flex-shrink: 0;
}

.fc-card__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fc-card__banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.3),
    rgba(219, 39, 119, 0.3)
  );
}

.fc-card__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

/* Avatar + header */
.fc-card__header {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0 1rem 0.75rem;
  margin-top: -2rem;
}

.fc-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a2e;
}

.fc-card__identity {
  min-width: 0;
}

.fc-card__name {
  font-family: var(
    --wp--preset--font-family--heading,
    "Space Grotesk",
    sans-serif
  );
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fffaf5;
}

.fc-card__handle {
  font-size: 0.8rem;
  color: rgba(255, 250, 245, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.fc-card__handle:hover {
  color: rgb(168, 85, 247);
}

/* Body */
.fc-card__body {
  padding: 0 1rem;
  flex: 1;
}

.fc-card__bio {
  font-size: 0.85rem;
  color: rgba(255, 250, 245, 0.65);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.fc-card__stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 250, 245, 0.5);
  margin-bottom: 0.75rem;
}

.fc-card__stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Media gallery */
.fc-card__gallery {
  margin-bottom: 0.75rem;
}

.fc-card__gallery-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(168, 85, 247, 0.8);
  margin-bottom: 0.5rem;
}

.fc-card__gallery-scroll {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
  padding-bottom: 4px;
}

.fc-card__gallery-scroll::-webkit-scrollbar {
  height: 3px;
}
.fc-card__gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.fc-card__gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 2px;
}

.fc-gallery-item {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s;
}

.fc-gallery-item:hover {
  transform: scale(1.04);
}

.fc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

/* NSFW blur */
.nsfw-blurred .fc-gallery-item img {
  filter: blur(20px);
}

.fc-gallery-item:hover img,
.fc-gallery-item.fc-revealed img {
  filter: none !important;
}

.fc-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255, 250, 245, 0.35);
  text-align: center;
  padding: 0.5rem;
}

/* Footer links */
.fc-card__footer {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.fc-card__link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    opacity 0.2s,
    transform 0.2s;
  white-space: nowrap;
}

.fc-card__link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.fc-card__link--profile {
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.4);
  color: rgb(216, 180, 254);
}

.fc-card__link--bsky {
  background: rgba(32, 139, 254, 0.15);
  border: 1px solid rgba(32, 139, 254, 0.3);
  color: rgb(125, 195, 255);
}

.fc-card__link--of {
  background: rgba(0, 160, 220, 0.15);
  border: 1px solid rgba(0, 160, 220, 0.3);
  color: rgb(100, 200, 240);
}

.fc-card__link--fansly {
  background: rgba(219, 39, 119, 0.15);
  border: 1px solid rgba(219, 39, 119, 0.3);
  color: rgb(251, 113, 183);
}

.fc-card__link--other {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: rgb(196, 181, 253);
}

/* Skeleton loaders */
.fc-card--skeleton .fc-card__banner {
  background: linear-gradient(90deg, #1a1a2e 25%, #252538 50%, #1a1a2e 75%);
  background-size: 200% 100%;
  animation: fc-shimmer 1.5s infinite;
}
.fc-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: fc-shimmer 1.5s infinite;
  margin-bottom: 8px;
}
.fc-skeleton-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: fc-shimmer 1.5s infinite;
}

@keyframes fc-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.fc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fc-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fc-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.fc-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.fc-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .babesky-fc-main {
    padding: 1.5rem 0.75rem 2rem;
  }
}

@media (max-width: 480px) {
  .age-gate__content {
    padding: 2rem 1.25rem;
  }
  .age-gate__title {
    font-size: 1.4rem;
  }
}
