/* profile.css — pagina /perfil (era a modal de perfil da home, agora pagina).
   O card, o medidor de forca da senha e o formulario de troca de senha
   Vieram do bloco "=== Perfil ===" do index.css. */

main { max-width: 720px; }

input {
  width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; color: var(--t); font-size: 14px; outline: none;
}
input:focus { border-color: var(--accent); }

.status { margin-top: 12px; color: var(--muted); min-height: 20px; font-size: 13px; }
.err { color: var(--bad); font-size: 13px; margin-top: 10px; text-align: center; }
.ok { color: var(--good); font-size: 13px; margin-top: 10px; text-align: center; }

button.link-btn {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-weight: 700; padding: 0; font-size: 12px;
}
button.link-btn:hover { text-decoration: underline; }

/* Sem sessao */
.profile-guest {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; text-align: center;
}
.profile-guest p { margin: 0; color: var(--muted); }
.profile-guest a { color: var(--accent); font-weight: 700; text-decoration: underline; }

.profile-page {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111; font-weight: 900; font-size: 26px;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(245,166,35,.3);
}
.profile-name { margin: 0; font-size: 18px; font-weight: 700; }
.profile-email { margin: 3px 0 0; color: var(--muted); font-size: 12px; word-break: break-all; }
.profile-link { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; }

.profile-stats {
  display: flex; align-items: stretch; gap: 0;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin-bottom: 22px;
}
.stat { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-num { font-size: 20px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--muted); }
.stat-sep { width: 1px; background: var(--line); margin: 4px 0; }

/* Banner de e-mail nao confirmado */
.profile-verify {
  background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.4);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 22px;
}
.profile-verify strong { color: var(--accent); }
.profile-verify a { color: var(--accent); font-weight: 700; text-decoration: underline; }

.profile-section { margin-bottom: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.section-head h4 { margin: 0; font-size: 14px; font-weight: 700; }
.section-hint { font-size: 11px; color: var(--muted); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 4px; border-radius: 6px; display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--accent); background: rgba(245,166,35,.1); }
.pw-toggle svg { display: block; }
.pw-meter { display: flex; gap: 6px; margin-top: 8px; height: 4px; }
.pw-hint { display: block; font-size: 11px; margin-top: 6px; }
.pw-meter i { flex: 1; border-radius: 999px; background: var(--line); transition: background .2s; }
.pw-meter.weak i { background: var(--bad); }
.pw-meter.fair i { background: #f5a623; }
.pw-meter.good i { background: #4ade80; }
.pw-meter.strong i { background: #22c55e; }
.pw-meter.good i:nth-child(-n+3), .pw-meter.strong i { background: inherit; }
.pw-hint { display: block; font-size: 11px; margin-top: 6px; }

.btn-primary {
  width: 100%; padding: 11px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111; font-weight: 800; font-size: 14px; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* Steam conectada: avatar + nome do jogador, com o botao de desconectar
   (.steam-btn e do base.css, compartilhado com o /entrar). */
.steam-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.steam-connected-name { font-weight: 700; font-size: 14px; }
.steam-unlink-btn {
  width: 100%; padding: 10px; background: var(--card-2); color: var(--bad);
  border: 1px solid var(--line); border-radius: 10px; font-weight: 700;
  font-size: 13px; cursor: pointer;
}
.steam-unlink-btn:hover { border-color: var(--bad); }
#profileSteamStatus:not(:empty) { margin-top: 10px; }
#profileSteamStatus.ok { color: var(--good); }
#profileSteamStatus.err { color: var(--bad); }

.logout-btn {
  width: 100%; margin-top: 10px; padding: 10px; background: var(--card-2); color: var(--bad);
  border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.logout-btn:hover { border-color: var(--bad); }

@media (max-width: 720px) {
  .profile-page { padding: 18px 16px; }
  .profile-head { gap: 12px; }
  .profile-avatar { width: 52px; height: 52px; font-size: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}
