/* ---------- Menu button + side drawer (language + filters) ---------- */

.menu-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 96;
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--black);
}

.side-menu {
  position: fixed;
  inset: 0;
  z-index: 98;
  width: 100%;
  background: var(--white);
  padding: 72px 24px 24px;
  overflow-y: auto;
  /* Full-screen, not a narrow drawer - Malte: "Auf dem Android screen ist
     nicht viel Platz." Still slides in for the same "opening a menu"
     feel, just covering everything instead of a side sliver. */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  /* Utility panel, not page content - stays internally LTR regardless of
     active language, same reasoning as the old .lang-switch had (see
     AI-HANDOFF.md). */
  direction: ltr;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu[hidden] {
  display: block; /* still needs to be laid out to transition in; JS toggles .open instead */
}

.menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.menu-section {
  margin-bottom: 32px;
}

.menu-section[hidden] {
  display: none;
}

.menu-heading {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 14px;
}

/* Issue #154 - the Options disclosure: a .menu-heading-styled button
   (instead of the plain <h2>) that toggles #options-panel[hidden]. Nested
   .menu-section children inside the panel keep their own heading/spacing
   untouched - only the outer trigger + collapse behavior is new here. */
.options-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-light);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.options-toggle-chevron {
  display: inline-block;
  font-size: 0.6rem;
  transition: transform 0.15s ease;
}

.options-toggle[aria-expanded="true"] .options-toggle-chevron {
  transform: rotate(90deg);
}

.options-panel {
  margin-top: 18px;
}

.options-panel[hidden] {
  display: none;
}

.options-panel .menu-section:last-child {
  margin-bottom: 0;
}

.lang-switch,
.user-switch {
  display: flex;
  gap: 14px;
}

.lang-switch button,
.user-switch button {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: var(--grey-light);
  cursor: pointer;
}

.lang-switch button.active,
.user-switch button.active {
  color: var(--black);
  border-bottom: 1px solid var(--black);
}

.filter-group {
  margin-bottom: 18px;
}

.filter-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}

.filter-type {
  display: flex;
  border: 1px solid var(--black);
}

.filter-type button {
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.filter-type button + button {
  border-left: 1px solid var(--black);
}

.filter-type button.active {
  background: var(--black);
  color: var(--white);
}

.filter-select {
  width: 100%;
  font-family: "Inter", sans-serif;
  /* 16px, not smaller (issue #61) - iOS Safari auto-zooms the whole page
     when a focusable form control's font-size is under 16px, and doesn't
     reliably zoom back out on blur/close. #password-input already uses
     1rem/16px for exactly this reason; .filter-select (the place <select>
     and the date <input>, both focusable) didn't, and was the prime
     suspect for a reported "background renders too small until I scroll"
     bug - scrolling is the well-known way iOS re-settles a stuck zoom. */
  font-size: 16px;
  padding: 8px 6px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--black);
}

/* #filter-date is readonly (flatpickr owns all input, issue #58 - no
   free-text date entry either) - still needs to read as clickable, and
   a blinking caret on a field the user can't actually type into is a
   confusing affordance. */
input#filter-date {
  cursor: pointer;
  caret-color: transparent;
}

/* .filter-select is shared by the place <select> and the (readonly,
   flatpickr-driven) date <input> - pointer cursor only makes sense on
   the actual dropdown. */
select.filter-select {
  cursor: pointer;
}

/* Issue #150 - filled (inverted), not outline, unlike every other menu
   button here: the single most prominent action in the menu, matching its
   role as the app's new primary use case (Malte, 2026-08-29). */
.upload-trigger {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
}

/* Secondary to .upload-trigger (outline, not filled) - same relationship
   as .filter-date-together to its own filled sibling above it. */
.camera-trigger {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 32px;
}

/* Issue #168: the rest of the upload flow (panel/status/etc.) moved to
   #upload-dialog, a top-level popup - see css/upload.css. Only the
   trigger buttons above stay part of the menu's own styling. */

.filter-favorites {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.filter-favorites.active {
  background: var(--black);
  color: var(--white);
}

/* Issue #153 - quick-set button below the date input, same outline style
   as .filter-favorites but full-width like .play-favorites-reel (it's not
   part of a mutually-exclusive pair, just a shortcut into #filter-date). */
.filter-date-together {
  width: 100%;
  margin-top: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

/* Issue #124 - full-width, unlike .filter-favorites' inline toggle, since
   it sits in its own .filter-group (not a mutually exclusive pair). */
.play-favorites-reel {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.play-favorites-reel:disabled {
  border-color: var(--hairline);
  color: var(--grey);
  cursor: default;
}

.notes-visibility-toggle {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.notes-visibility-toggle.active {
  background: var(--black);
  color: var(--white);
}

.filter-count {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--grey);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.filter-reset {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
  cursor: pointer;
}

.filter-reset[hidden] {
  display: none;
}

.filter-empty {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--grey-light);
  text-align: center;
  padding: 60px 20px;
}

