/*
 * The Feeley Tour Cup — minimal overrides on top of Bootstrap 5
 */

.deadline-note { font-size: 0.9rem; color: #6c757d; }

.tabular-nums { font-variant-numeric: tabular-nums; }

/* Outer wrapper for live standings — sizes to table width so header aligns */
.live-standings-outer {
  display: inline-block;
  min-width: 60%;
  width: 100%;
}

/* Standings table wrapper — taargus-inspired */
.standings-table-wrapper {
  overflow-x: auto;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  display: inline-block;
  min-width: 60%;
}

[data-bs-theme="dark"] .standings-table-wrapper {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 0;
}

.standings-table thead {
  background-color: #f8f9fa;
}

[data-bs-theme="dark"] .standings-table thead {
  background-color: #1f1f1f;
}

.standings-table th {
  padding: 8px 10px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

[data-bs-theme="dark"] .standings-table th {
  color: #adb5bd;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.standings-table td {
  padding: 8px 10px;
  color: #212529;
  font-weight: 500;
  border-bottom: 1px solid #f1f3f5;
  white-space: nowrap;
}

[data-bs-theme="dark"] .standings-table td {
  color: #e9ecef;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .standings-table tbody tr:hover {
  background-color: #333333;
}

.standings-rank {
  font-weight: 700;
  color: #6c757d;
  display: inline-block;
  min-width: 1.5rem;
  text-align: right;
  margin-right: 0.5rem;
}

[data-bs-theme="dark"] .standings-rank {
  color: #adb5bd;
}

/* Highlight current user row */
.standings-table tbody tr.highlight td {
  background-color: #fffbeb;
}

[data-bs-theme="dark"] .standings-table tbody tr.highlight td {
  background-color: #2d2a1a;
}

/* CUT row styling */
.standings-table tbody tr.cut-row td {
  color: #dc3545;
}

[data-bs-theme="dark"] .standings-table tbody tr.cut-row td {
  color: #f87171;
}

/* WD row styling */
.standings-table tbody tr.wd-row td {
  color: #7c6f8e;
}

[data-bs-theme="dark"] .standings-table tbody tr.wd-row td {
  color: #a99dbc;
}

/* Auto-pick row styling (forgot to submit) */
.standings-table tbody tr.auto-pick-row td {
  color: #e07b00;
}

[data-bs-theme="dark"] .standings-table tbody tr.auto-pick-row td {
  color: #f5a442;
}

/* Sortable column header links */
.sort-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.sort-link:hover {
  text-decoration: underline;
  color: inherit;
}

.sort-link.sort-active {
  font-weight: 700;
}

/* Season total footer row in picks history */
.picks-total-row td {
  border-top: 2px solid #dee2e6;
  border-bottom: none;
  background-color: #f8f9fa;
  padding: 10px 14px;
}

[data-bs-theme="dark"] .picks-total-row td {
  border-top-color: rgba(255, 255, 255, 0.1);
  background-color: #1f1f1f;
}

/* Hover state for nav pills */
#mainTabs .nav-link:not(.active):hover,
#weekTabs .nav-link:not(.active):hover {
  background-color: rgba(169, 204, 232, 0.25);
}

/* Lighter active state for nav pills so colored tab labels stay readable */
#mainTabs .nav-link.active,
#weekTabs .nav-link.active {
  background-color: #a8cce8;
  color: #fff;
}

/* Tournament category color coding */
:root { --color-regular: #000000; --bar-track: #e9ecef; }
[data-bs-theme="dark"] { --color-regular: #ffffff; --bar-track: #000000; }
.tab-label-regular     { color: var(--color-regular); }
.tab-label-major       { color: #c0392b; }
.tab-label-side-event  { color: #198754; }
.tab-label-pink-event  { color: #e07ab8; }
.tab-label-first-half  { color: #F5D049; }
.tab-label-second-half { color: #D46C19; }


/* Smaller tournament pills row */
.nav-link-sm {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  line-height: 1.4;
}

/* Tournament status row tints */
tr.status-in_progress { background-color: #f0fff4; }
tr.status-completed   { color: #6c757d; }

/* Player name with pick history tooltip */
.pick-history-name {
  cursor: default;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: #adb5bd;
}

.pick-tooltip-popup {
  position: absolute;
  z-index: 1050;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  padding: 12px 16px;
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.pick-tooltip-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pick-tooltip-rank {
  font-weight: 600;
  color: #6c757d;
  font-size: 12px;
  white-space: nowrap;
}

.pick-tooltip-total {
  font-weight: 600;
  color: #198754;
  white-space: nowrap;
}

[data-bs-theme="dark"] .pick-tooltip-total {
  color: #75c98d;
}

[data-bs-theme="dark"] .pick-tooltip-popup {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e9ecef;
}

[data-bs-theme="dark"] .pick-tooltip-title {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Active nav link — slightly larger and bolder */
.navbar .nav-link-active {
  font-size: 1.05rem;
  font-weight: 600;
}

[data-bs-theme="dark"] .navbar .nav-link-active {
  color: #ffffff !important;
}

[data-bs-theme="light"] .navbar .nav-link-active,
.navbar .nav-link-active {
  color: #000000 !important;
}
