/* ============================================================
   Panel del Alumno — pm-dashboard
   ============================================================ */

/* Grid responsivo de botones */
.pm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pm-grid .pm-card {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .pm-grid .pm-card {
    flex: 0 1 calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .pm-grid .pm-card {
    flex: 0 1 calc(25% - 12px);
  }
}

.pm-grid .pm-card:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

/* Toolbar */
.pm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 779px) {
  .pm-toolbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }
}

/* Botón cerrar sesión */
.pm-logout {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

.pm-logout:hover {
  filter: brightness(0.98);
}

/* Grid de estadísticas */
.pm-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.pm-stats-grid .pm-stat-card {
  flex: 1 1 120px;
  max-width: 160px;
}

/* Secciones con título dorado */
.pm-player-section {
  margin: 32px 0;
}

.pm-stats-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #d1af50;
}

/* Layout carta + stats */
.pm-player-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.pm-carta-col img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: block;
}

/* Botón descargar carta */
.pm-carta-download {
  display: block;
  margin-top: 12px;
  padding: 9px 16px;
  background: #d1af50;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: filter .15s ease;
}

.pm-carta-download:hover {
  filter: brightness(0.9);
  color: #fff;
}

.pm-stats-col {
  width: 100%;
}

/* Layout info + avatar */
.pm-info-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pm-info-table-wrap {
  width: 100%;
}

.pm-info-avatar-wrap {
  text-align: center;
}

.pm-info-avatar-wrap img {
  max-width: 140px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 3px solid #d1af50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* Notas del entrenador */
.pm-notes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pm-note-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #d1af50;
  border-radius: 10px;
  padding: 16px 18px;
}

.pm-note-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pm-note-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pm-note-author {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  line-height: 1.2;
}

.pm-note-date {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.pm-note-body {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
}

.pm-note-body p:first-child { margin-top: 0; }
.pm-note-body p:last-child  { margin-bottom: 0; }

.pm-notes-empty {
  color: #6b7280;
  font-size: 15px;
  padding: 14px 0;
}

/* Desktop */
@media (min-width: 640px) {
  .pm-player-section {
    margin: 46px 0;
  }

  .pm-player-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .pm-carta-col {
    flex: 0 0 auto;
  }

  .pm-carta-col img {
    max-width: 240px;
  }

  .pm-stats-col {
    flex: 1;
    width: auto;
  }

  .pm-info-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .pm-info-table-wrap {
    flex: 3;
    width: auto;
  }

  .pm-info-avatar-wrap {
    flex: 1;
  }

  .pm-info-avatar-wrap img {
    max-width: 160px;
  }
}
