/**
 * NXTRUNN Verified Badge System Styles
 * 
 * Custom styling for member verification badges (checkmark circles)
 * Optimized for BuddyBoss Platform
 * NOTE: This uses .nxtrunn-verified-badge to avoid conflicts with 
 * .nxtrunn-badge used by the Run Club Directory diversity badges
 * 
 * @package NXTRUNN
 * @version 1.1
 */

/* ========================================
   BASE VERIFIED BADGE STYLES
   ======================================== */

/* Checkmark Icon Badge (Like Twitter/IG Verified) */
.nxtrunn-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  position: relative;
  transition: all 0.2s ease;
  text-indent: -9999px; /* Hide text, show icon only */
  overflow: hidden;
}

/* Checkmark icon using CSS */
.nxtrunn-verified-badge::before {
  content: '✓';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  text-indent: 0;
  line-height: 1;
}

/* Hover effect */
.nxtrunn-verified-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Show tooltip on hover */
.nxtrunn-verified-badge:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 1000;
  text-indent: 0;
  pointer-events: none;
}

/* ========================================
   INDIVIDUAL BADGE COLORS
   ======================================== */

/* Black Unicorn Marathoner – Black with Bright Gold Checkmark */
.nxtrunn-verified-badge--bum {
  background: #000000;
}

.nxtrunn-verified-badge--bum::before {
  color: #FFD700; /* Bright Gold checkmark */
}

/* NXTRUNN Team – Core Brand Mauve */
.nxtrunn-verified-badge--team {
  background: #8F657C;
}

/* Sponsor – Green */
.nxtrunn-verified-badge--sponsor {
  background: #00C853;
}

/* Verified Coach – Blue */
.nxtrunn-verified-badge--coach {
  background: #1D9BF0;
}

/* Event Organizer – Orange */
.nxtrunn-verified-badge--organizer {
  background: #FF9800;
}

/* NXTRUNN Supporter – Gold/Amber */
.nxtrunn-verified-badge--supporter {
  background: #FFA726;
}

/* ========================================
   PROFILE HEADER BADGE
   ======================================== */

.nxtrunn-profile-badge {
  margin-top: 8px;
  margin-bottom: 12px;
}

.nxtrunn-profile-badge .nxtrunn-verified-badge {
  width: 20px;
  height: 20px;
  margin-left: 0;
}

.nxtrunn-profile-badge .nxtrunn-verified-badge::before {
  font-size: 13px;
}

/* ========================================
   MEMBER DIRECTORY INTEGRATION
   ======================================== */

/* Adjust spacing in member directory */
#buddypress .item-title .nxtrunn-verified-badge,
#buddypress .activity-header .nxtrunn-verified-badge {
  margin-left: 6px;
  width: 18px;
  height: 18px;
}

/* Mobile adjustment for directory */
@media (max-width: 768px) {
  #buddypress .item-title .nxtrunn-verified-badge {
    width: 16px;
    height: 16px;
  }
  
  #buddypress .item-title .nxtrunn-verified-badge::before {
    font-size: 11px;
  }
}

/* ========================================
   ACTIVITY FEED INTEGRATION
   ======================================== */

/* Activity stream badge positioning */
.activity-list .activity-content .nxtrunn-verified-badge {
  margin-left: 6px;
  width: 16px;
  height: 16px;
}

.activity-list .activity-content .nxtrunn-verified-badge::before {
  font-size: 11px;
}

/* ========================================
   COMMENT & FORUM INTEGRATION (Optional)
   ======================================== */

/* bbPress/BuddyBoss forums */
.bbp-author-name .nxtrunn-verified-badge {
  margin-left: 6px;
  width: 16px;
  height: 16px;
}

.bbp-author-name .nxtrunn-verified-badge::before {
  font-size: 11px;
}

/* WordPress comments */
.comment-author .nxtrunn-verified-badge {
  margin-left: 6px;
  width: 16px;
  height: 16px;
}

.comment-author .nxtrunn-verified-badge::before {
  font-size: 11px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .nxtrunn-verified-badge {
    width: 17px;
    height: 17px;
  }
  
  .nxtrunn-verified-badge::before {
    font-size: 11px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .nxtrunn-verified-badge {
    width: 16px;
    height: 16px;
  }
  
  .nxtrunn-verified-badge::before {
    font-size: 10px;
  }
  
  .nxtrunn-profile-badge .nxtrunn-verified-badge {
    width: 18px;
    height: 18px;
  }
  
  .nxtrunn-profile-badge .nxtrunn-verified-badge::before {
    font-size: 12px;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus state for keyboard navigation */
.nxtrunn-verified-badge:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nxtrunn-verified-badge {
    border: 2px solid currentColor;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nxtrunn-verified-badge {
    transition: none;
  }
  
  .nxtrunn-verified-badge:hover {
    transform: none;
  }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
  .nxtrunn-verified-badge {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .nxtrunn-verified-badge {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

/* ========================================
   ADMIN CUSTOMIZATION HELPERS
   ======================================== */

/* Change checkmark to a different icon */
/*
.nxtrunn-verified-badge::before {
  content: '★'; // Star
  content: '◆'; // Diamond  
  content: '♥'; // Heart
  content: '⚡'; // Lightning
  content: '✓'; // Checkmark (default)
}
*/

/* Different icons per badge type */
/*
.nxtrunn-verified-badge--team::before {
  content: '★';
}

.nxtrunn-verified-badge--sponsor::before {
  content: '◆';
}

.nxtrunn-verified-badge--coach::before {
  content: '✓';
}

.nxtrunn-verified-badge--organizer::before {
  content: '⚡';
}

.nxtrunn-verified-badge--supporter::before {
  content: '♥';
}
*/

/* ========================================
   ALTERNATE STYLE: Small Pill Badge
   If you prefer the pill-style badge instead of checkmark,
   uncomment this section and comment out the checkmark styles above
   ======================================== */

/*
.nxtrunn-verified-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  line-height: 1.3 !important;
  margin-left: 4px !important;
  width: auto !important;
  height: auto !important;
  text-indent: 0 !important;
}

.nxtrunn-verified-badge::before {
  display: none !important;
}

.nxtrunn-verified-badge:hover::after {
  display: none !important;
}
*/