/* Artwork Manager Styles */

.set-artwork-container {
  margin: 15px 0;
  padding: 15px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.set-artwork-container:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.set-artwork-container.artwork-missing {
  border-color: #ff5252;
  background: #fff5f5;
  animation: pulse-red 2s ease-in-out infinite;
}

.set-artwork-container.artwork-uploaded {
  border-color: #28a745;
  border-style: solid;
  background: #f0fff4;
}

@keyframes pulse-red {
  0%, 100% {
    border-color: #ff5252;
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.4);
  }
  50% {
    border-color: #ff1744;
    box-shadow: 0 0 0 4px rgba(255, 82, 82, 0);
  }
}

/* Upload Dropzone */
.artwork-dropzone {
  text-align: center;
  padding: 40px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #ffffff;
}

.artwork-dropzone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(82, 172, 179, 0.05) 0%, rgba(56, 115, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 6px;
}

.artwork-dropzone:hover::before {
  opacity: 1;
}

.artwork-dropzone:hover {
  border-color: #52acb3;
  background: #f9feff;
  box-shadow: 0 2px 8px rgba(82, 172, 179, 0.15);
}

.artwork-dropzone.drag-over {
  background: #e3f2fd;
  border-color: #2196f3;
  border-style: solid;
  border-width: 3px;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.artwork-dropzone.drag-over::before {
  opacity: 0;
}

.artwork-dropzone-icon {
  font-size: 52px;
  color: #52acb3;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.artwork-dropzone:hover .artwork-dropzone-icon {
  transform: scale(1.1);
  color: #387381;
}

.artwork-dropzone-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.artwork-dropzone-subtext {
  font-size: 13px;
  color: #666;
  line-height: 1.3;
}

.artwork-dropzone:hover .artwork-dropzone-text {
  color: #52acb3;
}

.mini-card .artwork-file-input {
    display: none;
    opacity: 0;
}

/* Uploading State */
.artwork-uploading {
  display: none;
  text-align: center;
  padding: 30px 20px;
}

.upload-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #52acb3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.upload-progress {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #52acb3, #387381);
  transition: width 0.3s ease;
}

.upload-progress-text {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* Artwork Preview */
.artwork-preview {
  display: none;
  background: white;
  border-radius: 8px;
  padding: 20px;
}

.artwork-preview-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.artwork-thumbnail {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.artwork-info {
  flex-grow: 1;
}

.artwork-filename {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 8px;
  word-break: break-all;
}

.artwork-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.artwork-filesize,
.artwork-filetype {
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Preflight Status */
.preflight-status {
  margin: 15px 0;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.success {
  background: #4caf50;
  color: white;
}

.badge.warning {
  background: #ff9800;
  color: white;
}

.badge.error {
  background: #f44336;
  color: white;
}

.preflight-details {
  margin-top: 10px;
  padding: 12px;
  background: #fff8e1;
  border-left: 4px solid #ff9800;
  border-radius: 4px;
  display: none;
}

.preflight-issues {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #666;
}

.preflight-issues li {
  margin: 5px 0;
}

/* Action Buttons */
.artwork-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-edit-artwork,
.btn-replace-artwork,
.btn-delete-artwork {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-edit-artwork {
  background: #52acb3;
  color: white;
}

.btn-edit-artwork:hover {
  background: #387381;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(82, 172, 179, 0.3);
}

.btn-replace-artwork {
  background: #ff9800;
  color: white;
}

.btn-replace-artwork:hover {
  background: #f57c00;
  transform: translateY(-2px);
}

.btn-delete-artwork {
  background: #f44336;
  color: white;
}

.btn-delete-artwork:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

/* Set Header */
.set-artwork-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.set-artwork-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.set-artwork-required {
  font-size: 12px;
  color: #f44336;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .artwork-actions {
    flex-direction: column;
  }
  
  .btn-edit-artwork,
  .btn-replace-artwork,
  .btn-delete-artwork {
    width: 100%;
    justify-content: center;
  }
  
  .artwork-preview-header {
    flex-direction: column;
    align-items: center;
  }
  
  .artwork-thumbnail {
    width: 100%;
    height: auto;
    max-width: 200px;
  }
}
