/* Placement panel: dev-tool UI for choosing which entity to paint
 * into the world. Tokenized against the shared palette in tokens.css;
 * the few remaining hex literals are component-specific one-offs
 * (e.g. the purple trigger icon uses a slightly lighter tone than
 * `--color-trigger-fill` for the in-world ghost — intentional). */

.placement-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.placement-entity {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px;
  background: var(--surface-row);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-align: left;
}

.placement-entity:hover {
  border-color: var(--color-border);
}

.placement-entity-active {
  border-color: var(--color-success-border);
  background: linear-gradient(
    135deg,
    var(--color-success-fill-a),
    var(--color-success-fill-b)
  );
}

/* Fixed-size slot that centers the sprite thumb regardless of the
 * sprite's aspect ratio (1×1 bush, 3×3 portal, 3×5 tree all land in a
 * consistent 64×64 box). */
.placement-thumb-box {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placement-thumb {
  flex-shrink: 0;
}

.placement-thumb-delete {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--color-danger-fg);
  background: var(--color-danger-bg);
  border: 1px dashed var(--color-danger-border);
}

/* Purple square — the icon for invisible-trigger entities (portal
 * trigger today). Matches the in-world ghost so the palette icon and
 * placement preview read as the same thing. */
.placement-thumb-trigger {
  width: 56px;
  height: 56px;
  background: var(--color-trigger-fill);
  border: 1px dashed var(--color-trigger-border);
}

.placement-entity-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.placement-entity-name {
  color: var(--color-text-strong);
}

.placement-entity-sub {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.placement-hint {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.3;
  margin-top: 6px;
}

.placement-section-label {
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 4px;
}

.placement-section-label:first-child {
  margin-top: 0;
}

.placement-section-empty {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-style: italic;
  padding: 4px 2px;
}
