/* shared/menu/menu.css */

.pdd-hamburger {
  background: none; border: none; cursor: pointer;
  padding: 0.3rem; display: flex; flex-direction: column; gap: 4px;
}
.pdd-hamburger span {
  display: block; height: 1.5px; background: var(--ink-faint, #5A5C58); transition: width 0.15s;
}
.pdd-hamburger span:nth-child(1) { width: 18px; }
.pdd-hamburger span:nth-child(2) { width: 14px; }
.pdd-hamburger span:nth-child(3) { width: 18px; }
.pdd-hamburger:hover span { width: 18px !important; }

.pdd-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.pdd-menu-overlay.open { opacity: 1; pointer-events: all; }

.pdd-menu-panel {
  position: absolute; top: 0; right: 0;
  width: min(320px, 85vw); height: 100%;
  background: var(--bg, #F5F3EF);
  border-left: 1px solid var(--rule-hard, rgba(0,0,0,0.18));
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.2s;
}
.pdd-menu-overlay.open .pdd-menu-panel { transform: translateX(0); }

.pdd-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--rule, rgba(0,0,0,0.1));
  flex-shrink: 0;
}
.pdd-menu-title {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint, #5A5C58);
}
.pdd-menu-close {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Mono', monospace; font-size: 0.8rem;
  color: var(--ink-faint, #5A5C58); padding: 0.2rem 0.4rem;
}
.pdd-menu-close:hover { color: var(--ink, #1A1B1A); }

.pdd-menu-list { flex: 1; overflow-y: auto; padding: 0.8rem 0; }

.pdd-menu-item-text {
  font-family: 'DM Mono', monospace; font-size: 0.62rem; color: var(--ink-mid, #2E302E);
}
.pdd-menu-item-meta {
  font-family: 'DM Mono', monospace; font-size: 0.54rem;
  color: var(--ink-faint, #5A5C58); margin-top: 0.1rem;
}

.pdd-menu-folder { border-bottom: 1px solid var(--rule, rgba(0,0,0,0.1)); }
.pdd-menu-folder-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.2rem; cursor: pointer; transition: background 0.1s;
}
.pdd-menu-folder-header:hover { background: var(--surface, #fff); }
.pdd-menu-folder-label {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint, #5A5C58);
}
.pdd-menu-folder-arrow {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  color: var(--ink-faint, #5A5C58); transition: transform 0.2s;
}
.pdd-menu-folder.open .pdd-menu-folder-arrow { transform: rotate(90deg); }
.pdd-menu-folder-body { display: none; background: var(--surface, #fff); }
.pdd-menu-folder.open .pdd-menu-folder-body { display: block; }
.pdd-menu-folder-empty {
  padding: 0.8rem 1.4rem; font-family: 'DM Mono', monospace;
  font-size: 0.6rem; color: var(--ink-faint, #5A5C58);
}
.pdd-menu-folder-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.7rem 1.4rem; border-top: 1px solid var(--rule, rgba(0,0,0,0.1));
  cursor: pointer; transition: background 0.1s;
}
.pdd-menu-folder-item:hover { background: var(--bg, #F5F3EF); }

/* Panel layout — footer pinned to bottom */
.pdd-menu-panel {
  display: flex !important;
  flex-direction: column !important;
}
.pdd-menu-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 0;
}
.pdd-menu-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--rule, rgba(0,0,0,0.1));
}

/* Bigger font throughout */
.pdd-menu-item-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-mid, #2E302E);
}
.pdd-menu-item-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  color: var(--ink-faint, #5A5C58);
  margin-top: 0.15rem;
}
.pdd-menu-folder-label {
  font-size: 0.68rem !important;
  letter-spacing: 0.12em !important;
}
