/* Trash (board 11). A uniform three-column grid of deleted assets, each with a
   countdown badge on the thumbnail and Restore / Delete now actions. Photos keep
   square corners; controls keep the 6px radius. Reuses .btn-tonal (similar.css)
   and the overlay toast + confirm (overlays.css). */

.trash { display: flex; flex-direction: column; }

/* ---- Header ----------------------------------------------------------- */
.trash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.trash-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.trash-head__intro { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 640px; }
.trash-empty { height: 46px; flex-shrink: 0; }

/* ---- Grid ------------------------------------------------------------- */
.trash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }

.trash-card { display: flex; flex-direction: column; gap: 14px; }
.trash-card__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.trash-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.trash-card__doc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-quiet); }
.trash-card__badge {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius);
  font-size: 12px; font-weight: 600; color: var(--text);
}
.trash-card__badge svg { stroke: currentColor; }
.trash-card__badge.is-soon { color: var(--red-text); }

.trash-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.trash-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trash-card__title { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--text); }
.trash-card__by { font-size: 13px; color: var(--text-quiet); }

.trash-card__acts { display: flex; gap: 6px; flex-shrink: 0; }
.trash-card__restore { height: 40px; }
.trash-card__del {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius);
  background: transparent; color: var(--text-quiet); cursor: pointer;
  transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
.trash-card__del:hover { background: var(--tone-1); color: var(--red-text); }
.trash-card__del svg { stroke: currentColor; }

/* ---- Empty ------------------------------------------------------------ */
.trash-zero {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 44px; border: 1px dashed var(--rule); border-radius: var(--radius);
  background: var(--surface); max-width: 560px;
}
.trash-zero h3 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--text); }
.trash-zero p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 440px; }

/* ---- Narrow ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .trash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .trash-head { flex-direction: column; gap: 20px; }
  .trash-empty { align-self: flex-start; }
  .trash-grid { grid-template-columns: 1fr; gap: 32px; }
}
