/* ============ COVER UPLOAD STYLES ============ */

/* Upload area — empty state */
.cover-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  cursor: pointer;
  border: 2px dashed var(--border, rgba(255,255,255,0.1));
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  padding: 24px;
}
.cover-upload-area:hover,
.drag-over .cover-upload-area {
  border-color: var(--accent, #ff5c29);
  background: rgba(255, 92, 41, 0.04);
}
.cover-upload-btn {
  gap: 6px;
  display: inline-flex;
  align-items: center;
}

/* Preview tile */
.cover-preview-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.cover-preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Action buttons overlay */
.cover-preview-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.2s;
}
.cover-preview-tile:hover .cover-preview-actions {
  opacity: 1;
}
.cover-preview-actions .btn {
  font-size: 11px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.cover-preview-actions .btn:hover {
  background: rgba(255,255,255,0.25);
}
.cover-remove-btn:hover {
  background: rgba(255,60,60,0.4) !important;
}

/* File info label */
.cover-file-info {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.8);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Drag-over highlight on the grid container */
.drag-over {
  outline: 2px solid var(--accent, #ff5c29);
  outline-offset: -2px;
  border-radius: 10px;
}
