/**
 * Upload Wizard Styles
 * ====================
 * Uses existing CSS variables from styles.css
 */

/* Wizard Container */
.upload-wizard {
  width: 100%;
}

/* Step Indicator */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  opacity: 0.5;
  transition: var(--transition-base);
}

.wizard-step.active {
  opacity: 1;
  background: rgba(0, 51, 102, 0.08);
}

.wizard-step.complete {
  opacity: 0.8;
}

.wizard-step.complete .step-icon {
  color: var(--success);
}

.step-icon {
  font-size: 20px;
}

.step-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
}

.wizard-step.active .step-label {
  color: var(--uwc-blue);
}

.step-connector {
  width: 24px;
  height: 2px;
  background: var(--gray-300);
  border-radius: 1px;
}

/* Wizard Panel */
.wizard-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Context (shows current selections) */
.wizard-context {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.context-icon {
  font-size: 16px;
}

.context-text {
  font-weight: 500;
  color: var(--gray-800);
}

.context-size {
  font-size: 12px;
  color: var(--gray-500);
}

.context-badge {
  color: var(--gray-500);
  font-weight: 300;
}

/* Drop Zones */
.wizard-panel .drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--white);
}

.wizard-panel .drop-zone:hover {
  border-color: var(--uwc-blue);
  background: rgba(0, 51, 102, 0.03);
}

.wizard-panel .drop-zone.drag-over {
  border-color: var(--uwc-blue);
  background: rgba(0, 51, 102, 0.06);
  transform: scale(1.01);
}

.wizard-panel .drop-zone-secondary {
  padding: 24px 16px;
}

.wizard-panel .drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wizard-panel .drop-icon {
  font-size: 36px;
}

.wizard-panel .drop-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.wizard-panel .drop-subtext {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
}

.wizard-panel .drop-hint {
  font-size: 11px;
  color: var(--gray-500);
  margin: 8px 0 0 0;
}

/* Format Badges */
.format-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.wizard-panel .format-badge {
  padding: 4px 8px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
}

/* Wizard Sections */
.wizard-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.section-icon {
  font-size: 16px;
}

/* Texture List */
.texture-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.texture-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.texture-item.provided {
  background: rgba(40, 167, 69, 0.1);
}

.texture-item.missing {
  opacity: 0.7;
}

.texture-status {
  font-size: 14px;
}

.texture-name {
  font-family: 'Monaco', 'Consolas', monospace;
  color: var(--gray-800);
  word-break: break-all;
}

/* Wizard Actions */
.wizard-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Ready State */
.wizard-ready {
  text-align: center;
}

.ready-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ready-icon {
  font-size: 32px;
}

.ready-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
}

/* Ready Summary */
.ready-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-icon {
  font-size: 16px;
  width: 24px;
}

.summary-label {
  font-size: 12px;
  color: var(--gray-500);
  width: 70px;
}

.summary-value {
  flex: 1;
  font-weight: 500;
  color: var(--gray-800);
  word-break: break-all;
}

.summary-size {
  font-size: 12px;
  color: var(--gray-500);
}

.summary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-600);
}

.note-icon {
  font-size: 14px;
}

/* Error */
.wizard-error {
  display: none;
  padding: 12px 16px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 16px;
}

.wizard-error.active {
  display: block;
}

/* Large button variant */
.btn-large {
  padding: 14px 28px;
  font-size: 15px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .wizard-steps {
    gap: 4px;
    padding: 12px 8px;
  }
  
  .wizard-step {
    padding: 6px 8px;
  }
  
  .step-label {
    font-size: 10px;
  }
  
  .step-connector {
    width: 12px;
  }
  
  .wizard-context {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .wizard-actions {
    flex-direction: column;
  }
  
  .wizard-actions .btn {
    width: 100%;
  }
}
