/* OzDataHub Shared Navbar */

:root {
  --odh-nav-height: 68px;
  --odh-bg: rgba(6, 16, 32, 0.82);
  --odh-border: rgba(255, 255, 255, 0.08);
  --odh-text: #eaf2ff;
  --odh-text-dim: rgba(234, 242, 255, 0.78);
  --odh-panel: rgba(14, 27, 48, 0.96);
  --odh-panel-border: rgba(255, 255, 255, 0.1);
  --odh-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

html.odh-nav-active {
  scroll-padding-top: var(--odh-nav-height);
}

body.odh-nav-active {
  margin: 0;
  padding-top: var(--odh-nav-height);
}

#odh-navbar,
#odh-navbar * {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#odh-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--odh-nav-height);
  z-index: 99999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--odh-bg);
  border-bottom: 1px solid var(--odh-border);
}

.odh-navbar-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.odh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--odh-text);
  flex: 1 1 auto;
  overflow: hidden;
}

.odh-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7dd3fc, #a78bfa);
  color: #08111f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.odh-brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.odh-brand-name,
.odh-brand-sub {
  display: block;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odh-brand-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--odh-text);
}

.odh-brand-sub {
  font-size: 12px;
  color: var(--odh-text-dim);
  line-height: 1.1;
}

.odh-desktop-nav {
  display: none;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.odh-desktop-links {
  display: none;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.odh-desktop-links a {
  color: var(--odh-text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.odh-desktop-links a:hover,
.odh-desktop-links a.odh-active-link {
  color: #ffffff;
}

.odh-desktop-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.odh-desktop-dropdown-toggle {
  appearance: none;
  border: 1px solid var(--odh-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--odh-text);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.odh-desktop-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.odh-caret {
  font-size: 12px;
  line-height: 1;
}

.odh-desktop-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--odh-panel);
  border: 1px solid var(--odh-panel-border);
  border-radius: 16px;
  box-shadow: var(--odh-shadow);
  padding: 10px;
  display: none;
  z-index: 100000;
}

.odh-desktop-dropdown-menu.odh-open {
  display: block;
}

.odh-desktop-dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--odh-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.odh-desktop-dropdown-menu a:hover,
.odh-desktop-dropdown-menu a.odh-active-link {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.odh-mobile-toggle {
  appearance: none;
  border: 1px solid var(--odh-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--odh-text);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.odh-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.odh-hamburger {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 auto;
}

.odh-hamburger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.odh-mobile-toggle-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

#odh-mobile-menu {
  position: fixed;
  top: var(--odh-nav-height);
  right: 14px;
  left: 14px;
  z-index: 99998;
  background: var(--odh-panel);
  border: 1px solid var(--odh-panel-border);
  border-radius: 16px;
  box-shadow: var(--odh-shadow);
  padding: 10px;
  display: none;
  max-height: calc(100vh - var(--odh-nav-height) - 24px);
  overflow-y: auto;
}

#odh-mobile-menu.odh-open {
  display: block;
}

.odh-mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.odh-mobile-menu-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--odh-text);
  font-size: 15px;
  font-weight: 500;
}

.odh-mobile-menu-links a:hover,
.odh-mobile-menu-links a.odh-active-link {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1350px) {
  .odh-brand-sub {
    display: none;
  }
}

@media (max-width: 700px) {
  .odh-navbar-inner {
    padding: 0 14px;
    gap: 12px;
  }

  .odh-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 10px;
    font-size: 12px;
  }

  .odh-brand-name {
    font-size: 15px;
  }

  .odh-mobile-toggle-label {
    font-size: 12px;
  }
}

@media (min-width: 1180px) {
  .odh-desktop-nav {
    display: flex;
  }

  .odh-desktop-links {
    display: flex;
  }

  .odh-mobile-toggle {
    display: none;
  }

  #odh-mobile-menu {
    display: none !important;
  }
}