/* ESPN-Style Player Profile - Round League Theme */

.section {
  position: relative;
  padding: 20px 0;
}

img {
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}

/* ===== PLAYER HEADER CARD ===== */
.player-header-card {
  background: linear-gradient(135deg, #1e2a3a 0%, #2d3e50 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.player-header-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.player-photo-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.player-photo {
  width: 400px;
  height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.team-badge {
  background: #f5593d;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-info-section {
  flex: 1;
  color: #fff;
}

.player-name {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #fff;
  line-height: 1.2;
}

.player-position {
  font-size: 1rem;
  color: #f5593d;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
}

.player-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.detail-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.detail-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.detail-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* ===== SEASON STATISTICS ===== */
.stats-section {
  margin-bottom: 2rem;
}

.stats-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stats-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #403d39;
  margin: 0;
  text-align: left;
}

.stats-toggle {
  display: flex;
  background: #e8e6e3;
  border-radius: 0.5rem;
  overflow: hidden;
}

.stats-toggle-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #66615b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stats-toggle-btn.active {
  background: #f5593d;
  color: #fff;
  border-radius: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-box {
  background: #fff;
  border: 1px solid #e8e6e3;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-box:hover {
  border-color: #f5593d;
  box-shadow: 0 4px 16px rgba(245, 89, 61, 0.12);
  transform: translateY(-2px);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f5593d;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #66615b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 991px) {
  .player-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .player-info-section {
    width: 100%;
  }

  .player-details-grid {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 600px) {
  .player-header-card {
    padding: 1rem;
  }

  .player-photo {
    width: 320px;
    height: 400px;
  }

  .player-name {
    font-size: 1.5rem;
  }

  .player-position {
    font-size: 0.9rem;
  }

  .player-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .detail-box {
    padding: 0.5rem 0.75rem;
  }

  .detail-label {
    font-size: 0.6rem;
  }

  .detail-value {
    font-size: 0.85rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stats-toggle-header {
    justify-content: center;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }
}

/* ===== LEGACY STYLES FOR COMPATIBILITY ===== */
.theme-color {
  color: #f5593d;
}

.dark-color {
  color: #403d39;
}

/* ===== TABLES - GAME LOG & CAREER STATS ===== */
table.bolder {
  border: none;
  border-collapse: collapse;
  margin: 2rem auto;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

table.bolder caption {
  font-size: 1.1rem;
  font-weight: 700;
  color: #403d39;
  margin-bottom: 0;
  text-align: left;
  padding: 1rem;
  background: linear-gradient(180deg, #faf9f7 0%, #f5f4f2 100%);
  border-bottom: 3px solid #f5593d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table.bolder thead tr.headers {
  background: #403d39;
}

table.bolder thead th {
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-align: center;
  border: none;
}

table.bolder tbody tr {
  border-bottom: 1px solid #f5f4f2;
  transition: background-color 0.15s ease;
}

table.bolder tbody tr:nth-child(even) {
  background-color: #faf9f7;
}

table.bolder tbody tr:hover {
  background-color: rgba(245, 89, 61, 0.08);
}

table.bolder tbody td {
  padding: 0.75rem 0.5rem;
  color: #403d39;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

table.bolder tbody td a {
  color: #f5593d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

table.bolder tbody td a:hover {
  color: #d9442a;
  text-decoration: underline;
}

/* Season Select Dropdown */
.seasonSelect {
  padding: 8px 16px;
  border: 2px solid #f5f4f2;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #403d39;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.seasonSelect:hover,
.seasonSelect:focus {
  border-color: #f5593d;
  outline: none;
}

/* Show More Seasons Button */
#showMoreSeasonsBtn {
  background: linear-gradient(135deg, #f5593d 0%, #e04a30 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(245, 89, 61, 0.3);
}

#showMoreSeasonsBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 89, 61, 0.4);
}

/* Hidden Seasons */
.hidden-season {
  display: none !important;
}

.hidden-season.shown {
  display: table-row !important;
}

/* ===== RESPONSIVE TABLES ===== */
@media screen and (max-width: 768px) {
  table.bolder {
    font-size: 0.8rem;
  }

  table.bolder thead {
    display: none;
  }

  table.bolder tbody tr {
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #ffffff;
  }

  table.bolder tbody tr:nth-child(even) {
    background: #ffffff;
  }

  table.bolder tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    text-align: right;
    border-bottom: 1px solid #f5f4f2;
  }

  table.bolder tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #66615b;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
  }

  table.bolder tbody td:last-child {
    border-bottom: none;
  }

  /* ESPN-style highlight for points column on mobile */
  table.bolder tbody td[data-label="PTS"] {
    background: linear-gradient(135deg, #f5593d 0%, #e04a30 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 0.5rem 0.5rem;
  }

  table.bolder tbody td[data-label="PTS"]::before {
    color: rgba(255, 255, 255, 0.8);
  }

  .hidden-season.shown {
    display: block !important;
  }
}
