/* ==========================================================================
   SNAPSHOTS MODULE
   --------------------------------------------------------------------------
   Purpose:
   - Styles all snapshot components used across Creator, Expert, and Venture
     Scout profile widgets
   - Provides consistent layout, spacing, and visual hierarchy for snapshot
     cards, metrics, badges, and tag clouds
   - Ensures responsive behavior for snapshot grids and card layouts

   Exclusions:
   - No profile header styling (belongs in profile-header.css)
   - No profile field UI (belongs in profile-ui.css)
   - No BuddyBoss navigation or layout overrides (belongs in buddyboss-overrides.css)
   - No directory or listing UI (belongs in directory.css)
   - No GravityForms or GravityView styling (belongs in forms.css)

   Related JS:
   - snapshots.js (metric formatting, dynamic snapshot rendering)

   Sections:
   1. Creator Snapshot (platform icons, reach values, tier badges)
   2. Creator Snapshot Grid + responsive layout
   3. Expert Snapshot (expertise tag cloud)
   4. Snapshot card height normalization
   ========================================================================== */


/* ==========================================================================
   1. Creator Snapshot – Platform Icons, Reach Values, Tier Badges
   ========================================================================== */

/* Platform icon next to primary platform */
.platform-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  object-fit: contain;
  vertical-align: middle;
}

/* Reach metric value */
.reach-value {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}

/* Consolidated tier badge (removes duplication) */
.reach-tier-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  background-color: #f0f0f0;
  color: #333;
  border-radius: 4px;
  vertical-align: middle;
  text-align: center;
  margin: 0;
}


/* ==========================================================================
   2. Creator Snapshot Grid + Card Layout
   ========================================================================== */

.bp-widget.creator-snapshot .impact-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.bp-widget.creator-snapshot .impact-card {
  padding: 12px;
  border-radius: 6px;
  background-color: #f7f7f7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: all 0.3s ease;
}

.bp-widget.creator-snapshot .impact-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.bp-widget.creator-snapshot .impact-label {
  font-size: 0.75rem;
  max-width: 100%;
}


/* Mobile layout adjustments */
@media (max-width: 767px) {
  .bp-widget.creator-snapshot .impact-snapshot-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-inline: 12px;
  }

  .bp-widget.creator-snapshot .impact-card {
    width: 100%;
    padding: 12px;
  }
}


/* ==========================================================================
   3. Expert Snapshot – Expertise Tag Cloud
   ========================================================================== */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding-top: 4px;
}

.tag-cloud span {
  background-color: #eee;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #333;
}


/* ==========================================================================
   4. Snapshot Card Height Normalization
   ========================================================================== */

.bp-widget.expert-snapshot .impact-card,
.bp-widget.venture-scout-snapshot .impact-card {
  min-height: 140px;
}
