/* ============================================================
   ODASS SOFTWARE — NAVBAR STYLES
   assets/css/navbar.css
   ============================================================ */

/* ── Sticky Header ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
}
#site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(11,44,95,0.10);
}

/* ── Navbar Container ── */
.navbar { width: 100%; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* ── Logo ── */
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.9; }

/* ── Menu ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  background: rgba(255,122,0,0.07);
}
.nav-link svg { transition: transform 0.2s ease; }

/* ── Dropdown ── */
.has-dropdown { position: relative; }
.has-dropdown:hover > .nav-link svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(11,44,95,0.14);
  min-width: 280px;
  padding: 10px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}
.dropdown-menu li a:hover { background: var(--light-bg); }
.dd-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.dropdown-menu li a span strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  font-family: var(--font-head);
  margin-bottom: 2px;
}
.dropdown-menu li a span small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.dropdown-menu li a:hover span strong { color: var(--orange); }

/* ── Affiliate Button in Nav ── */
.affiliate-btn {
  margin-left: 8px;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--light-bg); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blue);
  border-radius: 4px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile Nav Overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,29,62,0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.active { display: block; opacity: 1; }

/* ── Mobile ── */
@media (max-width: 992px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 90px 20px 30px;
    overflow-y: auto;
    z-index: 999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(11,44,95,0.12);
  }
  .nav-menu.open { right: 0; }
  .nav-menu > li { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    justify-content: space-between;
    border-radius: var(--radius-md);
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    border: none;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    display: none;
    margin: 4px 0 8px 8px;
    min-width: auto;
    width: calc(100% - 8px);
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .has-dropdown.open > .nav-link svg { transform: rotate(180deg); }

  .affiliate-btn {
    width: 100%;
    justify-content: center;
    margin: 12px 0 0;
  }
}
