/* Product Shots — styles for #shotsRoot. Reuses the shared --bg/--surface/--border/etc.
 * variables from style.css, so this file only adds what's specific to this tool. */

.shots-view { display: flex; flex-direction: column; gap: 24px; }

.shots-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shots-header h1 { font-size: 22px; font-weight: 700; }

.shots-dim { color: var(--text-dim); font-size: 13px; }

.shots-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shots-card h3 { font-size: 15px; font-weight: 600; }

.shots-new-form { display: flex; gap: 10px; flex-wrap: wrap; }
.shots-new-form input {
  flex: 1; min-width: 200px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px; color: var(--text); font-family: var(--font);
}

.shots-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.shots-row:last-child { border-bottom: none; }
.shots-row-actions { display: flex; gap: 8px; }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 9px; font-size: 11px; }
.shots-danger { color: var(--danger); border-color: var(--danger); }
.shots-danger:hover { background: rgba(239,68,68,0.1); }

/* Asset library */
.shots-assets { display: flex; flex-wrap: wrap; gap: 12px; }
.shots-asset-card {
  width: 150px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.shots-asset-card img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; }
.shots-asset-card select, .shots-asset-card input, .shots-asset-card textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 6px; color: var(--text); font-size: 11px; font-family: var(--font); resize: vertical;
}
.shots-upload { display: flex; gap: 10px; align-items: center; }
.shots-upload select {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 10px; color: var(--text); font-family: var(--font);
}

/* Line items */
.shots-items { display: flex; flex-direction: column; gap: 18px; }
.shots-item {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 12px; background: var(--surface2);
}
.shots-item-top { display: flex; gap: 12px; align-items: flex-start; }
.shots-item-prompt {
  flex: 1; min-height: 60px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px; color: var(--text); font-family: var(--font);
  font-size: 13px; resize: vertical;
}
.shots-item-actions { display: flex; flex-direction: column; gap: 8px; }

.shots-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shots-chip {
  display: flex; align-items: center; gap: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px 4px 4px;
  cursor: pointer; color: var(--text-muted); font-size: 12px; font-family: var(--font);
}
.shots-chip img { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; }
.shots-chip--on { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }

.shots-model-picker { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.shots-model-check {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted);
  cursor: pointer; user-select: none;
}

.shots-visible-toggle {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim);
  cursor: pointer; user-select: none;
}

.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shots-tile {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
}
.shots-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; }
.shots-tile-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
  padding: 6px 8px; font-size: 11px; color: var(--text-muted);
}
.shots-tile-actions { display: flex; gap: 6px; }
.shots-tile-visible {
  display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim);
  cursor: pointer; user-select: none; padding: 0 8px 8px;
}
.shots-tile--pending, .shots-tile--failed {
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; font-size: 12px; color: var(--text-dim); padding: 12px; text-align: center;
}
.shots-tile--failed { color: var(--danger); }
.shots-tile--picked { border-color: var(--success); }
.shots-pick-badge { color: var(--success); font-weight: 600; }
.shots-cost { color: var(--text-dim); }
.shots-client-feedback {
  font-size: 11px; color: var(--text-muted); background: var(--surface2);
  padding: 6px 8px; margin: 0 8px 8px; border-radius: 6px;
}

/* Lightbox */
.shots-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.shots-lightbox-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 95vw; max-height: 90vh; }
.shots-lightbox-inner img { max-width: 95vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.shots-lightbox-label { color: var(--text-muted); font-size: 13px; }
.shots-lightbox-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none; color: #fff;
  font-size: 32px; line-height: 1; cursor: pointer;
}

.shots-spinner {
  width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: shots-spin 0.8s linear infinite;
}
@keyframes shots-spin { to { transform: rotate(360deg); } }

.shots-approved {
  font-size: 12px; color: var(--success); background: rgba(16,185,129,0.1);
  border-radius: 6px; padding: 6px 10px;
}

.shots-error { color: var(--danger); padding: 20px; }

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .shots-item-top { flex-direction: column; }
  .shots-item-actions { flex-direction: row; }
  .shots-asset-card { width: 120px; }
}
