/* ============================================================
   NAV-TOOLS.CSS — Dropdown nav + mobile tools nav
   Appended to / included alongside styles.css
============================================================ */

/* ── Tools dropdown trigger ─────────────────────────────── */
.nav-has-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-dropdown-toggle svg {
  transition: transform .2s;
  flex-shrink: 0;
}
.nav-has-dropdown:hover .nav-dropdown-toggle svg,
.nav-has-dropdown:focus-within .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

/* ── Dropdown panel ──────────────────────────────────────── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(124,58,237,.08);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 500;
}
/* Small arrow notch */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-top-left-radius: 3px;
  border: 1px solid rgba(124,58,237,.08);
  border-right: none;
  border-bottom: none;
  transform: translateX(-50%) rotate(45deg);
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* ── Dropdown items ──────────────────────────────────────── */
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: #1a1a2e;
  transition: background .15s;
  cursor: pointer;
}
.nav-dropdown-item:hover {
  background: #f5f3ff;
}
.nav-dropdown-item.active {
  background: #ede9fe;
}
.ndi-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f3ff;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-dropdown-item.active .ndi-icon {
  background: #ddd6fe;
}
.ndi-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ndi-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}
.ndi-text small {
  font-size: 11px;
  color: #888;
  font-weight: 400;
  line-height: 1.2;
}

/* ── Active nav link ─────────────────────────────────────── */
.nav-tool-link.active .ndi-text strong {
  color: #7c3aed;
}

/* ── Mobile nav additions ────────────────────────────────── */
.mob-nav-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 14px 4px 6px;
}
.mob-nav-home {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  padding: 10px 4px;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mob-nav-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  transition: color .15s;
}
.mob-nav-tool:hover { color: #fff; }
.mob-nav-tool.active { color: #a78bfa; }
.mob-nav-tool span {
  font-size: 17px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.mob-nav-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 8px 0;
}

/* ── Hamburger aria feedback ─────────────────────────────── */
#hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
