/* =========================================================
   core/navigation.css
   ---------------------------------------------------------
   Site header, navigation and menu behaviour.
   ========================================================= */

/* =========================================================
   3) HEADER & NAVIGATION
   --------------------------------------------------------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: relative;
  width: 100%;
  z-index: 1000;
}

.nn-nav {
  display: flex;
  align-items: center;
  height: 64px;
}

.nn-nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: var(--space-m);
}

.nn-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nn-logo img {
  height: 28px;
  width: auto;
  display: block;
}


.nn-nav__spacer,
.nn-spacer {
  flex: 1;
}

.nn-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex: 1;
}

.nn-nav__links a,
.nn-menu__button {
  display: flex;
  align-items: center;
}

.nn-nav__links a {
  padding: var(--space-s) var(--space-m);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--nav-link);
  text-decoration: none;
}

.nn-nav__links a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nn-nav__links a[aria-current="page"] {
  background: #f1f5f9;
  color: var(--text);
}



.nn-menu {
  position: relative;
  flex-shrink: 0;
}

.nn-menu__button {
  gap: 6px;
  height: 64px;
  padding: var(--space-s) var(--space-m);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nav-link);
  line-height: 1;
}

.nn-menu__button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nn-menu__button .nn-caret {
  font-size: 0.85rem;
  opacity: 0.75;
  transform: translateY(1px);
  pointer-events: none;
}


.nn-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 200px;
  margin-top: 4px;
  padding: 8px;
  list-style: none;
  background: var(--menu-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 1002;
}

.nn-menu.is-open .nn-menu__panel {
  display: block;
}

@media (hover: hover) {
  .nn-menu:hover .nn-menu__panel {
    display: block;
  }
}

.nn-menu__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--menu-link);
  text-decoration: none;
}

.nn-menu__panel a:hover {
  background: rgba(0, 0, 0, 0.05);
}



.nn-theme-btn {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
}

.nn-theme-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.nn-theme-desktop {
  display: flex;
}

.nn-menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 26px;
  color: var(--nav-link);
}

.nn-nav__divider {
  width: 1px;
  height: 28px;
  margin: 0 4px;
  background: var(--border);
}

.nn-nav__settings {
  gap: 7px;
}

.nn-nav__settings i {
  font-size: 15px;
  line-height: 1;
  color: #64748b;
}

.nn-nav__settings:hover i {
  color: var(--nav-link);
}

@media (max-width: 1100px) {
  .nn-nav__settings span {
    display: none;
  }

  .nn-nav__settings {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .nn-nav__divider {
    display: none;
  }

  .nn-nav__settings span {
    display: inline;
  }

  .nn-nav__settings {
    width: auto;
    height: auto;
    justify-content: flex-start;
    padding: var(--space-s) var(--space-m);
  }
}

@media (min-width: 981px) {
  .nn-nav__divider {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .nn-nav__divider {
    display: none !important;
  }
}

