:root {
  --sidebar-width: 168px;
}

/* === ESEA Content Wrapper === */
.esea-page-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  flex-shrink: 0;
}

.esea-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  margin: 10px auto;
  padding-top: 0;
  background-color: var(--background-light1);
  border-radius: var(--border-radius);
  overflow: hidden;
  min-width: 0;
}

#season-content {
  padding-inline: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === ESEA Season navbar === */
#seasonBanner {
  width: 100%;
  height: auto;
  max-height: 200px; 
  object-fit: cover;
}

.season-nav-box {
  display: flex;
  justify-content: center;
  width: 100%;

  background: var(--background-dark1);
  border-block: 1px solid var(--border);
}

.season-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  padding-left: 0;
  list-style-type: none;
  margin-block: 0;
}

.nav-item {
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: row;

  height: 35px;

  cursor: pointer;

  gap: 0.5rem;
  padding-inline: 10px;

  border-inline: 1px solid var(--border);

  background-color: var(--secondary-dark4);

  transition: background 0.2s ease;
}
.nav-item:hover {
  background-color: var(--secondary);
}
.nav-item.active {
  background-color: var(--accent) !important;
}
.nav-item.active:hover {
  background-color: var(--accent);
}

.nav-item span {
  white-space: nowrap;
}

.nav-badge {
  background-color: var(--secondary-light2);
  color: var(--text);
  font-size: 0.675em;
}

#eseaDropdown {
  flex-grow: 1;
  position: relative;
}

#DropdownBtn {
  width: 80px;
  flex-shrink: 0;
}

#DropdownMenu {
  display: block;
  background-color: var(--background);
  border: 1px solid var(--border);
  width: 100%;
  min-width: 0;
  max-height: 0;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  position: absolute;
  top: 100%;
  overflow: hidden;
  box-shadow: none;
  z-index: 10;
  transition: max-height 0.2s ease;
}
#DropdownMenu.show {
  max-height: 500px;
  box-shadow: 0px 5px 5px rgba(0,0,0,0.2);
}

#DropdownMenu li {
  border: 0;
  width: 100%;
}

@media screen and (max-width: 992px) {
  .esea-wrapper {
    width: calc(100% - var(--sidebar-width));
    margin: 0;
    border-radius: 0;
  }
}

@media screen and (max-width: 768px) {
  .esea-wrapper {
    width: 100%;
  }
}