/* ============================================================
   FirePulse — Common Shared Styles
   Used across all pages for consistency
   + VERIFICATION BADGE SYSTEM (Verified / Golden)
   ============================================================ */

/* ============================================================
   FONT AWESOME ICON SYSTEM
   ============================================================ */

/* Bottom Nav Icons */
.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
  color: #666666;
  transition: color 0.3s ease;
  display: inline-block;
  line-height: 1;
}
.nav-item.active i,
.nav-item:hover i {
  color: #ff0000;
}

/* Footer Social Icons */
.footer-social a i {
  font-size: 18px;
  color: #888888;
  transition: color 0.3s ease;
  line-height: 1;
}
.footer-social a:hover i {
  color: #ff0000;
}

/* Tab Button Icons */
.tab-btn i,
.update-tabs .tab-btn i {
  font-size: 15px;
  margin-right: 6px;
  color: #888888;
  transition: color 0.3s ease;
  line-height: 1;
}
.tab-btn.active i,
.tab-btn:hover i,
.update-tabs .tab-btn.active i,
.update-tabs .tab-btn:hover i {
  color: #ff0000;
}

/* Hero Action Icons */
.hero-actions a i {
  font-size: 14px;
  margin-right: 4px;
  line-height: 1;
}

/* Search Bar Icon */
.search-bar i {
  font-size: 14px;
  color: #666666;
  line-height: 1;
}

/* Error / Empty State Icons */
.state-icon {
  font-size: 48px;
  color: #ff0000;
  margin-bottom: 12px;
  display: inline-block;
  line-height: 1;
}
.state-icon-muted {
  font-size: 64px;
  color: #333333;
  margin-bottom: 12px;
  display: inline-block;
  line-height: 1;
}

/* Location Icon Inline */
.location-text i,
.inline-icon {
  font-size: 13px;
  color: #ff0000;
  margin-right: 4px;
  vertical-align: middle;
  line-height: 1;
}

/* Card Header Icons */
.own-card-header i,
.info-card h3 i,
.setting-card-header i {
  font-size: 16px;
  color: #ff0000;
  line-height: 1;
}

/* Form Label Icons */
.form-group label i {
  color: #666666;
  width: 16px;
  font-size: 13px;
  text-align: center;
  line-height: 1;
}

/* Social Links (profile) Icons */
.social-btn i {
  font-size: 18px;
  color: #cccccc;
  transition: color 0.3s ease;
  line-height: 1;
}
.social-btn:hover i {
  color: #ff0000;
}

/* WhatsApp Icon */
.fa-whatsapp {
  color: inherit;
}

/* Settings / Back Buttons */
.header-back-btn i,
.header-setting-btn i,
.switch-modal-close i {
  font-size: 16px;
  line-height: 1;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.floating-whatsapp.show {
  display: flex;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}
.floating-whatsapp:active {
  transform: scale(0.98);
}
.floating-whatsapp i {
  line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 74px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}
@media (max-width: 480px) {
  .floating-whatsapp {
    bottom: 68px;
    right: 14px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* ============================================================
   HIDE OLD SVG ICONS (Fallback — Font Awesome replaces them)
   ============================================================ */
.nav-item img,
.footer-social a img,
.hero-actions img,
.tab-btn img,
.update-tabs .tab-btn img,
.search-bar img,
.social-btn img,
.own-card-header img,
.info-card h3 img {
  display: none;
}

/* ============================================================
   ⭐ NEW: VERIFICATION BADGE SYSTEM
   🔵 Verified (Blue Tick)  |  🟡 Golden (Golden Tick)
   ============================================================ */

/* ===== Base Badge Style ===== */
.verification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  vertical-align: middle;
  flex-shrink: 0;
  position: relative;
  top: -1px;
  line-height: 1;
}

.verification-badge svg,
.verification-badge img {
  width: 100%;
  height: 100%;
  display: block;
}

.verification-badge i {
  font-size: 16px;
  line-height: 1;
  display: block;
}

/* ===== Verified — Blue Tick ===== */
.verification-badge.verified {
  color: #1d9bf0;
}

.verification-badge.verified i,
.verification-badge.verified svg {
  color: #1d9bf0;
  filter: drop-shadow(0 0 3px rgba(29, 155, 240, 0.4));
}

/* ===== Golden — Golden Tick ===== */
.verification-badge.golden {
  color: #ffc107;
}

.verification-badge.golden i,
.verification-badge.golden svg {
  color: #ffc107;
  filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.5));
}

/* ===== Badge Sizes ===== */
.verification-badge.size-sm {
  width: 14px;
  height: 14px;
}
.verification-badge.size-sm i {
  font-size: 14px;
}

.verification-badge.size-md {
  width: 16px;
  height: 16px;
}
.verification-badge.size-md i {
  font-size: 16px;
}

.verification-badge.size-lg {
  width: 20px;
  height: 20px;
}
.verification-badge.size-lg i {
  font-size: 20px;
}

.verification-badge.size-xl {
  width: 26px;
  height: 26px;
}
.verification-badge.size-xl i {
  font-size: 26px;
}

/* ===== Pulse Animation ===== */
@keyframes badgeFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.verification-badge.animate {
  animation: badgeFadeIn 0.5s ease-out;
}

/* ===== Name + Badge Layout Helper ===== */
.name-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 100%;
}

.name-with-badge > span:first-child,
.name-with-badge > strong:first-child,
.name-with-badge > h1:first-child,
.name-with-badge > h2:first-child,
.name-with-badge > h3:first-child {
  word-break: break-word;
}

/* ===== Context-specific tweaks ===== */

/* Profile hero — larger badge */
.profile-hero-name-row .verification-badge,
.header-name .verification-badge,
#header-name .verification-badge {
  width: 18px;
  height: 18px;
  margin-left: 6px;
}
.profile-hero-name-row .verification-badge i,
#header-name .verification-badge i {
  font-size: 18px;
}

/* Public profile — h1 name */
#profile-name .verification-badge,
.profile-info h1 .verification-badge {
  width: 22px;
  height: 22px;
  margin-left: 8px;
}
#profile-name .verification-badge i,
.profile-info h1 .verification-badge i {
  font-size: 22px;
}

/* Marketplace cards (users.html) */
.card-name .verification-badge,
.player-card .card-name .verification-badge,
.team-card .card-name .verification-badge {
  width: 16px;
  height: 16px;
  margin-left: 5px;
}
.card-name .verification-badge i {
  font-size: 16px;
}

/* Team card header (one-line) */
.team-header .card-name .verification-badge {
  width: 15px;
  height: 15px;
}
.team-header .card-name .verification-badge i {
  font-size: 15px;
}

/* Invitation card */
.invitation-team-name .verification-badge {
  width: 15px;
  height: 15px;
  margin-left: 5px;
}
.invitation-team-name .verification-badge i {
  font-size: 15px;
}

/* Switch modal */
.switch-name .verification-badge {
  width: 13px;
  height: 13px;
  margin-left: 4px;
}
.switch-name .verification-badge i {
  font-size: 13px;
}

/* Settings summary */
.summary-name .verification-badge {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}
.summary-name .verification-badge i {
  font-size: 16px;
}

/* Admin panel — table usernames */
.table-username .verification-badge {
  width: 13px;
  height: 13px;
  margin-left: 4px;
}
.table-username .verification-badge i {
  font-size: 13px;
}

/* Admin user details modal */
.ud-username .verification-badge {
  width: 22px;
  height: 22px;
  margin-left: 8px;
}
.ud-username .verification-badge i {
  font-size: 22px;
}

/* ============================================================
   APPLY VERIFICATION BOX (Profile page)
   ============================================================ */
.apply-verification-box {
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.08), rgba(255, 193, 7, 0.06));
  border: 1px solid rgba(29, 155, 240, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}

.apply-verification-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1d9bf0, #ffc107);
  opacity: 0.7;
}

.apply-verification-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.apply-verification-header i {
  color: #1d9bf0;
  font-size: 20px;
}

.apply-verification-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.2px;
}

.apply-verification-desc {
  font-size: 13px;
  color: #aaaaaa;
  line-height: 1.6;
  margin: 0 0 14px;
}

.apply-verification-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 46px;
}

.apply-verification-btn:hover {
  background: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.apply-verification-btn:active {
  transform: translateY(0);
}

.apply-verification-btn i {
  font-size: 17px;
  line-height: 1;
}

/* Hide apply button if user already has badge */
.apply-verification-box.hidden {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .apply-verification-box {
    padding: 14px 16px;
  }
  .apply-verification-header h4 {
    font-size: 14px;
  }
  .apply-verification-desc {
    font-size: 12px;
  }
  .apply-verification-btn {
    padding: 11px 16px;
    font-size: 13px;
    min-height: 44px;
  }
}

/* END OF common.css */