/* ── Player Profile Component ───────────────────────────────────────────────── */

.pp-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #1a202c;
}

/* ── Search bar ─────────────────────────────────────────────────────────────── */
.pp-search-bar {
  background: #1e3a5f;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.pp-search-label {
  display: block;
  color: #90cdf4;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.pp-search-field-wrap {
  position: relative;
}
.pp-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #2d5282;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  color: #1a202c;
  box-sizing: border-box;
  outline: none;
}
.pp-search-input:focus {
  border-color: #63b3ed;
  box-shadow: 0 0 0 3px rgba(99,179,237,0.3);
}
.pp-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0; padding: 4px 0;
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
}
.pp-suggestions li {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #1e3a5f;
}
.pp-suggestions li:hover,
.pp-suggestions li.pp-active {
  background: #ebf8ff;
  color: #1e3a5f;
}

/* ── Profile header ─────────────────────────────────────────────────────────── */
.pp-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5282 100%);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.pp-header-name {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pp-header-pos {
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  color: #90cdf4;
  padding: 3px 10px;
  border-radius: 20px;
}
.pp-badge {
  background: #63b3ed;
  color: #1a202c;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Stats grid ─────────────────────────────────────────────────────────────── */
.pp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.pp-stat-card {
  background: #fff;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pp-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 4px;
}
.pp-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #718096;
  font-weight: 600;
}

/* ── Scouting notes ─────────────────────────────────────────────────────────── */
.pp-notes-section {
  margin-top: 8px;
}
.pp-notes-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e3a5f;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #bee3f8;
}
.pp-note-card {
  background: #fff;
  border: 1px solid #bee3f8;
  border-left: 4px solid #63b3ed;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pp-note-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.pp-note-type {
  background: #ebf8ff;
  color: #2b6cb0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 20px;
}
.pp-note-meta {
  font-size: 12px;
  color: #718096;
  flex: 1;
}
.pp-note-id {
  font-size: 11px;
  color: #a0aec0;
  margin-left: auto;
}
.pp-note-body {
  font-size: 14px;
  line-height: 1.65;
  color: #2d3748;
}

/* ── Empty state ────────────────────────────────────────────────────────────── */
.pp-empty {
  text-align: center;
  padding: 48px 24px;
  color: #718096;
  font-size: 15px;
}
.pp-no-notes {
  color: #a0aec0;
  font-style: italic;
  font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .pp-header-name { font-size: 20px; }
  .pp-stats-grid  { grid-template-columns: repeat(2, 1fr); }
}
