/* Página de perfil público (perfil.html?id={userId}) */

.profile-status-text {
  text-align: center;
  color: var(--text-muted, #6a6a8a);
  padding: 48px 16px;
  font-weight: 600;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.profile-header-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.profile-username {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-badge.achieved {
  background: rgba(255, 206, 61, 0.18);
  border-color: #ffce3d;
  color: #ffce3d;
}

.profile-progress-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.profile-progress-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.profile-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-progress-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 10px;
}

.profile-progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d9d5f5;
}

.profile-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.profile-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5854c1, #c2ec20);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.profile-progress-pct {
  font-size: 0.72rem;
  color: #d9d5f5;
  white-space: nowrap;
}

.profile-teams-section .results-bar {
  margin-bottom: 12px;
}

@media (max-width: 560px) {
  .profile-progress-row { grid-template-columns: 70px 1fr auto; }
  .profile-header-card { flex-direction: column; text-align: center; }
}
