/* =========================================================
   SOCIAL STATS
   Outer Card + Shared Social Card Styles
   ========================================================= */

/* ---------------------------------------------------------
   OUTER CARD
   --------------------------------------------------------- */

.social-stats-wrapper {
  position: relative;

  padding: 28px 30px 30px;
  overflow: hidden;

  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: 24px;

  background:
    radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.12), transparent 32%),
    radial-gradient(
      circle at 100% 100%,
      rgba(236, 72, 153, 0.1),
      transparent 32%
    ),
    #fafafa;
}

/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.social-stats-heading {
  position: relative;
  z-index: 1;

  margin-bottom: 24px;
}

.social-stats-eyebrow {
  margin: 0 0 8px;

  color: #8b5cf6;

  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;

  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.social-stats-title {
  margin: 0;

  color: #18181b;

  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.15;

  letter-spacing: -0.03em;
}

.social-stats-sparkle {
  display: inline-block;

  margin-left: 4px;

  font-size: 0.85em;
}

.social-stats-description {
  max-width: 850px;

  margin: 8px 0 0;

  color: #52525b;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   SOCIAL GRID
   --------------------------------------------------------- */

.social-stats-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;

  align-items: start;
}

/* ---------------------------------------------------------
   SHARED SOCIAL CARD
   --------------------------------------------------------- */

.social-card {
  min-width: 0;

  transition:
    transform 150ms ease-out,
    background-color 150ms ease-out,
    box-shadow 150ms ease-out;
}

.social-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 12px 28px rgb(24 24 27 / 0.08);
}

.social-stats-avatar {
  aspect-ratio: 1;
  object-fit: cover;
}

.social-stats-primary {
  letter-spacing: -0.05em;
}

.social-stats-stat {
  min-width: 0;
}

/* =========================================================
   DARK MODE
   ========================================================= */

html.dark .social-stats-wrapper {
  border-color: rgba(139, 92, 246, 0.1);

  background:
    radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.14), transparent 32%),
    radial-gradient(
      circle at 100% 100%,
      rgba(236, 72, 153, 0.1),
      transparent 32%
    ),
    #111113;
}

html.dark .social-stats-title {
  color: #fafafa;
}

html.dark .social-stats-description {
  color: #a1a1aa;
}

html.dark .social-card:hover {
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.24);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .social-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 639px) {
  .social-stats-wrapper {
    padding: 22px 16px 18px;

    border-radius: 20px;
  }

  .social-stats-heading {
    margin-bottom: 18px;
  }

  .social-stats-eyebrow {
    font-size: 10px;

    letter-spacing: 0.2em;
  }

  .social-stats-title {
    font-size: 22px;
  }

  .social-stats-description {
    font-size: 13px;
    line-height: 1.55;
  }

  .social-stats-grid {
    gap: 12px;
  }
}
