/* =========================================================
   Beat the Spin — Navigation
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

/* Also matches .nav--fixed for index.html compat */
.nav--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav .container,
.nav--fixed .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 100%;
  width: 100%;
}

/* ----- Logo ----- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-text {
  color: var(--accent, #00e68a);
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ----- Links ----- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary, #7c7c8a);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--accent-hover, #00ffaa);
}

.nav-link.active {
  color: #fff;
}

/* ----- CTA button in nav ----- */
.nav-cta {
  background: var(--accent, #00e68a);
  color: #06060a;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body, 'Outfit', sans-serif);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover, #00ffaa);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 230, 138, 0.25);
}

/* ----- Discord link ----- */
.nav-discord {
  color: var(--text-secondary, #7c7c8a);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-discord:hover {
  color: var(--accent-hover, #00ffaa);
}

/* ----- Mobile menu button ----- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary, #7c7c8a);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.mobile-menu-btn:hover {
  color: var(--accent, #00e68a);
}

/* ----- Spacer to offset fixed nav ----- */
.nav-spacer {
  height: 72px;
}

/* ---------------------------------------------------------
   Mobile responsive
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .nav .container,
  .nav--fixed .container {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }
}
