/* ===================================================================
   BetAndHedge — Shared Top Navigation Bar
   Self-contained styling (doesn't depend on per-page CSS variables)
   so it renders identically across every page on the site.
=================================================================== */

.bh-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(180deg, #0d1730 0%, #0a1226 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] .bh-nav {
  background: linear-gradient(180deg, #ffffff 0%, #f7f2e2 100%);
  border-bottom: 1px solid rgba(185, 146, 76, 0.28);
}

.bh-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.4rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.bh-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #eef1f8;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}
[data-theme="light"] .bh-nav-logo { color: #2a1f0c; }

.bh-nav-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bh-nav-links {
  display: none;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

@media (min-width: 900px) {
  .bh-nav-links { display: flex; }
  .bh-nav-burger { display: none !important; }
}

.bh-nav-link {
  color: rgba(238, 241, 248, 0.78);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
[data-theme="light"] .bh-nav-link { color: rgba(42, 31, 12, 0.72); }

.bh-nav-link:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #f3e5ab;
}
[data-theme="light"] .bh-nav-link:hover {
  background: rgba(185, 146, 76, 0.12);
  color: #6b4f13;
}

.bh-nav-link.active {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
}
[data-theme="light"] .bh-nav-link.active {
  color: #8a6a1a;
  background: rgba(185, 146, 76, 0.16);
}

.bh-nav-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.bh-nav-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #eef1f8;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
[data-theme="light"] .bh-nav-icon {
  border-color: rgba(185, 146, 76, 0.3);
  background: #ffffff;
  color: #2a1f0c;
}
.bh-nav-icon:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.bh-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.6rem 1.4rem 1.1rem;
  gap: 0.15rem;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}
.bh-nav-mobile.open { display: flex; }

@media (min-width: 900px) {
  .bh-nav-mobile { display: none !important; }
}

.bh-nav-mobile .bh-nav-link {
  padding: 0.7rem 0.6rem;
}

/* ===================================================================
   Market ticker strip — sits below the nav, illustrative sample data
=================================================================== */

.bh-ticker {
  background: #101b38;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
[data-theme="light"] .bh-ticker {
  background: #fbf7ec;
  border-bottom: 1px solid rgba(185, 146, 76, 0.2);
}

.bh-ticker-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
}

.bh-ticker-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238, 241, 248, 0.4);
  flex: 0 0 auto;
}
[data-theme="light"] .bh-ticker-label { color: rgba(42, 31, 12, 0.4); }

.bh-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.bh-ticker-name {
  font-weight: 700;
  color: #eef1f8;
}
[data-theme="light"] .bh-ticker-name { color: #2a1f0c; }

.bh-ticker-arrow { font-size: 0.7rem; }

.bh-ticker-item.up .bh-ticker-arrow,
.bh-ticker-item.up .bh-ticker-change { color: #3ecf7e; }

.bh-ticker-item.down .bh-ticker-arrow,
.bh-ticker-item.down .bh-ticker-change { color: #e06767; }

.bh-ticker-change { font-weight: 600; }

.bh-ticker-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7fa8e8;
  border: 1px solid rgba(63, 116, 201, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
[data-theme="light"] .bh-ticker-tag { color: #2e5aa0; border-color: rgba(63,116,201,0.35); }

.bh-ticker-time {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(238, 241, 248, 0.55);
}
[data-theme="light"] .bh-ticker-time { color: rgba(42, 31, 12, 0.55); }

.bh-ticker-note {
  margin-left: auto;
  font-size: 0.68rem;
  color: rgba(238, 241, 248, 0.35);
  font-style: italic;
  flex: 0 0 auto;
}
[data-theme="light"] .bh-ticker-note { color: rgba(42, 31, 12, 0.35); }

/* Prevent the sticky nav from covering in-page anchor jumps */
:target { scroll-margin-top: 76px; }
