/* standingsschedules.css */
/* Import base styling */
@import url("../css/style.css");

/* ===================================== */
/* Standings & Schedules specific tweaks */
/* ===================================== */

/* General Table Styling */
.standings-table {
  width: 95%;
  margin: 2rem auto;
  border-collapse: collapse;
  font-family: 'Open Sans', sans-serif;
  background-color: #121212;
  color: #eee;
  border: 1px solid #1e1e1e;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  border-radius: 10px;
  overflow: hidden;
}

/* Header */
.standings-table thead tr {
  background-color: #0a0a0a;
  border-bottom: 2px solid #0B6623;
}

.standings-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: #0B6623;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table Rows */
.standings-table td {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid #1f1f1f;
}

/* Alternate Row Background */
.standings-table tbody tr:nth-child(even) {
  background-color: #1a1a1a;
}

/* Hover Effect */
.standings-table tbody tr:hover {
  background-color: #002d44;
  color: #fff;
  transition: all 0.25s ease;
}

/* === Team Divider === */
/* Apply to the row before a new team section starts */
.team-divider {
  height: 4px;
  background: linear-gradient(#0B6623);
  border: none;
}

/* === Section Titles (like "Team Players") === */
.section-title {
  text-align: left;
  width: 95%;
  margin: 3rem auto 1rem;
  color: #00b7ff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  font-size: 1.3rem;
  border-left: 4px solid #00b7ff;
  padding-left: 8px;
}

th {
  cursor: pointer;
  user-select: none;
  position: relative;  /* needed for absolute arrow */
  padding-right: 20px; /* space for arrow */
  transition: all 0.2s ease;
}

th:hover {
  color: #00b7ff;
  text-decoration: underline;
}

/* Arrow container */
th.asc::after,
th.desc::after {
  content: '';
  position: absolute;
  right: 4px; 
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: #00b7ff;
}

/* Specific arrow content */
th.asc::after { content: '▲'; }
th.desc::after { content: '▼'; }

/* Highlight sorted column */
th.sorted {
  background-color: #002d44;
  color: #00b7ff;
}

.standings-table {
  display: block;
  overflow-x: auto;
}

.standings-table td:hover,
.standings-table td:hover ~ td {
  background-color: rgba(0, 183, 255, 0.1);
}
    th {
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
    }
    th:hover {
      color: #00b7ff;
      text-decoration: underline;
    }
    th.asc::after { content: " ▲"; font-size: 0.7rem; color: #00b7ff; }
    th.desc::after { content: " ▼"; font-size: 0.7rem; color: #00b7ff; }
    th.sorted {
      background-color: #002d44;
      color: #00b7ff;
    }


.download-btn {
  display: inline-block;
  padding: 10px 20px;
 background: linear-gradient(90deg, #0B6623,  #1A4E8A);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.download-btn:hover {
  transform: scale(1.01);
  background-color: #00b7ff;
}



/* Pool ball realism enhancement */
.ball {
  --size: 36px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c) 0%, #000 90%);
  transform: translate(var(--x), var(--y)) scale(0.8);
  animation: assemble 1.2s ease forwards;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.6);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.25),
    inset 0 -2px 8px rgba(0,0,0,0.5),
    0 2px 3px rgba(0,0,0,0.6);
}

/* Add glossy highlight */
.ball::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.6), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-15deg);
}

/* White circle number area */
.ball::after {
  content: attr(data-num);
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
