@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Teko:wght@500;600;700&display=swap");

:root {
  --battle-ink: #020611;
  --battle-ink-2: #060d1d;
  --battle-electric: #45d7ff;
  --battle-hot: #ff3b44;
  --battle-gold: #ffcc4a;
  --battle-muted: #9fb1d5;
}

.battle-zone {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% -20%, rgba(69, 215, 255, 0.13), transparent 32%),
    radial-gradient(circle at 100% 18%, rgba(255, 59, 68, 0.16), transparent 30%),
    linear-gradient(180deg, #030814 0%, #020611 60%, #01030a 100%);
}

.battle-header {
  background: linear-gradient(145deg, rgba(7, 13, 29, 0.95), rgba(3, 8, 20, 0.95));
  border-bottom: 1px solid rgba(69, 215, 255, 0.2);
  backdrop-filter: blur(8px);
}

.battle-header .battle-topbar {
  gap: 1rem;
}

.battle-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.battle-brand-logo {
  width: 140px;
  max-width: 34vw;
}

.battle-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.battle-brand-kicker {
  color: var(--battle-gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.battle-brand-title {
  font-family: "Teko", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.battle-nav-list .nav-link {
  color: #d8e6ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.8rem !important;
}

.battle-nav-list .nav-link:hover,
.battle-nav-list .nav-link:focus {
  color: #fff;
  border-color: rgba(69, 215, 255, 0.38);
  background: rgba(69, 215, 255, 0.1);
}

.battle-nav-list .nav-link.highlight {
  border-color: rgba(255, 59, 68, 0.42);
  background: rgba(255, 59, 68, 0.13);
}

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

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

.battle-zone .challs-hero {
  background:
    radial-gradient(circle at 5% 0%, rgba(69, 215, 255, 0.15), transparent 28%),
    radial-gradient(circle at 95% 15%, rgba(255, 59, 68, 0.2), transparent 30%),
    linear-gradient(135deg, #081027 0%, #040a1c 60%, #030714 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.battle-zone .challs-hero-eyebrow {
  color: var(--battle-gold);
  letter-spacing: 0.17em;
}

.battle-zone .challs-hero-title {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.07em;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.88;
}

.battle-zone .chall-card {
  background: linear-gradient(145deg, rgba(10, 18, 37, 0.96), rgba(6, 12, 23, 0.95));
  border: 1px solid rgba(88, 152, 255, 0.28);
  border-radius: 14px;
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.battle-zone .chall-card:hover {
  border-color: rgba(69, 215, 255, 0.5);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(69, 215, 255, 0.16);
}

.battle-zone .chall-card .status {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.battle-zone .btn-primary {
  background: linear-gradient(135deg, #0e5bff 0%, #0ab0ff 100%);
  border-color: transparent;
}

.battle-zone .btn-primary:hover {
  filter: brightness(1.06);
}

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

.battle-footer .footer-link {
  color: #b2c4e8;
  text-decoration: none;
}

.battle-footer .footer-link:hover,
.battle-footer .footer-link:focus {
  color: #fff;
}

/* Aggressive competitive pass */
.battle-zone {
  position: relative;
}

.battle-zone::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.08;
  z-index: 0;
}

.battle-zone > * {
  position: relative;
  z-index: 1;
}

.battle-header {
  border-bottom: 1px solid rgba(255, 59, 68, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.battle-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(69, 215, 255, 0), rgba(69, 215, 255, 0.8), rgba(255, 59, 68, 0.75), rgba(255, 59, 68, 0));
}

.battle-brand-title {
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 18px rgba(69, 215, 255, 0.25);
}

.battle-nav-list .nav-link {
  border-radius: 8px;
  padding: 0.43rem 0.88rem !important;
  border-color: rgba(69, 215, 255, 0.2);
  background: linear-gradient(135deg, rgba(7, 17, 33, 0.95), rgba(5, 12, 24, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.battle-nav-list .nav-link:hover,
.battle-nav-list .nav-link:focus {
  border-color: rgba(255, 59, 68, 0.45);
  background: linear-gradient(135deg, rgba(16, 29, 52, 0.98), rgba(9, 18, 34, 0.98));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 59, 68, 0.22);
  transform: translateY(-1px);
}

.battle-nav-list .nav-link.highlight {
  border-color: rgba(255, 59, 68, 0.5);
  background: linear-gradient(135deg, rgba(50, 12, 16, 0.88), rgba(33, 7, 10, 0.9));
}

.battle-zone .challs-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 59, 68, 0.26);
}

.battle-zone .challs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(69, 215, 255, 0.14) 0%, transparent 35%),
    linear-gradient(295deg, rgba(255, 59, 68, 0.18) 0%, transparent 34%);
}

.battle-zone .challs-hero-title {
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.battle-zone .chall-filters {
  border-radius: 14px;
  border-color: rgba(255, 59, 68, 0.24);
  background: linear-gradient(140deg, rgba(12, 20, 38, 0.96), rgba(7, 13, 24, 0.96));
}

.battle-zone .chall-filters .form-select {
  border-color: rgba(87, 151, 255, 0.34);
  background-color: rgba(2, 8, 18, 0.85);
  color: #e8f0ff;
}

.battle-zone .chall-filters .form-select:focus {
  border-color: rgba(255, 59, 68, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 59, 68, 0.14);
}

.battle-zone .chall-card {
  position: relative;
  border-radius: 14px;
  border-color: rgba(80, 145, 255, 0.34);
  background: linear-gradient(150deg, rgba(10, 19, 38, 0.97), rgba(5, 11, 22, 0.97));
}

.battle-zone .chall-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(69, 215, 255, 0.13), transparent 35%),
    linear-gradient(320deg, rgba(255, 59, 68, 0.1), transparent 35%);
  opacity: 0.95;
}

.battle-zone .chall-card > * {
  position: relative;
  z-index: 1;
}

.battle-zone .chall-card:hover {
  border-color: rgba(255, 59, 68, 0.46);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    0 0 20px rgba(255, 59, 68, 0.18);
}

.battle-zone .chall-card-header {
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.92), rgba(6, 10, 20, 0.92));
}

.battle-zone .chall-card .mode {
  background: rgba(69, 215, 255, 0.16);
  color: #d5f6ff;
  border: 1px solid rgba(69, 215, 255, 0.32);
}

.battle-zone .platform-pill {
  background: rgba(255, 59, 68, 0.15);
  color: #ffc9cc;
  border: 1px solid rgba(255, 59, 68, 0.32);
}

.battle-zone .status {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.battle-zone .info-pill {
  border-color: rgba(87, 151, 255, 0.28);
  background: rgba(87, 151, 255, 0.08);
}

.battle-zone .btn-primary {
  background: linear-gradient(135deg, #0d5dff 0%, #0aa9ff 60%, #0c8fff 100%);
  box-shadow: 0 10px 24px rgba(13, 93, 255, 0.28);
}

.battle-zone .btn-outline-warning {
  border-color: rgba(255, 59, 68, 0.5);
  color: #ffd8d8;
}

.battle-zone .btn-outline-warning:hover {
  background: rgba(255, 59, 68, 0.2);
  color: #fff;
}

/* Navbar refresh */
.battle-header .battle-topbar {
  min-height: 68px;
  gap: 1rem;
}

.battle-header .battle-brand {
  gap: 0.55rem;
  flex-shrink: 0;
}

.battle-header .battle-brand-logo {
  width: auto;
  max-width: none;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(69, 215, 255, 0.2));
}

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

.battle-header .battle-brand-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.battle-header .battle-brand-title {
  font-size: 1.22rem;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.battle-header .battle-nav-list {
  gap: 0.26rem;
}

.battle-header .battle-nav-list .nav-link {
  position: relative;
  border: 0;
  border-radius: 6px;
  padding: 0.42rem 0.7rem !important;
  background: transparent;
  box-shadow: none;
  font-size: 0.75rem;
  color: #d4e4ff;
}

.battle-header .battle-nav-list .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.24rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(69, 215, 255, 0.9), rgba(255, 59, 68, 0.85));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.battle-header .battle-nav-list .nav-link:hover,
.battle-header .battle-nav-list .nav-link:focus {
  border-color: transparent;
  background: rgba(22, 34, 60, 0.72);
  color: #fff;
  transform: none;
  box-shadow: 0 8px 18px rgba(2, 6, 16, 0.32);
}

.battle-header .battle-nav-list .nav-link:hover::after,
.battle-header .battle-nav-list .nav-link:focus::after {
  transform: scaleX(1);
}

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

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

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

  .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 .battle-nav-list {
    width: 100%;
    align-items: stretch !important;
  }

  .battle-header .battle-nav-list .nav-link {
    width: 100%;
    border: 1px solid rgba(84, 139, 232, 0.22);
    background: rgba(12, 22, 43, 0.8);
  }

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

/* ---------------------------------------------------------
   Battle surface normalization (fix white Bootstrap blocks)
   --------------------------------------------------------- */
.battle-zone main {
  background: transparent !important;
}

.battle-zone .card {
  background: linear-gradient(145deg, rgba(10, 18, 37, 0.96), rgba(6, 12, 23, 0.95));
  border: 1px solid rgba(88, 152, 255, 0.28);
  color: #e8f0ff;
}

.battle-zone .card .card-footer {
  background: transparent;
  border-top-color: rgba(88, 152, 255, 0.2);
}

.battle-zone .table {
  --bs-table-bg: rgba(7, 14, 28, 0.84);
  --bs-table-color: #e8f0ff;
  --bs-table-border-color: rgba(92, 145, 236, 0.25);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-striped-color: #e8f0ff;
  --bs-table-hover-bg: rgba(69, 215, 255, 0.08);
  --bs-table-hover-color: #fff;
}

.battle-zone .table-light,
.battle-zone .table-light > :not(caption) > * > * {
  background: rgba(12, 22, 43, 0.92) !important;
  color: #dbe9ff !important;
  border-color: rgba(92, 145, 236, 0.3) !important;
}

.battle-zone .alert-info.alert-persistent,
.battle-zone .alert.alert-info {
  background: rgba(26, 116, 199, 0.2);
  color: #d9ecff;
  border-color: rgba(69, 215, 255, 0.35);
}

.battle-zone .alert-warning.alert-persistent,
.battle-zone .alert.alert-warning {
  background: rgba(255, 193, 7, 0.18);
  color: #ffe8a8;
  border-color: rgba(255, 193, 7, 0.32);
}

.battle-zone .alert-danger.alert-persistent,
.battle-zone .alert.alert-danger {
  background: rgba(220, 53, 69, 0.2);
  color: #ffd6dc;
  border-color: rgba(220, 53, 69, 0.38);
}

.battle-zone .breadcrumb {
  --bs-breadcrumb-bg: rgba(8, 15, 30, 0.75);
  --bs-breadcrumb-divider-color: #8da9d8;
  --bs-breadcrumb-item-active-color: #dbe9ff;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(92, 145, 236, 0.22);
  border-radius: 8px;
}

.battle-zone .breadcrumb a {
  color: #9fd4ff;
}

.battle-zone .form-control,
.battle-zone .form-select,
.battle-zone textarea {
  background-color: rgba(6, 13, 26, 0.88);
  border-color: rgba(92, 145, 236, 0.34);
  color: #e8f0ff;
}

.battle-zone .form-control:focus,
.battle-zone .form-select:focus,
.battle-zone textarea:focus {
  background-color: rgba(8, 16, 32, 0.94);
  border-color: rgba(69, 215, 255, 0.55);
  box-shadow: 0 0 0 .2rem rgba(69, 215, 255, 0.16);
  color: #fff;
}
