/* wins.css */
body {
  background-color: #121212;
  color: #f0f4ff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #1a1a2e;
  padding: 20px 40px;
  border-bottom: 2px solid #3b82f6;
}

.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.league-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 34px;
  font-weight: 700;
  color: #3b82f6;
  white-space: nowrap;
}

.logo img.logo-img {
  height: 60px;
  border-radius: 5px;
}

/* ===== Hamburger and menu ===== */
.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle div {
  width: 26px;
  height: 3px;
  background-color: #3b82f6;
  transition: transform .3s ease, opacity .3s ease;
}

/* Dropdown menu hidden by default */
.navbar .nav-links {
  display: none !important;
  position: absolute;
  top: 42px;
  right: 40px;
  background-color: #1a1a2e;
  border: 1px solid #0614d9;
  border-radius: 10px;
  flex-direction: column;
  width: 220px;
  padding: 10px 0;
  box-shadow: 0 8px 16px rgba(27, 6, 217, 0.35);
  z-index: 1000;
}

.navbar .nav-links a {
  display: block;
  padding: 12px 16px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}

.navbar .nav-links a:hover {
  background-color: rgba(251, 191, 36, 0.12);
  color: #ffffff;
}

.navbar .nav-links.show {
  display: flex !important;
}

/* Animate hamburger to X when open */
.menu-toggle.active div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active div:nth-child(2) { opacity: 0; }
.menu-toggle.active div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-content {
  padding: 60px 20px;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 48px;
  color: #3b82f6;
}

.features {
  display: flex;
  justify-content: center;
}

.card {
  background-color: #1e1e2e;
  border: 1px solid #3b82f6;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #f0f4ff;
  font-size: 18px;
}

thead {
  background-color: #3b82f6;
  color: #121212;
  font-size: 22px;
}

th, td {
  padding: 12px;
  text-align: left;
}

th:last-child {
  text-align: right;
}

td:last-child {
  text-align: right;
}

tbody tr:nth-child(even) {
  background-color: #202030;
}

tbody tr:hover {
  background-color: #2a2a4a;
}

.error {
  color: red;
  text-align: center;
  padding: 12px;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #888;
  border-top: 1px solid #3b82f6;
  margin-top: 60px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-title { font-size: 24px; }
  .navbar .nav-links { right: 20px; }
}

@media (max-width: 480px) {
  .page-title { font-size: 20px; }
  .hero h1 { font-size: 22px; }

  .records-table,
  table {
    font-size: 12px;
    min-width: unset;
    width: 100%;
    margin: 0 auto;
  }

  th, td { padding: 6px 8px; }
}

/* red numbers for managers no longer in league */
.inactive {
  color: #ef4444;
  font-weight: bold;
}
