/* BuildMyBlast canonical nav, used identically on every page.
 * All selectors use bmb- prefix so they don't collide with any per-page CSS
 * leftover from earlier iterations. !important on a few rules to win against
 * any old .logo / .nav-links rules that may still exist in per-page <style> blocks. */

.bmb-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e5e9 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}
.bmb-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.bmb-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.bmb-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.bmb-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bmb-nav-links li { list-style: none; }
.bmb-nav-links a {
  text-decoration: none;
  color: #6b7280;
  font-size: .85rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color .15s, background .15s;
  font-family: inherit;
}
.bmb-nav-links a:hover {
  color: #1a1a2e;
  background: #f3f4f6;
}
.bmb-cta {
  background: #2979ff !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  margin-left: 4px;
  min-width: 140px;
  text-align: center;
  visibility: hidden; /* Revealed once nav.js resolves the auth state, prevents text flicker */
}
.bmb-cta:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}
body.bmb-auth-resolved .bmb-cta {
  visibility: visible;
}

.bmb-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.bmb-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.bmb-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bmb-burger.open span:nth-child(2) { opacity: 0; }
.bmb-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .bmb-burger { display: flex; }
  .bmb-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e5e9;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    flex-direction: column;
    padding: 12px 24px 16px;
    gap: 2px;
    align-items: stretch;
  }
  .bmb-nav-links.open { display: flex; }
  .bmb-nav-links a {
    display: block;
    padding: 10px 12px;
    width: 100%;
  }
  .bmb-cta {
    text-align: center;
    margin-top: 6px;
    margin-left: 0;
  }
}
