/* ====== General Reset and Base Styles ====== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #1f2937; /* dark slate */
  color: #e5e7eb; /* light gray text */
  line-height: 1.5;
  padding: 20px;
}

/* ====== Container ====== */

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ====== Sorting Bar ====== */

#player-sort {
  background-color: #374151; /* dark gray bg */
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

#player-sort:hover {
  background-color: #4b5563; /* lighter gray on hover */
}

#player-sort:focus {
  outline: 2px solid #3b82f6; /* cool blue outline */
  outline-offset: 2px;
}

/* ====== Player List Styles ====== */

.player-list {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
}

.player-list th, .player-list td {
  padding: 10px 15px;
  text-align: left;
}

.player-list th {
  background-color: #111827; /* very dark */
  border-bottom: 2px solid #3b82f6;
  cursor: pointer;
  user-select: none;
}

.player-list tbody tr:nth-child(odd) {
  background-color: #374151;
}

.player-list tbody tr:nth-child(even) {
  background-color: #4b5563;
}

.player-list tbody tr:hover {
  background-color: #2563eb; /* bright blue hover */
  color: white;
}

/* ====== Buttons ====== */

button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1e40af;
}

/* ====== Responsive ====== */

@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  
  #player-sort {
    width: 100%;
  }
  
  .player-list th, .player-list td {
    padding: 8px 10px;
  }
}

/* ====== Main Content ====== */

.main-content {
  margin-left: 240px; /* makes room for sidebar */
  padding: 20px;
}

/* ====== Matches Header & Sub Buttons ====== */

.matches-header {
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  color: #e5e7eb;
}

.matches-subbtn {
  margin-left: 10px;
  margin-top: 2px;
  display: block;
  width: calc(100% - 20px);
  padding: 3px 7px;
  font-size: 0.9rem;
  border-radius: 4px;
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: background-color 0.3s ease;
}

.matches-subbtn:hover {
  background-color: #374151; /* dark hover */
}

/* ====== Fade-in Animation ====== */

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-four-highlight {
  background-color: #2563eb; /* Tailwind blue-600 */
  color: white;
}

.league-header {
  background-color: #111827; /* Very dark bg for max contrast */
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  user-select: none;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.league-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #e5e7eb; /* Light gray/white */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 0 6px rgba(229, 231, 235, 0.7);
  margin-bottom: 6px;
  font-family: 'Segoe UI Black', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.league-header p {
  color: #9ca3af; /* lighter gray */
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin: 0;
  font-style: italic;
}

/* Sidebar tweaks to fit your HTML structure */
.sidebar {
  width: 220px;
  background-color: #1f2937; /* dark slate */
  padding: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
}

/* Footer stays at bottom */
.sidebar-footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  color: #a0aec0;
}

.hover-underline {
    text-decoration: none; /* no underline by default */
    transition: text-decoration 0.3s ease; /* smooth effect */
  }

  .hover-underline:hover {
    text-decoration: underline;
  }