/*
  dumps.fm (rebuild) - Fav Drawer Styles
  Purpose: Bottom-wide drawer that shows a thumbnail wall of your favorited images.
  Dependencies: `public/css/main.css` variables.
  Dependents: `public/index.html`.
*/

.fav-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 58px; /* composer (40) + status (18) */
  z-index: 6;
  pointer-events: none; /* panel re-enables */
}

.fav-drawer__panel {
  pointer-events: auto;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-primary);
  background: rgba(255, 255, 255, 0.98);
  padding: 8px 10px;
}

.fav-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.fav-drawer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.fav-drawer__mini {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.fav-drawer__grid {
  max-height: 170px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border-primary);
  background: rgba(255, 255, 255, 0.6);
}

.fav-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.fav-thumb img {
  display: block;
  max-width: 64px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}

body.night-mode .fav-drawer__panel {
  background: rgba(12, 12, 12, 0.98);
}

body.night-mode .fav-drawer__mini {
  color: rgba(255, 255, 255, 0.7);
}

body.night-mode .fav-drawer__grid {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.16);
}

body.night-mode .fav-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.16);
}

body.sunset-mode .fav-drawer__panel {
  background: rgba(28, 12, 18, 0.92);
  border-top-color: rgba(255, 210, 168, 0.18);
  border-bottom-color: rgba(255, 210, 168, 0.14);
}

body.sunset-mode .fav-drawer__mini {
  color: rgba(255, 210, 168, 0.75);
}

body.sunset-mode .fav-drawer__grid {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 210, 168, 0.14);
}

body.sunset-mode .fav-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 210, 168, 0.14);
}

body.sunrise-mode .fav-drawer__panel {
  background: rgba(255, 250, 245, 0.92);
}

body.sunrise-mode .fav-drawer__grid {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(58, 42, 34, 0.16);
}

body.sunrise-mode .fav-thumb {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(58, 42, 34, 0.16);
}
