/* nav.css - Global navigation for Binary Backtrace */

.bbt-nav {
  height: 40px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  background: var(--bg-base);
  flex-shrink: 0;
}

.bbt-nav-home, .bbt-nav-link, .bbt-nav-sep, .bbt-nav-title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bbt-nav-home {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur);
}
.bbt-nav-home:hover { color: var(--text-secondary); text-decoration: none; }

.bbt-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur);
}
.bbt-nav-link:hover { color: var(--text-secondary); text-decoration: none; }

.bbt-nav-sep { color: var(--text-muted); user-select: none; }
.bbt-nav-icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.bbt-nav-title { color: var(--accent); }
.bbt-nav-spacer { flex: 1; }
.bbt-nav-controls { display: flex; align-items: center; gap: 8px; }

.bbt-nav-settings {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--dur), color var(--dur);
}
.bbt-nav-settings .icon { width: 18px; height: 18px; }
.bbt-nav-settings:hover { background: var(--bg-hover); color: var(--text-secondary); }

/* Tool switcher */
.tool-switcher { position: relative; }

.tool-switcher-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur);
}

.tool-switcher-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-switcher-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--dur), transform 0.2s;
}
.tool-switcher-trigger:hover .tool-switcher-chevron,
.tool-switcher[data-open] .tool-switcher-chevron { opacity: 1; }
.tool-switcher[data-open] .tool-switcher-chevron { transform: rotate(180deg); }

.tool-switcher-menu {
  position: absolute;
  top: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 4px;
  display: none;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.tool-switcher[data-open] .tool-switcher-menu { display: block; }

.tool-switcher-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background var(--dur), color var(--dur);
}
.tool-switcher-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}
.tool-switcher-item[data-active] { color: var(--accent); }

.tool-switcher-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
