/* Team module styles - clean, minimal design */
/* Scoped to .fs2025-teams-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-teams-app,
.fs2025-teams-app * { margin: 0; padding: 0; box-sizing: border-box; }

.fs2025-teams-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-teams-app a {
  text-decoration: none;
  color: inherit;
}

.fs2025-teams-app .container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

/* ========== Header ========== */
.team-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0 0;
}

.hero-content {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.hero-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.625rem;
  padding-left: 0.125rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-weight: 600;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.5px;
}

.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);
}

.hero-record {
  font-weight: 600;
  color: var(--text-dark);
}

.hero-separator { opacity: 0.4; }

.conf-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  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;
}

/* Header Tabs */
.hero-tabs {
  display: flex;
  gap: 0;
  margin-top: 1rem;
}

.hero-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.hero-tab:hover {
  color: var(--text-dark);
}

.hero-tab.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

/* ========== Main Content ========== */
.main-content {
  padding: 1.5rem 0 3rem;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ========== Stats Section ========== */
.stats-section {
  background: var(--white);
  border: 1px solid var(--border-light);
}

.stats-header {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}

.stats-main-tabs {
  display: flex;
  border-right: 1px solid var(--border-light);
}

.stats-main-tab {
  background: transparent;
  border: none;
  padding: 0.625rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.stats-main-tab:hover {
  background: var(--bg-light);
}

.stats-main-tab.active {
  color: var(--primary-red);
  background: var(--bg-light);
}

.stats-sub-tabs {
  display: flex;
}

.stats-sub-tab {
  background: transparent;
  border: none;
  padding: 0.625rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.stats-sub-tab:hover {
  color: var(--text-dark);
}

.stats-sub-tab.active {
  color: var(--text-dark);
  font-weight: 600;
}

/* Stats Table */
#statsContent {
  width: 100%;
}

.stat-table-card {
  width: 100%;
}

.stat-table-header { display: none; }

.stat-table-wrapper {
  overflow-x: auto;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.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 .player-name {
  font-weight: 500;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.stat-table .player-name a {
  color: var(--text-dark);
  text-decoration: none;
}

.stat-table .player-name a:hover {
  color: var(--primary-red);
}

.stat-table .pos-badge {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  width: 40px;
}

.stat-glossary {
  padding: 0.75rem;
  background: var(--white);
  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);
}

.jersey-badge { display: none; }

.no-data-message {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Hide the old category pills */
.stats-category-pills { display: none; }
.stats-tables-grid { display: block; }

/* ========== Roster Tab ========== */
.player-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-light);
  outline: none;
  background: var(--white);
}

.search-input:focus {
  border-color: var(--text-muted);
}

.sort-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-light);
  background: var(--white);
  cursor: pointer;
}

.table-wrapper {
  border: 1px solid var(--border-light);
  overflow-x: auto;
  background: var(--white);
}

.player-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.player-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;
}

.player-table th:first-child {
  width: 40px;
}

.player-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.player-table tbody tr:hover {
  background: var(--bg-light);
}

.position-badge {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
}

.jersey-num {
  font-weight: 600;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

.class-badge {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-cell {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: -0.01em;
}

.position-group-header {
  background: var(--bg-light);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.player-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}

.player-link:hover {
  color: var(--primary-red);
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.team-logo-small {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero-content {
    flex-wrap: wrap;
  }
  
  .hero-logo {
    width: 56px;
    height: 56px;
  }
  
  .hero-title { font-size: 1.25rem; }
  .hero-stats { gap: 0.5rem; }
  .hero-stat-value { font-size: 0.6875rem; }
  
  .stat-table .player-name {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }
  
  .hero-right {
    width: 100%;
    order: -1;
    margin-bottom: 0.5rem;
  }
  
  .breadcrumb {
    font-size: 0.6875rem;
  }
  
  .stats-header {
    flex-direction: column;
  }
  
  .stats-main-tabs {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  
  .position-group-header {
    font-size: 0.625rem;
  }
}
