/* ==========================================================================
   LUMINARY PROFILE MODULE
   --------------------------------------------------------------------------
   Purpose:
   - Styles all Luminary-specific UI components including logo grids, interview
     videos, impact snapshot cards, brand partner galleries, and profile reach
     metrics
   - Ensures consistent layout, spacing, and responsive behavior across all
     Luminary profile sections
   - Isolates Luminary UI from Creator Snapshot, Expert Snapshot, Venture Scout,
     and Directory modules

   Exclusions:
   - No directory styling (belongs in directory.css)
   - No snapshot styling for Creator/Expert/Venture Scout (belongs in snapshots.css)
   - No BuddyBoss navigation or layout overrides (belongs in buddyboss-overrides.css)
   - No global iframe or media styling (belongs in core.css)

   Related JS:
   - luminary.js (video preview interactions, dynamic content loading)

   Sections:
   1. Key Initiatives Logo Grid
   2. Featured Interview Video
   3. Mobile Fine-Tuning
   4. Impact Snapshot Grid (Luminary-specific)
   5. BuddyBoss Element Suppression
   6. Brand Partners Section
   7. Social Reach Metrics
   ========================================================================== */


/* ==========================================================================
   1. Key Initiatives Logo Grid
   ========================================================================== */

.project-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.project-logos-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-decoration: none;
  position: relative;
}

.project-logos-grid img {
  height: clamp(50px, 5vw, 75px);
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.project-logos-grid img:hover {
  transform: scale(1.05);
}

.project-logos-grid div {
  font-size: 13px;
  margin-top: 6px;
  color: #333;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-logos-grid a:hover div {
  opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .project-logos-grid {
    justify-content: center;
    gap: 10px;
  }

  .project-logos-grid img {
    height: 50px;
  }

  .project-logos-grid div {
    font-size: 12px;
  }
}


/* ==========================================================================
   2. Featured Interview Video (Luminary Profile)
   ========================================================================== */

.field_9650 td.data > .video-preview,
.field_9650 td.data > .responsive-video {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 24px;
  position: relative;
  cursor: pointer;
  display: block;
}

.field_9650 .video-preview img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: cover;
}

.field_9650 .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  line-height: 1;
  color: white;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 12px 18px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
}

.field_9650 .responsive-video {
  margin-top: 24px;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.field_9650 .responsive-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.field_9650 td.data {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field_9650 td.data p {
  margin: 0 0 24px;
  padding: 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.field_9650 td.data > p:not(:empty) {
  margin-bottom: 24px !important;
}

@media (max-width: 640px) {
  .field_9650 .responsive-video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}


/* ==========================================================================
   3. Mobile Fine-Tuning (≤640px)
   ========================================================================== */

@media (max-width: 640px) {
  .focus-area-tags {
    gap: 8px;
  }

  .luminary-logo-gallery img {
    height: 50px;
  }
}


/* ==========================================================================
   Impact Snapshot Grid (Responsive)
   ========================================================================== */

.impact-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.impact-card {
  text-align: center;
  padding: 12px 8px;
  border-radius: 8px;
  background-color: #f7f7f7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.impact-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}

.impact-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
  line-height: 1.2;
  word-break: break-word;
  white-space: normal;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .impact-snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-inline: 16px;
  }
}



/* ==========================================================================
   5. BuddyBoss Action Button Suppression (Luminary Profiles Only)
   ========================================================================== */

.member-type-luminary .followers-wrap,
.member-type-luminary .following-wrap,
.member-type-luminary .friendship-button,
.member-type-luminary .follow-button,
.member-type-luminary .send-message,
.member-type-luminary .report-content,
.member-type-luminary .block-member,
.member-type-luminary .switch-button,
.member-type-luminary .bb_more_options {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}


/* ==========================================================================
   6. Brand Partners Section
   ========================================================================== */

.brand-partners-section {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid #ddd;
}

.brand-partners-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.brand-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.brand-logo-card {
  width: 180px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-logo {
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.brand-tap-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  background: #f5f5f5;
  padding: 6px 10px;
  border-radius: 4px;
  display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .brand-logo-grid {
    justify-content: space-between;
    gap: 16px;
  }

  .brand-logo-card {
    flex: 0 1 calc(25% - 16px);
    min-width: 140px;
    max-width: 180px;
  }

  .brand-logo {
    height: 90px;
  }

  .brand-tap-label {
    font-size: 12px;
    padding: 4px 8px;
  }
}


/* ==========================================================================
   7. Social Reach Metrics
   ========================================================================== */

.profile-follower-count {
  font-size: 0.85rem;
  font-weight: 400;
  color: #000;
  margin: 6px 0;
}

.profile-follower-count .follower-number {
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
}