/**
 * Onboarding Styles - Phase 1
 * OneTake Studio - AI Video Generation SaaS
 */

/* Headshot Upload Grid */
.headshot-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.upload-box {
  background: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.upload-box:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.upload-box-optional {
  border-style: dotted;
}

.upload-box label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-size: 14px;
}

.upload-box input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.upload-box input[type="file"]::-webkit-file-upload-button {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.upload-box input[type="file"]::-webkit-file-upload-button:hover {
  background: #5568d3;
}

.preview-image {
  display: none;
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  margin: 10px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Branded Closet Section */
.branded-closet-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #fff9e6 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.branded-closet-section h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.section-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.outfit-uploads {
  margin-bottom: 20px;
}

.outfit-upload-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  font-size: 14px;
}

.outfit-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.outfit-slot {
  background: white;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.outfit-slot:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.outfit-slot input[type="file"] {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.outfit-slot .outfit-preview {
  display: none;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.outfit-slot .remove-outfit-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.outfit-slot.has-image .remove-outfit-btn {
  display: block;
}

.outfit-slot.has-image .outfit-preview {
  display: block;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

.custom-outfit-text {
  margin-top: 20px;
}

.custom-outfit-text label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.custom-outfit-text textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.custom-outfit-text textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
  display: block;
  color: #888;
  font-size: 12px;
  margin-top: 6px;
  font-style: italic;
}

/* Outfit Generate Section */
.outfit-generate-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px dashed #e0e0e0;
}

#generateOutfitsBtn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#generateOutfitsBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#generateOutfitsBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#generateOutfitsBtn.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Outfit Progress Bar */
.outfit-progress {
  margin-top: 20px;
}

.outfit-progress .progress-bar {
  width: 100%;
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.outfit-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.outfit-progress .progress-text {
  text-align: center;
  margin-top: 10px;
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
}

#outfitGenerateStatus {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

#outfitGenerateStatus.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

#outfitGenerateStatus.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

#outfitGenerateStatus.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

/* Generate Button */
#generateMasterStillBtn {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

#generateMasterStillBtn.ready {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#generateMasterStillBtn.ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Master Still Preview */
#masterStillPreview {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#masterStillPreview h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 22px;
}

#masterStillImage {
  max-width: 100%;
  max-height: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}

#masterStillPreview button {
  margin: 0 10px;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#masterStillPreview button:first-of-type {
  background: #10b981;
  color: white;
}

#masterStillPreview button:first-of-type:hover {
  background: #059669;
  transform: translateY(-2px);
}

#masterStillPreview button:last-of-type {
  background: #ef4444;
  color: white;
}

#masterStillPreview button:last-of-type:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

/* Spinner Animation */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Voice Test Section */
.voice-test-section {
  margin-top: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.voice-test-section h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
}

.voice-test-section .help-text {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 14px;
}

.voice-test-section textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.voice-test-section textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#audioPlayerContainer {
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #ddd;
}

#audioPlayerContainer > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

#testAudioPlayer {
  flex: 1;
  border-radius: 8px;
}

#audioPlayerContainer .btn {
  flex-shrink: 0;
  min-width: 140px;
}

