/* --- toolbar.css --- */

/* =========================================================
   FLOATING TOOLBAR (BASE)
========================================================= */

.toolbar {
  background: #2a2a2a; /* dark gray */
  border-radius: 999px;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  left: 50%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%) translateY(120%);
  transition:
    transform 0.35s cubic-bezier(0.22, 0.6, 0.36, 1),
    opacity 0.25s ease;
  width: min(90vw, 22rem);
  z-index: 2000;
}

.toolbar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* hide when drawer is open */
body.drawer-open .toolbar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(120%);
}

/* =========================================================
   ITEMS
========================================================= */

.toolbar-item {
  align-items: center;
  color: #ccc; /* light gray icons */
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  justify-content: center;

  padding: 0.65rem 0;
  transition:
    color 0.15s ease,
    box-shadow 0.2s ease;
  user-select: none;
}

.toolbar-item:active {
  background: none;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.08);
}

.toolbar-item:hover {
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
  color: lightseagreen;
}

.toolbar-item.hamburger:hover span {
  background: lightseagreen;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.06);
}

.toolbar .hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toolbar .hamburger span {
  background: #ccc;
  border-radius: 2px;
  height: 2px;
  transition: background-color 0.2s ease;
  width: 20px;
}
