/* ====================
   Base Styles
==================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Open+Sans&display=swap');

body {
  margin: 0;
  font-family: 'Open Sans', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #ff4d4d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: #ff4d4d;
  transition: color 0.3s ease;
}

a:hover {
  color: #e03e3e;
}

/* ====================
   Header
==================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  padding: 0 24px;
  height: 80px;
  border-bottom: 2px solid #ff4d4d;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  user-select: none;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  font-size: 17px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #ff4d4d;
  background-color: transparent;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  background-color: #ff4d4d;
  color: #121212;
}

/* Center Draft Board title */
.nav-center {
  position: fixed;
  top: 0;
  left: 47%;
  transform: translateX(-50%);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  width: 300px;
  user-select: none;
  z-index: 101;
}

.site-title {
  font-family: 'Roboto Slab', serif;
  font-size: 36px;
  font-weight: 700;
  color: #ff4d4d;
  margin: 0;
}

/* ====================
   Dropdown
==================== */
.dropdown {
  position: relative;
}

.dropbtn {
  background-color: transparent;
  border: none;
  color: #ff4d4d;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.dropbtn:hover {
  background-color: #ff4d4d;
  color: #121212;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a1a1a;
  min-width: 180px;
  top: 45px;
  left: 0;
  border-radius: 6px;
  overflow: hidden;
  z-index: 101;
  box-shadow: 0 2px 8px rgba(255, 77, 77, 0.25);
}

.dropdown-content a {
  display: block;
  color: #ff4d4d;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.25s ease;
}

.dropdown-content a:hover {
  background-color: #ff4d4d;
  color: #121212;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ====================
   Search
==================== */
.search-box {
  position: fixed;
  top: 0;
  right: 20px;
  height: 80px;
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  padding: 0 20px 0 10px;
  border-radius: 6px;
  z-index: 101;
}

.search-box input {
  padding: 10px 20px 10px 14px;
  font-size: 15px;
  border-radius: 8px;
  border: none;
  width: 220px;
  max-width: 90vw;
  color: #121212;
  font-weight: 600;
  outline-offset: 2px;
  outline-color: #ff4d4d;
}

/* ====================
   Main Content
==================== */
.main-content {
  padding: 120px 20px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ====================
   Rounds & Tables
==================== */
#draftTablesContainer h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 26px;
  color: #ff4d4d;
  margin: 40px 0 20px 33%;
  font-weight: 700;
  text-align: left;
}

.draft-table {
  width: 100%;
  margin: 0 auto 50px;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  color: #ff4d4d;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
  border: 1px solid #ff4d4d88;
}

.draft-table thead th {
  background-color: #2c2c2c;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 2px solid #ff4d4d;

}

.draft-table td {
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1.5px solid #ffffffcc;
  color: #ffffffcc;
  user-select: text;
}

.draft-table tbody tr:nth-child(even) {
  background-color: #2b2b2b;
}

.draft-table tbody tr:hover {
  background-color: #440000;
  color: #fff1f1;
  cursor: default;
}

/* Round label inside table */
.round-label {
  font-size: 22px;
  font-weight: 700;
  color: #ff4d4dcc;
  padding: 12px 0;
  background-color: #440000;
  text-align: center;
  user-select: none;
  border-bottom: 1.5px solid #8c0000;
}

/* Remove table caption styling */
.table-caption {
  display: none;
}

/* Round label styling */
.draft-table thead th.round-label {
  font-size: 28px;
  font-weight: 900;
}

/* Column headers styling */
.draft-table thead tr:last-child th {
  font-size: 20px;
  font-weight: 900;
}


/* ====================
   Responsive
==================== */
@media (max-width: 768px) {
  .nav-left, .nav-right {
    gap: 10px;
  }

  .nav-link, .dropbtn {
    font-size: 14px;
    padding: 8px 10px;
  }

  .site-title {
    font-size: 24px;
  }

  #draftTablesContainer h2 {
    font-size: 20px;
    margin-left: 25%;
  }

  .draft-table thead th,
  .draft-table td {
    font-size: 14px;
  }

  .search-box input {
    width: 160px;
  }
}
