/*
 * Photo Uploader Component styles
 * Loaded globally via base.html alongside photo-uploader.js
 */

/* Drop zone active state */
#drop-zone.drag-over {
  border-color: #4f46e5;
  /* indigo-600 */
  background-color: #e0e7ff;
  /* indigo-100 */
}

/* ── File preview grid tile ───────────────────────────────────────────────── */

.file-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
  /* gray-200 */
  cursor: default;
}

.file-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove (✕) button – always visible, top-right corner */
.file-tile .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: none;
  padding: 0;
  line-height: 1;
  transition: background 0.15s;
}

.file-tile .remove-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  /* red */
}

/* Filename label – fades in on hover at bottom of tile */
.file-tile .tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}

.file-tile:hover .tile-label {
  opacity: 1;
}

/* ── Video tile overlay ───────────────────────────────────────────────────── */

/* Semi-transparent dim + centered play icon – sits on top of the frame thumbnail */
.file-tile .video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
  z-index: 3;
}

.file-tile .video-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(59, 130, 246, 0.9);
  /* blue-500 */
  padding: 1px 5px;
  border-radius: 3px;
}
