/* drawer.css — top-bar hamburger drawer (SPEC v3.4 §4).
 * Slides in from the left. Frosted backdrop. Closes on backdrop tap or X. */

.vc-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: vc-fade-in 160ms ease;
}

.vc-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 61;
  width: 88%;
  max-width: 320px;
  background: var(--vc-bg-elevated);
  border-right: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow-lg);
  padding: var(--vc-sat, 0px) 0 env(safe-area-inset-bottom, 0) 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: vc-slide-right 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vc-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vc-border);
}
.vc-drawer__title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--vc-primary), var(--vc-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vc-drawer__close {
  background: transparent;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: var(--vc-radius);
  color: var(--vc-text-muted);
  cursor: pointer;
}
.vc-drawer__close:hover { background: var(--vc-bg-glass); color: var(--vc-text-high); }

.vc-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.vc-drawer__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: var(--vc-tap-lg, 56px);
  padding: 0 20px;
  background: transparent;
  border: 0;
  color: var(--vc-text-high);
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.vc-drawer__item:hover { background: var(--vc-bg-glass); }
.vc-drawer__item:active { background: var(--vc-bg-glass-strong); }
.vc-drawer__item--danger { color: var(--vc-danger); }
.vc-drawer__icon { font-size: 20px; line-height: 1; width: 24px; text-align: center; }

.vc-drawer__divider {
  height: 1px;
  margin: 8px 20px;
  background: var(--vc-border);
}

.vc-drawer__signout { padding: 0; margin: 0; }

@keyframes vc-slide-right {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .vc-drawer, .vc-drawer-backdrop { animation: none; }
}
