/* Unified lock for Battle header/nav/footer across all Battle pages. */

.battle-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: linear-gradient(145deg, rgba(7, 13, 29, 0.96), rgba(3, 8, 20, 0.96)) !important;
  border-bottom: 1px solid rgba(255, 59, 68, 0.28) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(8px);
}

/* Prevent generic theme rules (header/.navbar/nav) from changing Battle nav layout. */
.battle-header .navbar,
.battle-header nav {
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.battle-header,
.battle-header .container,
.battle-header .container-fluid,
.battle-header .battle-topbar,
.battle-header .navbar,
.battle-header nav,
.battle-header .navbar-collapse,
.battle-header .battle-nav-list,
.battle-header .battle-nav-list .nav-item {
  overflow: visible !important;
}

.battle-header .battle-topbar {
  min-height: 68px;
  gap: 0.7rem;
}

.battle-header > .container {
  max-width: 1320px !important;
  margin-inline: auto;
}

.battle-header .battle-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  font-family: "Exo 2", "Segoe UI", sans-serif !important;
}

.battle-header .battle-brand-logo {
  width: auto !important;
  max-width: none !important;
  height: 34px !important;
  object-fit: contain;
}

.battle-header .battle-brand-copy {
  line-height: 0.9;
}

.battle-header .battle-brand-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  font-family: "Exo 2", "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
}

.battle-header .battle-brand-title {
  font-size: 1.22rem !important;
  letter-spacing: 0.08em;
  font-family: "Exo 2", "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
}

.battle-header .navbar-collapse {
  justify-content: flex-end;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.battle-header .battle-nav-list {
  gap: 0.26rem;
  flex-wrap: nowrap !important;
}

.battle-header .battle-nav-list .nav-link {
  position: relative;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.35rem 0.1rem !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.86rem !important;
  font-family: "Inter", "Segoe UI", sans-serif !important;
  color: #d4e4ff !important;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.battle-header .battle-nav-list .nav-link:hover,
.battle-header .battle-nav-list .nav-link:focus,
.battle-header .battle-nav-list .nav-link.active {
  background: transparent !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: none;
  opacity: 1;
}

.battle-header .battle-nav-list .nav-link::after {
  display: none !important;
}

.battle-header .battle-nav-list .nav-link.highlight {
  border: 1px solid rgba(255, 59, 68, 0.55) !important;
  background: linear-gradient(135deg, rgba(57, 14, 19, 0.9), rgba(30, 8, 11, 0.9)) !important;
  color: #ffd6d8 !important;
}

.battle-header .battle-nav-list .nav-link.highlight::after {
  display: none !important;
}

.battle-header .navbar-toggler {
  border: 1px solid rgba(69, 215, 255, 0.4) !important;
}

.battle-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(69, 215, 255, 0.25) !important;
}

.battle-header .dropdown-menu {
  border: 1px solid rgba(93, 133, 177, 0.35);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(3, 24, 43, 0.96), rgba(5, 18, 34, 0.97));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.battle-header .lang-dropdown,
.battle-header .lang-dropdown .dropdown {
  position: relative;
  z-index: 2147483300;
}

.battle-header .lang-dropdown-menu {
  z-index: 2147483400 !important;
  pointer-events: auto !important;
}

.battle-header .lang-dropdown-item,
.battle-header .lang-dropdown-item * {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.battle-header .dropdown-item {
  color: #d4e4ff;
  border-radius: 6px;
  margin: 2px 6px;
  padding: 8px 10px;
}

.battle-header .dropdown-item:hover,
.battle-header .dropdown-item:focus {
  color: #fff;
  background: rgba(26, 74, 117, 0.22);
  transform: none;
}

.battle-header .battle-nav-dropdown .dropdown-menu {
  min-width: 19rem;
  padding: 0.45rem;
}

.battle-header .battle-nav-dropdown .dropdown-header {
  color: #89b6ff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 0.7rem 0.3rem;
}

.battle-header .battle-mobile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  padding: 0.18rem 0 0.6rem;
}

.battle-header .battle-mobile-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(89, 154, 255, 0.28);
  background: rgba(9, 18, 38, 0.82);
  color: #d4e4ff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.67rem;
  font-weight: 700;
  min-height: 2.2rem;
  padding: 0.35rem 0.55rem;
}

.battle-header .battle-mobile-shortcut:hover,
.battle-header .battle-mobile-shortcut:focus-visible {
  color: #fff;
  background: rgba(18, 33, 61, 0.95);
  border-color: rgba(69, 215, 255, 0.5);
}

.battle-footer {
  border-top: 1px solid rgba(69, 215, 255, 0.15) !important;
  background: linear-gradient(180deg, rgba(3, 7, 16, 0.95), rgba(1, 4, 10, 0.98)) !important;
}

@media (max-width: 991.98px) {
  .battle-header .battle-brand-logo {
    height: 30px !important;
  }

  .battle-header .battle-brand-copy {
    display: none;
  }

  .battle-header #battleNavbar {
    margin-top: 0.7rem;
    border: 1px solid rgba(87, 151, 255, 0.26);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(9, 17, 34, 0.96), rgba(7, 14, 29, 0.96));
    padding: 0.42rem;
  }

  .battle-header #battleNavbar.battle-mobile-menu.show,
  .battle-header #battleNavbar.battle-mobile-menu.collapsing {
    max-height: min(76vh, 600px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-bottom: 0.6rem;
  }

  .battle-header .battle-nav-list {
    width: 100%;
    align-items: stretch !important;
  }

  .battle-header .battle-nav-list .nav-link {
    width: 100%;
    border: 1px solid rgba(100, 143, 191, 0.18) !important;
    background: rgba(9, 31, 58, 0.12) !important;
  }

  .battle-header .battle-nav-list .nav-link::after {
    display: none;
  }

  .battle-header .battle-nav-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    max-height: 40vh;
    overflow-y: auto;
    margin: 0.28rem 0 0.55rem;
    border-radius: 9px;
    border-color: rgba(84, 139, 232, 0.26);
  }

  .battle-header .battle-nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
}
