/* ==========================================================================
   TRAINER-PROFILE.CSS — CARD DO TREINADOR (sidebar) + PÁGINA DE PERFIL
   Modo Carreira. Criado em 27/07/2026.
   ========================================================================== */

/* ---- Foto no card da sidebar (auto-ajuste independente de tamanho/tipo) ---- */
.trainer-photo {
  overflow: hidden; position: relative;
  background: var(--pitch); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.trainer-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trainer-photo-ph { font-size: 18px; }
.trainer-eye {
  background: none; border: none; cursor: pointer; font-size: 15px;
  opacity: 0.7; margin-left: 8px; padding: 0;
}
.trainer-eye:hover { opacity: 1; }

/* ---- Página de perfil ---- */
.tp-page { max-width: 900px; }
.tp-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.tp-photo {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden;
  position: relative; cursor: pointer; flex-shrink: 0;
  background: var(--bg-3); display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--pitch);
}
.tp-photo img { width: 100%; height: 100%; object-fit: cover; }
.tp-photo-ph { font-size: 40px; }
.tp-photo-edit {
  position: absolute; bottom: 0; right: 0; background: var(--pitch); color: #fff;
  width: 26px; height: 26px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 13px;
}
.tp-head-info h2 { margin: 0 0 2px; font-size: 22px; }
.tp-head-info p { margin: 0 0 8px; color: var(--text-2); font-size: 13px; }
.tp-style { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tp-style select {
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--white); font-size: 13px;
}

/* ---- Cartel V/E/D ---- */
.tp-record { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tp-rec-item {
  flex: 1; min-width: 90px; text-align: center; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.tp-rec-item b { display: block; font-size: 26px; line-height: 1; }
.tp-rec-item span { font-size: 11px; color: var(--text-2); }
.tp-rec-w b { color: #16a34a; }
.tp-rec-d b { color: var(--gold); }
.tp-rec-l b { color: #dc2626; }

/* ---- Colunas de clubes/títulos ---- */
.tp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 700px) { .tp-cols { grid-template-columns: 1fr; } }
.tp-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; background: var(--white);
}
.tp-card-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.tp-list-item { font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.tp-empty { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

/* ---- Biografia (Hall da Fama) ---- */
.tp-bio { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--white); }
.tp-bio-sub { font-size: 12.5px; color: var(--text-2); margin: 2px 0 14px; }
.tp-bio-sec { margin-bottom: 14px; }
.tp-bio-head { font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.tp-bio-text {
  width: 100%; min-height: 64px; resize: vertical; box-sizing: border-box;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 13px; background: var(--bg-1, #fff);
}
.tp-bio-text:focus { outline: none; border-color: var(--pitch); }
