/* ==========================================================================
   Team & Player Analytics Styles
   ========================================================================== */

/* Profile Header Card (Common for Team & Player) */
.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.profile-main-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card-elevated);
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.profile-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-rating-badge {
  font-size: 14px;
  font-weight: 800;
  color: #04140A;
  background: var(--accent-primary);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

/* 6 or 8 Metric Stat Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.metric-val.accent {
  color: var(--accent-primary);
}

/* Radar & Tactical Visuals 2-Col Grid */
.visuals-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.chart-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.radar-canvas-container {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-heatmap-container {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--bg-card-elevated);
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive Pitch Markings */
.pitch-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Squad / Player Table */
.data-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.squad-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.squad-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-card-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.squad-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.squad-table tr:hover td {
  background: var(--bg-card-hover);
}

.player-squad-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-squad-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
