/* FanFind Pop Page - go.fanfind.net/best/trans/ */

/* ---------------- Fonts ---------------- */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------- Base ---------------- */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(50, 162, 219, 0.12), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 58%);
  color: #172033;
  font-family: Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ---------------- Desktop Nav ---------------- */

.ff-pop-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 18px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ff-pop-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ff-pop-logo img {
  display: block;
  width: 154px;
  height: auto;
}

.ff-pop-nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ff-pop-nav-links a {
  padding: 11px 12px;
  border-radius: 999px;
  color: #41516b;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ff-pop-nav-links a:hover,
.ff-pop-nav-links a:focus {
  background: rgba(45, 154, 217, 0.09);
  color: #1377b8;
  transform: translateY(-1px);
}

.ff-pop-nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #36a8e6 0%, #238fd1 100%);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 10px 22px rgba(45, 154, 217, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ff-pop-nav-cta:hover,
.ff-pop-nav-cta:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 13px 28px rgba(45, 154, 217, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

/* ---------------- Page Layout ---------------- */

.ff-pop-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 42px;
}

.profile-card-section {
  margin-top: 24px;
}

.profile-card-collection-wrapper {
  width: 100%;
}

/* ---------------- Ad Landing Hero ---------------- */

.ff-ad-hero {
  margin: 14px 0 0;
  padding: 18px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(50, 162, 219, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef8ff 100%);
  border: 1px solid rgba(50, 162, 219, 0.16);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.ff-ad-hero h1 {
  margin: 0 0 12px;
  color: #172033;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.ff-ad-subtext {
  margin: 0 0 10px;
  color: #45526b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.ff-live-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ff-live-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #243044;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.ff-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

/* ---------------- Profile Cards ---------------- */

.profile-card-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-card-link:hover,
.profile-card-link:focus,
.profile-card-link:visited {
  color: inherit;
  text-decoration: none;
}

.profile-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
  box-shadow:
    0 8px 28px rgba(48, 151, 210, 0.16),
    0 2px 8px rgba(48, 151, 210, 0.16);
  transition: transform 280ms ease;
}

.profile-card-item:hover .profile-card {
  transform: scale(1.035);
}

.profile-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 80%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.profile-card-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20%;
  z-index: 1;
  width: 100%;
  height: 15%;
  background: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0) 0%,
    #111827 100%
  );
  pointer-events: none;
}

.profile-card-blur-fill {
  display: none;
}

.profile-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.online-dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  min-height: 8px;
  border-radius: 20px;
  background: #42e66f;
  box-shadow: 0 0 6px rgba(55, 216, 103, 0.6);
}

.profile-card-badge-text {
  color: #ffffff;
  font-size: 12px;
  line-height: 160%;
  font-weight: 600;
}

.profile-card-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 3;
  overflow: hidden;
}

.profile-card-name {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 24px;
  line-height: 100%;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card-bio {
  height: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 130%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-card-cta {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #2d9ad9;
  color: #ffffff;
  font-size: 0 !important;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(45, 154, 217, 0.22);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.profile-card-cta::before {
  content: "";
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
  background-image: url("/assets/img/of-icon.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-card-cta::after {
  content: "Chat now";
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.profile-card-cta:hover,
.profile-card-cta:focus,
.profile-card-cta:visited {
  color: #ffffff;
  text-decoration: none;
}

.profile-card-cta:hover {
  background: #238fd1;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(45, 154, 217, 0.28);
}

.profile-card-item {
  position: relative;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: none;
}

.profile-card-item::before {
  display: none !important;
  content: none !important;
}

.ff-rendered-category-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

/* ---------------- Skeleton Cards ---------------- */

.skeleton-card-item {
  position: relative;
  overflow: hidden;
}

.skeleton-card {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: #111827;
  box-shadow:
    0 8px 28px rgba(48, 151, 210, 0.16),
    0 2px 8px rgba(48, 151, 210, 0.16);
  overflow: hidden;
  position: relative;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: ff-shimmer 1.5s infinite;
}

.skeleton-cta {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border-radius: 999px;
  background: #1a2535;
  position: relative;
  overflow: hidden;
}

.skeleton-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: ff-shimmer 1.5s infinite;
}

@keyframes ff-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ---------------- Sticky CTA (all viewports, mobile + desktop) ---------------- */

.ff-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 9px 9px 16px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.94);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.ff-show-sticky-cta .ff-sticky-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ff-sticky-cta-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.ff-sticky-cta-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: ff-sticky-pulse 1.8s ease-out infinite;
  flex: 0 0 auto;
}

@keyframes ff-sticky-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.ff-sticky-cta strong {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #36a8e6 0%, #238fd1 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(50, 162, 219, 0.36);
}

@media (max-width: 767px) {
  body {
    padding-bottom: 74px;
  }
}

/* ---------------- Footer ---------------- */

.ff-pop-footer {
  margin: 42px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #667085;
}

.ff-pop-footer-logo {
  margin-bottom: 12px;
  color: #172033;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ff-pop-footer p {
  max-width: 760px;
  margin: 0 0 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

/* ---------------- Tablet ---------------- */

@media (max-width: 991px) {
  .ff-pop-nav {
    width: min(100% - 28px, 980px);
    gap: 14px;
  }

  .ff-pop-nav-links {
    gap: 2px;
  }

  .ff-pop-nav-links a {
    padding: 10px 9px;
    font-size: 13px;
  }

  .ff-pop-nav-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .ff-pop-page {
    width: min(100% - 28px, 980px);
  }

  .ff-rendered-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ---------------- Mobile ---------------- */

@media (max-width: 767px) {
  .ff-pop-nav {
    display: none;
  }

  .ff-pop-page {
    width: calc(100% - 24px);
    padding-bottom: 28px;
  }

  .ff-ad-hero {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 16px;
  }

  .ff-ad-hero h1 {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.05;
  }

  .ff-ad-subtext {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .ff-live-note {
    padding: 6px 10px;
    font-size: 11px;
  }

  .profile-card-section {
    margin-top: 16px;
  }

  .profile-card-name {
    font-size: 20px;
  }

  .profile-card-bio {
    font-size: 12px;
  }

  .profile-card-cta {
    min-height: 40px;
    margin-top: 8px;
    padding: 10px 14px;
    font-size: 0 !important;
  }

  .profile-card-cta::after {
    font-size: 14px;
  }

  .profile-card-item:hover .profile-card {
    transform: none;
  }

  .profile-card-cta:hover {
    transform: none;
  }

  .ff-rendered-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ff-rendered-category-grid .profile-card-item:first-child {
    grid-column: 1 / -1;
  }

  .profile-card-item:first-child .profile-card {
    aspect-ratio: unset;
    display: flex;
    align-items: stretch;
  }

  .profile-card-item:first-child .profile-card-image {
    position: static;
    flex-shrink: 0;
    width: calc((100% - 16px) / 2);
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .profile-card-item:first-child .profile-card-gradient {
    display: none;
  }

  .profile-card-item:first-child .profile-card-blur-fill {
    display: block;
    position: relative;
    flex: 1;
    overflow: hidden;
  }

  .profile-card-item:first-child .profile-card-blur-img {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: cover;
    filter: blur(18px) saturate(1.15);
    transform: scale(1.15);
  }

  .profile-card-item:first-child .profile-card-blur-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(17, 24, 39, 0.35) 0%,
      rgba(17, 24, 39, 0.6) 100%
    );
  }

  .profile-card-item:first-child .profile-card-content {
    position: absolute;
    top: 0;
    left: calc((100% - 16px) / 2 + 16px);
    right: 16px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .profile-card-item:first-child .profile-card-name {
    font-size: 19px;
  }

  .profile-card-item:first-child .profile-card-bio {
    height: auto;
    -webkit-line-clamp: 2;
  }

  .profile-card-item:first-child .profile-card-cta {
    min-height: 38px;
    margin-top: 8px;
    padding: 9px 14px;
    font-size: 0 !important;
  }

  .profile-card-item:first-child .profile-card-cta::after {
    font-size: 13px;
  }

  .ff-sticky-cta-text {
    font-size: 13px;
  }

  .ff-pop-footer {
    margin-top: 32px;
    padding-bottom: 8px;
  }

  .ff-pop-footer p {
    font-size: 12px;
  }
}

/* ---------------- Small Mobile ---------------- */

@media (max-width: 479px) {
  .profile-card-badge {
    padding: 0 8px;
  }

  .profile-card-badge-text {
    font-size: 10px;
  }

  .profile-card-name {
    font-size: 18px;
  }

  .profile-card-bio {
    height: 25px;
    font-size: 10px;
  }

  .profile-card-cta {
    min-height: 38px;
    margin-top: 7px;
    padding: 9px 12px;
    font-size: 0 !important;
  }

  .profile-card-cta::after {
    font-size: 13px;
  }

  .ff-sticky-cta {
    padding: 8px 8px 8px 14px;
  }

  .ff-sticky-cta strong {
    padding: 10px 13px;
    font-size: 11px;
  }
}
