/* ===========================
   Verified User Badge
   =========================== */

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1DA1F2;
  color: #fff;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  flex-shrink: 0;
  cursor: default;
  position: relative;
}

.verified-badge i {
  line-height: 1;
}

/* --- Sizes --- */
.verified-badge-sm {
  width: 16px;
  height: 16px;
  font-size: 8px;
}

.verified-badge-md {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.verified-badge-lg {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

/* --- Tooltip --- */
.verified-badge[title] {
  position: relative;
}

.verified-badge::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.verified-badge::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.verified-badge:hover::after,
.verified-badge:hover::before {
  opacity: 1;
}

/* --- Verified status on profile --- */
.verified-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #1DA1F2;
  margin-top: 4px;
}

.verified-status i {
  font-size: 0.9rem;
}

.verified-status .verified-date {
  color: var(--text-muted, #8896a4);
  font-size: 0.8rem;
}

/* --- Get Verified CTA --- */
.get-verified-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #1DA1F2, #0d8de0);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 6px;
}

.get-verified-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
  color: #fff;
  text-decoration: none;
}

.get-verified-cta i {
  font-size: 0.75rem;
}

/* --- Verified filter toggle --- */
.verified-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.verified-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary, #555);
  user-select: none;
}

.verified-filter input[type="checkbox"] {
  accent-color: #1DA1F2;
  width: 16px;
  height: 16px;
}

.verified-filter .filter-badge-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1DA1F2;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 8px;
}

/* --- Dark mode --- */
@media (prefers-color-scheme: dark) {
  .verified-badge {
    background: #1DA1F2;
    box-shadow: 0 0 0 2px var(--surface, #1e1e1e);
  }

  .verified-status {
    color: #4db8ff;
  }

  .get-verified-cta {
    background: linear-gradient(135deg, #1DA1F2, #0a7ec5);
  }
}

/* --- Mobile adjustments --- */
@media (max-width: 375px) {
  .verified-badge-lg {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .get-verified-cta {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}
