/* MineHubX - Upload Page Styles */

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
}

/* Upload Container */
.upload-container {
  max-width: 900px;
  margin: 3rem auto;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 2rem;
}

/* Upload Header */
.upload-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.upload-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  background: linear-gradient(135deg, #4caf50, #2196f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Progress Steps */
.upload-progress {
  margin-bottom: 2.5rem;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background-color: #4caf50;
  color: white;
  box-shadow: 0 0 0 5px rgba(76, 175, 80, 0.2);
}

.progress-step.active .step-label {
  color: #4caf50;
  font-weight: 600;
}

.progress-step.completed .step-number {
  background-color: #4caf50;
  color: white;
}

.progress-step.completed .step-number::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.progress-line {
  flex: 1;
  height: 3px;
  background-color: var(--bg-tertiary);
  position: relative;
}

.progress-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #4caf50;
  transition: width 0.3s ease;
}

.progress-line.active::before {
  width: 100%;
}

/* Upload Form */
.upload-form {
  position: relative;
}

.upload-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.upload-step.active {
  display: block;
}

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

.upload-step h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.step-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  outline: none;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.required {
  color: #f44336;
}

/* File Upload */
.file-upload-container {
  margin-bottom: 1rem;
}

.file-upload-area {
  position: relative;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.05);
}

.file-upload-area.dragover {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.1);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-message {
  color: var(--text-secondary);
}

.file-upload-message i {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.browse-text {
  color: #4caf50;
  font-weight: 600;
  cursor: pointer;
}

.file-types {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* File Preview */
.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-info i {
  font-size: 2rem;
  color: #4caf50;
}

.file-details {
  text-align: left;
}

.file-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.file-size {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-remove-file {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.btn-remove-file:hover {
  color: #f44336;
}

/* Image Upload */
.image-upload-container {
  margin-bottom: 1rem;
}

.image-upload-area {
  position: relative;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
  cursor: pointer;
}

.image-upload-area:hover {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.05);
}

.image-upload-message {
  color: var(--text-secondary);
}

.image-upload-message i {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.image-preview {
  position: relative;
  margin-top: 1rem;
}

.image-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-remove-image {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-remove-image:hover {
  background-color: rgba(244, 67, 54, 0.8);
}

.screenshots-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.screenshot-item {
  position: relative;
}

.screenshot-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-back {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
}

.btn-back:hover {
  background-color: var(--bg-quaternary);
}

.btn-next, .btn-submit {
  background: linear-gradient(135deg, #4caf50, #2196f3);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-next:hover, .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Review Section */
.review-section {
  background-color: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.review-item {
  display: flex;
  margin-bottom: 0.75rem;
}

.review-label {
  font-weight: 600;
  width: 150px;
  color: var(--text-secondary);
}

.review-value {
  flex: 1;
}

.review-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.review-media img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Error Message */
.form-error {
  color: #f44336;
  font-size: 0.95rem;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .upload-container {
    padding: 1.5rem;
  }
  
  .upload-header h1 {
    font-size: 2rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .step-label {
    font-size: 0.8rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .progress-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .progress-line {
    display: none;
  }
  
  .upload-step h2 {
    font-size: 1.5rem;
  }
}
