/* ============================================================
   UPLOAD PAGE STYLES
   ============================================================ */

.upload-wrapper {
  padding-top: 80px;
  min-height: 100vh;
}

.upload-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
}

/* ============================================================
   DROP ZONE
   ============================================================ */
.drop-zone {
  border: 2px dashed var(--color-sage);
  border-radius: 12px;
  background: rgba(141, 181, 163, 0.06);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--color-forest);
  background: rgba(28, 74, 46, 0.06);
}

.drop-zone.drag-over { transform: scale(1.01); }

.drop-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--color-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.drop-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.drop-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.drop-subtitle {
  color: var(--color-slate);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.drop-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--color-forest);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.drop-btn:hover { background: var(--color-slate); }

.drop-hint {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(61, 89, 71, 0.6);
}

#file-input {
  display: none;
}

/* ============================================================
   NAME FIELD
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(141, 181, 163, 0.4);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-forest);
}

.form-input::placeholder { color: rgba(61, 89, 71, 0.45); }

/* ============================================================
   FILE PREVIEWS
   ============================================================ */
.preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.preview-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-thumb .video-icon {
  color: var(--color-slate);
  font-size: 1.5rem;
}

.preview-info {
  flex: 1;
  min-width: 0;
}

.preview-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-black);
}

.preview-size {
  font-size: 0.75rem;
  color: var(--color-slate);
  margin-top: 0.15rem;
}

.preview-progress {
  height: 4px;
  background: rgba(141, 181, 163, 0.25);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.preview-progress-bar {
  height: 100%;
  background: var(--color-forest);
  border-radius: 2px;
  transition: width 0.1s linear;
  width: 0%;
}

.preview-status {
  font-size: 0.72rem;
  margin-top: 0.25rem;
}

.preview-status.uploading { color: var(--color-sage); }
.preview-status.done      { color: #15803d; }
.preview-status.error     { color: #b91c1c; }

.preview-remove {
  background: none;
  border: none;
  color: var(--color-slate);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.preview-remove:hover { opacity: 1; }

/* ============================================================
   UPLOAD BUTTON & STATUS
   ============================================================ */
.upload-btn-wrap {
  text-align: center;
}

#upload-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.upload-note {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(141, 181, 163, 0.12);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-slate);
  border-left: 3px solid var(--color-sage);
}

.upload-success {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(28, 74, 46, 0.06);
  border-radius: 12px;
  display: none;
}

.upload-success.show { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--color-forest);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
  fill: none;
}

.upload-success h2 {
  margin-bottom: 0.75rem;
}

.upload-success p {
  color: var(--color-slate);
  margin-bottom: 1.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .upload-container { padding: 1.25rem; }
  .drop-zone { padding: 2rem 1.25rem; }
}
