/* ══════════════════════════════════════════════════════════════
   SkyGo Forum Author Card
   ══════════════════════════════════════════════════════════════ */
.skygo-fac {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

/* Avatar */
.skygo-fac-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  line-height: 0;
}
.skygo-fac-avatar:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.2);
}
.skygo-fac-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.skygo-fac-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* Head row: name + verified + tier */
.skygo-fac-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.skygo-fac-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.skygo-fac-name:hover { text-decoration: underline; }

/* Verified badge sizing (bp-verified-member plugin) */
.skygo-fac-name .bp-verified-badge {
  width: 16px;
  height: 16px;
  top: -1px;
  position: relative;
}

/* Tier badge — pill */
.skygo-fac-tier {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  line-height: 1.4;
}
.skygo-fac-tier-prefix {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  margin-right: 1px;
}
.skygo-fac-tier-icon { font-size: 13px; line-height: 1; }
.skygo-fac-tier-label { letter-spacing: 0.2px; }

/* Role-specific tints (admin highest contrast) */
.skygo-fac-tier.tier-admin    { background: rgba(255, 82, 82, 0.18);   border-color: rgba(255, 82, 82, 0.45);   color: #ffb3b3; }
.skygo-fac-tier.tier-mod      { background: rgba(168, 82, 255, 0.18);  border-color: rgba(168, 82, 255, 0.45);  color: #dbb3ff; }
.skygo-fac-tier.tier-bronze   { background: rgba(205, 127, 50, 0.18);  border-color: rgba(205, 127, 50, 0.45);  color: #f0c694; }
.skygo-fac-tier.tier-silver   { background: rgba(220, 220, 220, 0.16); border-color: rgba(220, 220, 220, 0.4);  color: #e8e8e8; }
.skygo-fac-tier.tier-gold     { background: rgba(255, 196, 0, 0.18);   border-color: rgba(255, 196, 0, 0.5);    color: #ffd966; }
.skygo-fac-tier.tier-platinum { background: rgba(141, 211, 247, 0.18); border-color: rgba(141, 211, 247, 0.45); color: #bee4ff; }
.skygo-fac-tier.tier-diamond  { background: rgba(180, 140, 255, 0.18); border-color: rgba(180, 140, 255, 0.45); color: #d6c1ff; }
.skygo-fac-tier.tier-vip      { background: rgba(255, 140, 90, 0.18);  border-color: rgba(255, 140, 90, 0.5);   color: #ffc1a3; }
.skygo-fac-tier.tier-elite    { background: rgba(255, 215, 0, 0.22);   border-color: rgba(255, 215, 0, 0.6);    color: #ffe566;
                                box-shadow: 0 0 8px rgba(255, 215, 0, 0.12) inset; }

/* Meta + stats rows */
.skygo-fac-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.skygo-fac-stats {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.skygo-fac-stat { white-space: nowrap; }

/* Mobile */
@media (max-width: 600px) {
  .skygo-fac { gap: 10px; padding: 10px 12px; }
  .skygo-fac-avatar { width: 48px; height: 48px; flex: 0 0 48px; }
  .skygo-fac-name { font-size: 14px; }
  .skygo-fac-name .bp-verified-badge { width: 14px; height: 14px; }
  .skygo-fac-meta { font-size: 12px; }
  .skygo-fac-stats { gap: 10px; font-size: 12.5px; }
  .skygo-fac-tier { font-size: 11.5px; padding: 2px 8px; }
  .skygo-fac-role { font-size: 11px; padding: 2px 8px; }
  .skygo-fac-points-chip { font-size: 11.5px; padding: 2px 7px; }
}

/* Role pill (bbPress: Keymaster / Moderator / Participant / Spectator) */
.skygo-fac-role {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 191, 255, 0.14);
  border: 1px solid rgba(0, 191, 255, 0.35);
  color: #9fdbff;
  white-space: nowrap;
  line-height: 1.4;
}

/* GamiPress points row */
.skygo-fac-points {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.skygo-fac-points-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  white-space: nowrap;
}
.skygo-fac-points-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.skygo-fac-points-emoji { font-size: 13px; line-height: 1; }
.skygo-fac-points-label { font-weight: 500; opacity: 0.92; }
.skygo-fac-points-amount { letter-spacing: 0.2px; }

/* Tint per points type */
.skygo-fac-points-gem    { background: rgba(141,140,255,0.12); border-color: rgba(141,140,255,0.32); color: #cfceff; }
.skygo-fac-points-coin   { background: rgba(255,196,0,0.12);   border-color: rgba(255,196,0,0.32);   color: #ffd966; }
.skygo-fac-points-credit { background: rgba(120,200,140,0.12); border-color: rgba(120,200,140,0.32); color: #b6e6c1; }

/* ════════════════════════════════════════════════════════════════
   Hide native duplicate author elements
   ════════════════════════════════════════════════════════════════ */

/* SocialV loop-single-reply.php — hide native avatar + name+role row */
.replies-tab-table .bp-member-img { display: none !important; }
.replies-tab-table .main-bp-details > .d-flex.justify-content-between.align-items-center { display: none !important; }

/* bbPress default content-single-topic-lead.php — hide native author column entirely */
.bbp-topic-author .bbp-author-avatar,
.bbp-topic-author .bbp-author-name,
.bbp-topic-author .bbp-author-role { display: none !important; }

/* GamiPress integration leftover containers (we already unhook the actions,
   but keep this for any older cached HTML still in the wild) */
.gamipress-bbpress-points,
.gamipress-bbpress-achievements { display: none !important; }

/* Make .main-bp-details span full width now that .bp-member-img is hidden */
.replies-tab-table .main-bp-details { width: 100%; }
