/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #125740;
  color: #ffffff;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header (shared with other position pages) ---------- */
.page-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.back-link {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.page-title {
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.position-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.position-link {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.position-link:hover {
  opacity: 0.9;
}

.position-link.active {
  opacity: 1;
  border-bottom-color: #f2c94c;
}

/* ---------- Layout ---------- */
.sc-layout {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sc-note {
  font-family: 'Anton', sans-serif;
  text-transform: none;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  opacity: 0.7;
  max-width: 800px;
}

.sc-note-link {
  color: #f2c94c;
  opacity: 1;
}

.sc-note-dash {
  color: #f2c94c;
  opacity: 1;
}

/* ---------- Table wrap (scrolls both ways, keeps header + name sticky) ---------- */
.sc-table-wrap {
  width: 100%;
  max-height: 75vh;
  overflow: auto;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.sc-table {
  border-collapse: collapse;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}

.sc-table th,
.sc-table td {
  padding: 0.55rem 0.75rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.sc-table thead th {
  background: #0e4934;
  position: sticky;
  top: 0;
  z-index: 3;
  letter-spacing: 0.03em;
}

.sc-thead-row2 th {
  z-index: 3;
}

.sc-th-player {
  text-align: left;
}

.sc-th-week,
.sc-th-total {
  font-size: 0.8rem;
  opacity: 0.9;
}

.sc-th-total {
  color: #f2c94c;
}

.sc-th-sub {
  opacity: 0.6;
  font-size: 0.62rem;
}

.sc-th-total-sub {
  color: #f2c94c;
  opacity: 0.85;
}

/* ---------- Sticky player-name column ---------- */
.sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #125740;
  text-align: left;
  border-right: 2px solid rgba(255, 255, 255, 0.25);
}

.sc-table thead th.sticky-col {
  background: #0e4934;
}

/* Corner cells (sticky on both axes) need to sit above every other sticky
   header/column cell so scrolled content never bleeds through them. */
.sc-table thead th.sticky-corner {
  z-index: 5;
}

.sc-name-cell {
  min-width: 170px;
}

.sc-player-btn {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.sc-player-link {
  color: #f2c94c;
  transition: opacity 0.15s ease;
}

.sc-player-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.sc-player-noLink {
  color: #ffffff;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.sc-player-noLink:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Weekly snap-log pop-up ---------- */
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 19, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.sc-modal-overlay[hidden] {
  display: none;
}

.sc-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 85vh;
  background: #0e4934;
  border: 2px solid rgba(242, 201, 76, 0.3);
  border-radius: 14px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.sc-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s ease;
}

.sc-modal-close:hover {
  color: #ffffff;
}

.sc-modal-group {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #f2c94c;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.sc-modal-title {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.sc-modal-table-wrap {
  overflow-y: auto;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.sc-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
}

.sc-modal-table th,
.sc-modal-table td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-modal-table thead th {
  position: sticky;
  top: 0;
  background: #0e4934;
  opacity: 0.7;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sc-modal-table td:first-child,
.sc-modal-table th:first-child {
  text-align: left;
}

.sc-modal-total-row td {
  color: #f2c94c;
  background: rgba(242, 201, 76, 0.08);
  font-weight: normal;
}

.sc-modal-empty {
  opacity: 0.7;
  font-size: 0.75rem;
  padding: 1rem 0.75rem;
}

.sc-modal-cardlink {
  display: inline-block;
  align-self: center;
  color: #f2c94c;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: opacity 0.15s ease;
}

.sc-modal-cardlink[hidden] {
  display: none;
}

.sc-modal-cardlink:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ---------- Group divider rows ---------- */
.sc-group-row td {
  background: rgba(242, 201, 76, 0.12);
  color: #f2c94c;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
}

/* ---------- Body rows ---------- */
.sc-table tbody tr:not(.sc-group-row):nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.sc-table tbody tr:not(.sc-group-row):nth-child(even) td.sticky-col {
  background: #163f30;
}

.sc-total-cell {
  color: #f2c94c;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .sc-layout {
    padding: 1.25rem;
  }

  .sc-table th,
  .sc-table td {
    padding: 0.45rem 0.55rem;
    font-size: 0.68rem;
  }

  .sc-name-cell {
    min-width: 130px;
  }
}

/* ---------- Player Stats dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 0.2rem;
  margin: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.nav-dropdown-trigger:hover {
  opacity: 0.9;
}

.nav-dropdown-trigger.active {
  opacity: 1;
  border-bottom-color: #f2c94c;
}

.nav-dropdown-caret {
  font-size: 0.7em;
  line-height: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.9rem;
  background: #0e4934;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  min-width: 200px;
  max-width: calc(100vw - 2rem);
  z-index: 30;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-link {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
  padding: 0.55rem 0.75rem;
  border-radius: 5px;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.nav-dropdown-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-link.active {
  opacity: 1;
  color: #f2c94c;
}

.nav-dropdown-trigger:focus-visible,
.nav-dropdown-link:focus-visible {
  outline: 2px solid #f2c94c;
  outline-offset: 2px;
}


