/* Player module styles - clean, minimal design matching teams module */
/* Scoped to .fs2025-players-app to avoid WordPress theme conflicts */

:root {
  --primary-red: #99002E;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --border-light: #e5e5e5;
  --bg-light: #f8f8f8;
  --bg-page: #f0f1f3;
  --white: #fff;
}

.fs2025-players-app,
.fs2025-players-app * { margin: 0; padding: 0; box-sizing: border-box; }

.fs2025-players-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-page);
}

.fs2025-players-app a {
  text-decoration: none;
  color: inherit;
}

.fs2025-players-app .container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

/* ========== Header / Hero ========== */
.player-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.hero-content {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Hero stats grid - below team logo */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  min-width: 120px;
  margin-top: 0.5rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-light);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--border-light);
}

.hero-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 6px;
  border: 1px solid var(--border-light);
}

.hero-info {
  flex: 1;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.hero-meta a:hover {
  color: var(--primary-red);
}

.hero-separator { opacity: 0.4; }

.conf-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.team-logo-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Player details row */
.hero-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.position-badge {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.class-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}

.jersey-badge {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.physical-stats {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
}

.hero-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-red);
}

.breadcrumb-sep {
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

/* ========== Main Content ========== */
.main-content {
  padding: 1.5rem 0 3rem;
}

/* ========== Charts Grid ========== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 1rem;
  position: relative;
}

/* Coming Soon Overlay */
.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(128, 128, 128, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.coming-soon-text {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-section {
  position: relative;
}

.chart-card.full-width {
  grid-column: span 2;
}

.chart-header {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.chart-header h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.chart-header .helper {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.chart-container {
  position: relative;
  height: 200px;
  width: 100%;
}

/* ========== Stats Table ========== */
.stats-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  margin-top: 1rem;
}

.stat-table-wrapper {
  overflow-x: auto;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.stat-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.stat-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.stat-table tbody tr:hover {
  background: var(--bg-light);
}

.stat-table .stat-name {
  font-weight: 500;
}

.stat-table .stat-value {
  font-weight: 600;
  color: var(--primary-red);
}

.stat-table .stat-positive {
  color: #00853E;
  font-weight: 600;
}

.stat-table .stat-negative {
  color: var(--text-muted);
}

.elite-indicator {
  font-size: 0.625rem;
  margin-left: 0.375rem;
}

.elite-indicator.positive {
  color: #00853E;
}

.elite-indicator.negative {
  color: var(--text-muted);
}

/* Stat Glossary */
.stat-glossary {
  padding: 0.75rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  font-size: 0.625rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.stat-glossary-item {
  white-space: nowrap;
}

.stat-glossary-item strong {
  font-weight: 600;
  color: var(--text-dark);
}

/* ========== Player Badges ========== */
.player-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.badge {
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge.elite {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  border-color: transparent;
}

.badge.workhorse {
  background: var(--primary-red);
  color: var(--white);
  border-color: transparent;
}

/* ========== No Data ========== */
.no-data-message {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero-content {
    flex-wrap: wrap;
  }
  
  .hero-logo {
    width: 72px;
    height: 72px;
  }
  
  .hero-title { font-size: 1.25rem; }
  
  .hero-right {
    width: 100%;
    order: -1;
    margin-bottom: 0.5rem;
    align-items: flex-start;
  }
  
  .breadcrumb {
    font-size: 0.6875rem;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-card.full-width {
    grid-column: span 1;
  }
  
  .hero-details {
    gap: 0.5rem;
  }
  
  .chart-container {
    height: 180px;
  }
}
