/* ================================================
   AD-SENSE — Profile UI
   Profile button, popover, avatars, user display
   ================================================ */

/* ─── Profile Button ─── */
.profile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-btn:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow-purple);
}

/* ─── Profile Popover ─── */
.profile-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}

.profile-popover.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ─── Guest Profile ─── */
.profile-popover .guest-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 12px;
}

.profile-popover .guest-name {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.profile-popover .guest-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-popover .guest-stats {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

/* ─── User Profile ─── */
.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.user-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

.user-label {
  color: var(--accent-purple);
  font-size: 12px;
  font-weight: 500;
}

/* ─── Stats ─── */
.profile-popover .stat-item {
  text-align: center;
}

.profile-popover .stat-value {
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-popover .stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
