/* styles/wheel-images/entries-option-image-styles.css
   SpinChoice — Option images list (Entries)
*/

:root{
  --eopt-border: rgba(148, 163, 184, 0.18);
  --eopt-bg: rgba(2, 6, 23, 0.20);
  --eopt-row-bg: rgba(2, 6, 23, 0.34);
  --eopt-row-hover: rgba(148, 163, 184, 0.10);
  --eopt-text: rgba(248, 250, 252, 0.92);
  --eopt-muted: rgba(148, 163, 184, 0.70);
  --eopt-thumb-bg: rgba(148, 163, 184, 0.12);
  --eopt-selected: rgba(59, 130, 246, 0.22);
}

html[data-theme="light"],
body[data-theme="light"]{
  --eopt-border: rgba(15, 23, 42, 0.12);
  --eopt-bg: rgba(15, 23, 42, 0.03);
  --eopt-row-bg: rgba(255,255,255,0.92);
  --eopt-row-hover: rgba(15, 23, 42, 0.06);
  --eopt-text: #0f172a;
  --eopt-muted: rgba(15, 23, 42, 0.55);
  --eopt-thumb-bg: rgba(15, 23, 42, 0.06);
  --eopt-selected: rgba(37, 99, 235, 0.14);
}

.eoptimgs{
  margin-top: 10px;
  padding: 10px;

  border: 1px solid var(--eopt-border);
  background: var(--eopt-bg);
  border-radius: 8px;

  flex: 0 0 auto;
  min-height: 0;
}

.eoptimgs__head{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.eoptimgs__title{
  color: var(--eopt-text);
  font-weight: 700;
  letter-spacing: .2px;
}

.eoptimgs__hint{
  color: var(--eopt-muted);
  font-size: 0.88rem;
}

.eoptimgs__list{
  max-height: 155px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.eoptimgs__row{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 8px;
  border: 1px solid var(--eopt-border);
  background: var(--eopt-row-bg);
  border-radius: 8px;

  cursor: pointer;
  user-select: none;
  transition: background-color .14s ease, transform .06s ease;
}

.eoptimgs__row:hover{
  background: var(--eopt-row-hover);
}

.eoptimgs__row:active{
  transform: translateY(0.5px);
}

.eoptimgs__row.is-selected{
  background: var(--eopt-selected);
  border-color: rgba(59,130,246,0.32);
}

.eoptimgs__thumb{
  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  border-radius: 7px;
  border: 1px solid var(--eopt-border);
  background-color: var(--eopt-thumb-bg);
  background-size: cover;
  background-position: center;
}

.eoptimgs__thumb.is-empty{
  position: relative;
}

.eoptimgs__thumb.is-empty::after{
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--eopt-muted);
  font-size: 16px;
}

.eoptimgs__text{
  flex: 1 1 auto;
  min-width: 0;
  color: var(--eopt-text);
  font-weight: 600;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eoptimgs__actions{
  flex: 0 0 auto;
}

.eoptimgs__remove{
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;

  border: 1px solid var(--eopt-border);
  background: transparent;
  color: var(--eopt-text);

  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;

  cursor: pointer;
}

.eoptimgs__remove:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

.eoptimgs__note{
  color: var(--eopt-muted);
  font-size: 0.85rem;
  padding: 6px 2px 0;
}
