/* Trainer Profile Page */

.profile-page {
  min-height: calc(100vh - 90px);
  padding: 2.5rem 1.5rem 4rem;
  background: var(--app-background);
  color: #f8fafc;
}

.profile-page .container {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.profile-header {
  margin-bottom: 2rem;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.profile-username {
  margin: 0.15rem 0 0;
  color: var(--app-muted);
  font-size: 0.95rem;
}

.profile-bio {
  max-width: 60ch;
  margin: 0.9rem 0 0;
  color: #dce7f6;
  line-height: 1.55;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0.75rem 0 1.25rem;
  color: var(--app-muted);
  font-size: 0.95rem;
}

.profile-stats strong {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.profile-follow-button {
  min-height: 42px;
  padding: 0.55rem 1.4rem;
  border: 2px solid #0866d5;
  border-radius: 999px;
  background: #0866d5;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-follow-button:hover {
  background: #0a5ec0;
}

.profile-follow-button.is-following {
  background: transparent;
  border-color: var(--app-border-strong);
  color: #f8fafc;
}

.profile-follow-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.profile-follow-signin {
  color: var(--app-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.profile-follow-signin:hover {
  color: var(--app-blue);
  text-decoration: underline;
}

.profile-empty {
  margin: 0;
  padding: 2rem 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-panel);
  color: var(--app-muted);
  text-align: center;
}
