/* Club Directory v3 — Modal (desktop) + Bottom Sheet (mobile) */

/* ==========================================================================
   WORDPRESS RESETS (scoped to .babesky-club-directory)
   ========================================================================== */

.babesky-club-directory h1,
.babesky-club-directory h2,
.babesky-club-directory h3,
.babesky-club-directory h4,
.babesky-club-directory h5,
.babesky-club-directory 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-club-directory button,
.babesky-club-directory .wp-block-button__link,
.babesky-club-directory .wp-element-button,
.babesky-club-directory input[type="button"],
.babesky-club-directory 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-club-directory a {
  color: inherit;
  text-decoration: none;
}
.babesky-club-directory a:hover {
  color: inherit;
}

.babesky-club-directory input,
.babesky-club-directory select,
.babesky-club-directory 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-club-directory .wp-block-group,
.babesky-club-directory [class*="wp-block-"] {
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.babesky-club-directory,
.babesky-club-directory * {
  box-sizing: border-box;
}

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

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

.babesky-club-directory.hidden,
.babesky-club-empty.hidden,
.babesky-club-loading.hidden,
.babesky-club-pagination.hidden {
  display: none !important;
}

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

.babesky-club-directory.babesky-club-cloudflare-layout {
  width: 100%;
  max-width: 100%;
  background: transparent;
  background-image: none;
  --babesky-club-surface: color-mix(
    in srgb,
    var(--wp--preset--color--foreground, #111) 8%,
    transparent
  );
  --babesky-club-surface-strong: color-mix(
    in srgb,
    var(--wp--preset--color--foreground, #111) 14%,
    transparent
  );
  --babesky-club-border: color-mix(
    in srgb,
    var(--wp--preset--color--foreground, #111) 22%,
    transparent
  );
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
  color: var(--wp--preset--color--foreground, #fffaf5);
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* ==========================================================================
   HERO
   ========================================================================== */

.babesky-club-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.babesky-club-hero__title {
  font-family: var(
    --wp--preset--font-family--heading,
    "Space Grotesk",
    sans-serif
  );
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  background: linear-gradient(
    to right,
    rgb(196, 181, 253),
    rgb(251, 113, 133),
    rgb(196, 181, 253)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.babesky-club-hero__divider {
  width: 6rem;
  height: 4px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(
    to right,
    transparent,
    rgb(168, 85, 247),
    transparent
  );
}

.babesky-club-hero__subtitle {
  font-size: 24px;
  font-weight: 500;
  color: inherit;
  opacity: 0.92;
  margin: 0 0 1rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.babesky-club-hero__desc {
  font-size: 16px;
  color: inherit;
  opacity: 0.82;
  margin: 0 0 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
  font-weight: 300;
}

.babesky-club-hero__safety {
  font-size: 13px;
  color: inherit;
  opacity: 0.65;
  margin: 0 0 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  font-style: italic;
}

.babesky-club-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: inherit;
  opacity: 0.75;
}

.babesky-club-hero__total {
  font-weight: 600;
  color: inherit;
  opacity: 0.95;
}
.babesky-club-hero__stats-sep {
  color: inherit;
  opacity: 0.45;
}

.babesky-club-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #e91e63 0%, #db2777 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition:
    box-shadow 0.2s,
    filter 0.2s;
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.35);
}
.babesky-club-hero__cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.45);
  color: #fff;
}

/* ==========================================================================
   FILTERS — sticky on scroll
   ========================================================================== */

.babesky-club-filters-sentinel {
  height: 0;
  margin: 0;
  padding: 0;
}

.babesky-club-filters {
  background: rgba(0, 0, 0, 0.3);
  background: var(--babesky-club-surface-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-color: var(--babesky-club-border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  transition:
    border-radius 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  z-index: 50;
}

.babesky-club-filters.is-stuck {
  position: sticky;
  top: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.babesky-club-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.babesky-club-filters__row--platforms {
  margin-top: 0.75rem;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.babesky-club-filters__search {
  flex: 1 1 200px;
  min-width: 0;
}
.babesky-club-filters__sort {
  flex: 0 0 auto;
  width: 12rem;
}
.babesky-club-filters__btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.babesky-club-filters__dynamic-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.babesky-club-filters__platforms-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

.babesky-club-filters__label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.babesky-club-filters__input,
.babesky-club-filters__select {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-color: var(--babesky-club-border);
  background: rgba(0, 0, 0, 0.4);
  background: var(--babesky-club-surface);
  color: #fff;
  font-size: 1rem;
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
}

.babesky-club-filters__input:focus,
.babesky-club-filters__select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.babesky-club-filters__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.babesky-club-filters__select {
  background: rgba(0, 0, 0, 0.6);
  background: var(--babesky-club-surface-strong);
  cursor: pointer;
}
.babesky-club-directory select {
  color-scheme: dark;
}
.babesky-club-directory select option {
  background-color: #1a1a1a;
  color: #fff;
}

.babesky-club-filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px; /* accessible tap target */
  white-space: nowrap;
}
.babesky-club-filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.babesky-club-filter-btn--active {
  background: rgba(168, 85, 247, 0.3) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  color: #d8b4fe;
}

/* OnlyFans — blue brand color */
.babesky-club-filter-btn--of {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}
.babesky-club-filter-btn--of:hover {
  background: rgba(59, 130, 246, 0.3);
}
.babesky-club-filter-btn--of.babesky-club-filter-btn--active {
  background: rgba(59, 130, 246, 0.4) !important;
  border-color: rgba(59, 130, 246, 0.75) !important;
  color: #bfdbfe !important;
}

/* Fansly — pink brand color */
.babesky-club-filter-btn--fansly {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.45);
  color: #f9a8d4;
}
.babesky-club-filter-btn--fansly:hover {
  background: rgba(236, 72, 153, 0.3);
}
.babesky-club-filter-btn--fansly.babesky-club-filter-btn--active {
  background: rgba(236, 72, 153, 0.4) !important;
  border-color: rgba(236, 72, 153, 0.75) !important;
  color: #fbcfe8 !important;
}

/* ==========================================================================
   LOADING / EMPTY
   ========================================================================== */

.babesky-club-loading {
  text-align: center;
  padding: 3rem 1rem;
}
.babesky-club-spinner {
  border: 3px solid #f3f4f6;
  border-top-color: #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  animation: babesky-club-spin 1s linear infinite;
}
@keyframes babesky-club-spin {
  to {
    transform: rotate(360deg);
  }
}
.babesky-club-loading p {
  color: rgba(255, 255, 255, 0.8);
}

.babesky-club-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.babesky-club-empty__main {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem;
}
.babesky-club-empty__hint {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.babesky-club-grid-wrap {
  padding-bottom: 1rem;
}

.babesky-club-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  grid-auto-rows: 400px;
  align-items: start;
}

@media (min-width: 768px) {
  .babesky-club-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .babesky-club-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .babesky-club-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   CARD — fixed height, click opens overlay
   ========================================================================== */

.club-card-wrap {
  position: relative;
  will-change: opacity, transform;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Uniform height for ALL cards */
.club-card-wrap:not(.club-card-placeholder) {
  height: 400px;
  min-height: 400px;
  max-height: 400px;
}

/* Featured cards are the same size as regular cards */

.club-card-placeholder {
  min-height: 400px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  background: var(--babesky-club-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-color: var(--babesky-club-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.3s ease;
}

.club-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* -- Banner -- */

.club-card-banner {
  position: relative;
  height: 7rem;
  flex-shrink: 0;
  overflow: hidden;
}

.club-card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.club-card-banner-fallback {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(
    135deg,
    rgba(126, 34, 206, 0.3) 0%,
    rgba(219, 39, 119, 0.25) 100%
  );
}

.club-card-banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.club-card-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.club-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.club-badge-new {
  background: #fbbf24;
  color: #1a1a2e;
}
.club-badge-of {
  background: #3b82f6;
  color: #fff;
}
.club-badge-f {
  background: #ec4899;
  color: #fff;
}
.club-badge-growth {
  background: #f97316;
  color: #fff;
  font-size: 9px;
}

.club-card-featured-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #000;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.club-card-stats {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.club-card-stats span {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* -- Avatar + Quick Actions -- */

.club-card-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 16px;
  z-index: 3;
  flex-shrink: 0;
}

.club-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #111;
  background: #111;
  object-fit: cover;
  transition: border-color 0.2s;
}

.club-card:hover .club-card-avatar {
  border-color: rgba(168, 85, 247, 0.5);
}

.club-avatar-actions {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.club-card-avatar-wrap.show-actions .club-avatar-actions,
.club-card-avatar-wrap:hover .club-avatar-actions {
  opacity: 1;
  pointer-events: auto;
}

.club-quick-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.club-quick-btn:hover {
  transform: scale(1.15);
  color: #fff;
}

/* -- Body -- */

.club-card-body {
  padding: 10px 16px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.club-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  flex-shrink: 0;
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
}

.club-card-handle {
  font-size: 13px;
  color: #a78bfa;
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.club-card-handle:hover {
  color: #d8b4fe;
  text-decoration: underline;
}

.club-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.club-link-btn {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  min-height: 36px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.club-link-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  color: #fff;
}

.club-card-bio {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(209, 213, 219, 0.95);
  white-space: pre-wrap;
  word-break: break-word;
}

.club-card-bio--short {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

@media (hover: hover) {
  .club-card:hover .club-card-bio--short {
    -webkit-line-clamp: 5;
  }
}

/* -- Sticky Footer CTA -- */

.club-card-footer {
  padding: 10px 16px 14px;
  flex-shrink: 0;
  margin-top: auto;
}

.club-card-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 1rem;
  background: rgba(147, 51, 234, 0.8);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
}
.club-card-cta:hover {
  background: rgb(147, 51, 234);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
  color: #fff;
}

.club-bio-link {
  color: #c084fc;
}
.club-bio-link:hover {
  color: #d8b4fe;
  text-decoration: underline;
}

/* ==========================================================================
   FEATURED CARD
   ========================================================================== */

.club-card--featured {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.12) 0%,
    rgba(245, 158, 11, 0.06) 50%,
    rgba(217, 119, 6, 0.03) 100%
  );
  border: 2px solid rgba(251, 191, 36, 0.4);
  box-shadow:
    0 4px 20px rgba(251, 191, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.club-card--featured:hover {
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(251, 191, 36, 0.15);
}

.club-card--featured .club-card-cta {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #000;
}
.club-card--featured .club-card-cta:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
  color: #000;
}

/* ==========================================================================
   PROFILE OVERLAY — Modal (desktop) + Bottom Sheet (mobile)
   ========================================================================== */

.club-profile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
}

.club-profile-overlay.is-open {
  display: flex;
}

/* Backdrop */
.club-profile-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.club-profile-overlay.is-visible .club-profile-overlay__backdrop {
  opacity: 1;
}

/* -- DESKTOP: Centered modal -- */
@media (min-width: 768px) {
  .club-profile-overlay {
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .club-profile-overlay__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition:
      transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.3s ease;
  }

  .club-profile-overlay.is-visible .club-profile-overlay__content {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .club-profile-overlay__drag-handle {
    display: none;
  }
}

/* -- MOBILE: Bottom sheet -- */
@media (max-width: 767px) {
  .club-profile-overlay {
    align-items: flex-end;
    justify-content: stretch;
  }

  .club-profile-overlay__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 85vh;
    background: #111;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
  }

  .club-profile-overlay.is-visible .club-profile-overlay__content {
    transform: translateY(0);
  }

  .club-profile-overlay__drag-handle {
    flex-shrink: 0;
  }

  .club-profile-overlay__scroll {
    flex: 1;
    min-height: 0;
    max-height: none;
  }
}

/* Drag handle (mobile only) */
.club-profile-overlay__drag-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  cursor: grab;
}

.club-profile-overlay__drag-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

/* Close button */
.club-profile-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s,
    color 0.2s;
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
}
.club-profile-overlay__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Scroll area */
.club-profile-overlay__scroll {
  overflow-y: auto;
  max-height: 85vh;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.club-profile-overlay__scroll::-webkit-scrollbar {
  width: 4px;
}
.club-profile-overlay__scroll::-webkit-scrollbar-track {
  background: transparent;
}
.club-profile-overlay__scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* -- Profile Banner -- */

.club-profile-banner {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.club-profile-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.club-profile-banner__fallback {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(
    135deg,
    rgba(126, 34, 206, 0.4) 0%,
    rgba(219, 39, 119, 0.3) 100%
  );
}

.club-profile-banner__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(17, 17, 17, 1) 100%
  );
}

/* -- Profile Header -- */

.club-profile-header {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 0 20px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.club-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #111;
  background: #111;
  object-fit: cover;
  flex-shrink: 0;
}

.club-profile-info {
  min-width: 0;
  padding-bottom: 4px;
}

.club-profile-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
}

.club-profile-handle {
  font-size: 14px;
  color: #a78bfa;
  display: inline-block;
  transition: color 0.15s;
  text-decoration: none;
}
.club-profile-handle:hover {
  color: #d8b4fe;
  text-decoration: underline;
}

/* -- Stats -- */

.club-profile-stats {
  display: flex;
  gap: 24px;
  padding: 16px 20px 0;
}

.club-profile-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.club-profile-stat__value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.club-profile-stat__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* -- Badges -- */

.club-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px 0;
}

.club-profile-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.club-profile-badge--featured {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
}
.club-profile-badge--new {
  background: #fbbf24;
  color: #1a1a2e;
}
.club-profile-badge--of {
  background: #3b82f6;
  color: #fff;
}
.club-profile-badge--f {
  background: #ec4899;
  color: #fff;
}

/* -- Bio -- */

.club-profile-bio {
  padding: 14px 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  white-space: pre-wrap;
  word-break: break-word;
}

.club-profile-bio .club-bio-link {
  color: #c084fc;
}
.club-profile-bio .club-bio-link:hover {
  color: #d8b4fe;
  text-decoration: underline;
}

/* -- Links -- */

.club-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 0;
}

.club-profile-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.club-profile-link:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  color: #fff;
}

/* -- CTA -- */

.club-profile-cta {
  display: block;
  margin: 20px 20px 0;
  padding: 14px 1rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.8);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
}
.club-profile-cta:hover {
  background: rgb(147, 51, 234);
  box-shadow: 0 0 24px rgba(147, 51, 234, 0.35);
  color: #fff;
}

/* ==========================================================================
   LOAD MORE
   ========================================================================== */

.club-load-more {
  text-align: center;
  padding: 2rem 0 3rem;
}

.club-load-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-color: var(--babesky-club-border);
  background: rgba(255, 255, 255, 0.06);
  background: var(--babesky-club-surface);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--wp--preset--font-family--body, "DM Sans", sans-serif);
}
.club-load-more__btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.club-load-more__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.club-load-more__count {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   LINK BUTTON COLORS
   ========================================================================== */

.babesky-club-directory .bg-blue-500,
.club-profile-overlay .bg-blue-500 {
  background-color: #3b82f6;
}
.babesky-club-directory .bg-pink-500,
.club-profile-overlay .bg-pink-500 {
  background-color: #ec4899;
}
.babesky-club-directory .bg-purple-600,
.club-profile-overlay .bg-purple-600 {
  background-color: #9333ea;
}
.babesky-club-directory .bg-amber-500,
.club-profile-overlay .bg-amber-500 {
  background-color: #f59e0b;
}
.babesky-club-directory .bg-emerald-500,
.club-profile-overlay .bg-emerald-500 {
  background-color: #10b981;
}
.babesky-club-directory .bg-teal-500,
.club-profile-overlay .bg-teal-500 {
  background-color: #14b8a6;
}
.babesky-club-directory .bg-gray-500,
.club-profile-overlay .bg-gray-500 {
  background-color: #6b7280;
}
.babesky-club-directory .bg-gray-700,
.club-profile-overlay .bg-gray-700 {
  background-color: #374151;
}
.babesky-club-directory .bg-pink-600,
.club-profile-overlay .bg-pink-600 {
  background-color: #db2777;
}
.babesky-club-directory .bg-black,
.club-profile-overlay .bg-black {
  background-color: #000;
}
.babesky-club-directory .bg-red-600,
.club-profile-overlay .bg-red-600 {
  background-color: #dc2626;
}
.babesky-club-directory .bg-blue-400,
.club-profile-overlay .bg-blue-400 {
  background-color: #60a5fa;
}
.babesky-club-directory .bg-orange-600,
.club-profile-overlay .bg-orange-600 {
  background-color: #ea580c;
}
.babesky-club-directory .bg-rose-600,
.club-profile-overlay .bg-rose-600 {
  background-color: #e11d48;
}
.babesky-club-directory .bg-indigo-500,
.club-profile-overlay .bg-indigo-500 {
  background-color: #6366f1;
}
.babesky-club-directory .bg-sky-500,
.club-profile-overlay .bg-sky-500 {
  background-color: #0ea5e9;
}
.babesky-club-directory .bg-purple-500,
.club-profile-overlay .bg-purple-500 {
  background-color: #a855f7;
}

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

@media (max-width: 640px) {
  .babesky-club-hero__title {
    font-size: 32px;
  }
  .babesky-club-hero__subtitle {
    font-size: 18px;
    opacity: 0.95;
  }

  /* Keep search + sort on one compact row — hide labels and rely on placeholders */
  .babesky-club-filters__label {
    display: none;
  }
  .babesky-club-filters__row {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .babesky-club-filters__search {
    flex: 1 1 0;
    min-width: 0;
  }
  .babesky-club-filters__sort {
    flex: 0 0 120px;
  }

  /* Smaller inputs on mobile */
  .babesky-club-filters__input,
  .babesky-club-filters__select {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Compact platform row */
  .babesky-club-filters__row--platforms {
    margin-top: 0.5rem;
    gap: 0.375rem;
    flex-wrap: wrap;
  }
  .babesky-club-filters__btns {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .babesky-club-filters__dynamic-tags {
    justify-content: flex-start;
  }
  .babesky-club-filters__platforms-label {
    display: none;
  }

  /* Smaller filter buttons */
  .babesky-club-filter-btn {
    padding: 0.35rem 0.75rem;
    min-height: 38px;
    font-size: 0.8rem;
  }

  .babesky-club-filters {
    padding: 0.75rem 1rem;
  }
  .babesky-club-filters.is-stuck {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0.625rem 1rem;
  }
}

@media (max-width: 767px) {
  .club-card-banner {
    height: 5.5rem;
  }

  .club-card-avatar-wrap {
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: 12px;
  }
  .club-card-avatar {
    width: 60px;
    height: 60px;
  }

  .club-card-body {
    padding: 8px 12px 0;
  }
  .club-card-footer {
    padding: 8px 12px 12px;
  }

  .club-card-name {
    font-size: 15px;
  }
  .club-card-handle {
    font-size: 12px;
  }
  .club-card-bio {
    font-size: 12.5px;
  }
  .club-link-btn {
    font-size: 11px;
    padding: 5px 11px;
    min-height: 34px;
  }

  .club-avatar-actions {
    display: none;
  }

  /* Slightly shorter cards on mobile */
  .club-card-wrap:not(.club-card-placeholder) {
    height: 370px;
    min-height: 370px;
    max-height: 370px;
  }
  .babesky-club-grid {
    grid-auto-rows: 370px;
  }

  /* Bottom sheet profile adjustments */
  .club-profile-banner {
    height: 120px;
  }
  .club-profile-avatar {
    width: 68px;
    height: 68px;
  }
  .club-profile-header {
    margin-top: -34px;
  }
  .club-profile-name {
    font-size: 18px;
  }
}
