/* Shared drawer pattern — used by both public navbar and dashboard navbar. */

/* ── OVERLAY ── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}

.drawer-overlay.open {
  opacity: 1; pointer-events: all;
}

/* ── PANEL ── */
.drawer {
  position: fixed; top: 0; left: 0; z-index: 301;
  width: 260px; height: 100%;
  background: var(--bg2);
  border-right: 1px solid var(--border2);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

/* ── DRAWER HEADER ── */
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}

.drawer-logo-icon {
  width: 36px; height: 36px;
  background: transparent;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.drawer-logo-icon svg { width: 14px; height: 14px; }
.drawer-logo-icon img { width: 36px; height: 36px; object-fit: contain; }

.drawer-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); font-size: 15px;
  transition: all .15s; flex-shrink: 0;
  line-height: 1;
}

.drawer-close:hover { border-color: var(--border2); color: var(--text); }

/* ── DRAWER BODY ── */
.drawer-body {
  flex: 1;
  padding: 12px 12px 24px;
  display: flex; flex-direction: column; gap: 2px;
}

.drawer-section-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text2);
  padding: 10px 8px 6px;
}

.drawer-link {
  display: flex; align-items: center; gap: 10px;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px; font-weight: 450;
  padding: 9px 12px;
  border-radius: 10px;
  transition: all .18s;
  letter-spacing: -0.01em;
}

.drawer-link svg { opacity: 0.65; flex-shrink: 0; }
.drawer-link:hover { color: var(--text); background: var(--bg3); }
.drawer-link:hover svg { opacity: 1; }
.drawer-link.active { color: var(--text); background: var(--bg3); }
.drawer-link.active svg { opacity: 1; }

.drawer-badge {
  font-size: 10px; font-weight: 700;
  background: var(--accent); color: #111;
  padding: 1px 6px; border-radius: 100px;
  margin-left: auto;
}

.drawer-divider {
  height: 1px; background: var(--border);
  margin: 8px 0;
}

/* ── DRAWER FOOTER ── */
.drawer-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
  flex-shrink: 0;
}

.drawer-footer .drawer-link { font-size: 13px; }

/* ── SHARED HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
  display: block;
}

@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }
}
