/* apps/tinkyspeak/public/css/tile-label-suggest.css
 *
 * Smart tile-label suggestions dropdown (2026-05-28). Renders as
 * a floating panel below the #propsLabel input in the Edit Tile
 * rail. Apple/Adobe-grade chrome: glass-morphism shell, square
 * thumbnails on the left, label + tier badge on the right, hover
 * lift, keyboard-active row, smooth fade-in.
 *
 * LABEL: PILOT-READY.
 */

.tile-suggest {
  z-index: 8500;
  max-height: 380px;
  overflow-y: auto;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(12, 21, 48, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 12px 40px rgba(12, 21, 48, 0.18);
  animation: tileSuggestIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
  color: #0C1530;
  font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 21, 48, 0.18) transparent;
}
.tile-suggest::-webkit-scrollbar { width: 6px; }
.tile-suggest::-webkit-scrollbar-thumb { background: rgba(12, 21, 48, 0.18); border-radius: 3px; }
@keyframes tileSuggestIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tile-suggest__list {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-suggest__row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease;
}
.tile-suggest__row--active,
.tile-suggest__row:hover {
  background: linear-gradient(180deg, rgba(232, 168, 56, 0.16) 0%, rgba(232, 168, 56, 0.10) 100%);
  outline: 1px solid rgba(232, 168, 56, 0.45);
}

.tile-suggest__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #F5F0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(12, 21, 48, 0.06);
  flex-shrink: 0;
}
.tile-suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}
.tile-suggest__thumb-fallback {
  font-size: 18px;
  color: #8A8A9A;
}

.tile-suggest__label {
  font: 500 13.5px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #0C1530;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-suggest__lib {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(12, 21, 48, 0.06);
  color: #6B6B7B;
  font: 700 9px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tile-suggest__lib--arasaac { background: rgba(25, 118, 210, 0.10); color: #1976D2; }
.tile-suggest__lib--mulberry { background: rgba(232, 168, 56, 0.18); color: #92400E; }
.tile-suggest__lib--sclera   { background: rgba(34, 197, 94, 0.14);  color: #166534; }
.tile-suggest__lib--openmoji { background: rgba(217, 70, 239, 0.12); color: #9333EA; }
.tile-suggest__lib--opensymbols { background: rgba(20, 184, 166, 0.14); color: #0F766E; }

.tile-suggest__status {
  padding: 14px;
  text-align: center;
  font: 500 12.5px/1.4 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #6B6B7B;
}
.tile-suggest__status--empty {
  color: #8A8A9A;
  font-style: italic;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tile-suggest { animation: none !important; }
  .tile-suggest__row { transition: none !important; }
}
