/* Upload page styles — uses same design tokens as theme.css */

.upload-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 48px 120px;
}

.upload-header {
  margin-bottom: 48px;
}

.upload-heading {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.upload-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

/* Tabs */
.upload-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tab-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* URL input */
.url-input-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}

.url-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.url-input:focus { border-color: var(--accent); }
.url-input::placeholder { color: var(--muted); }

.input-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--accent); }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 60px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.drop-icon {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}

.drop-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.drop-sub { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.drop-limit { font-size: 13px; color: var(--muted); opacity: 0.7; }

.file-status {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
}

/* Progress */
.upload-progress {
  margin-top: 16px;
}

.progress-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-bar {
  background: var(--border);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 8px;
  width: 0%;
  transition: width 0.3s;
}

/* Processing state */
.processing-state {
  text-align: center;
  padding: 60px 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 28px;
}

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

#processingTitle {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

#processingSub { font-size: 15px; color: var(--muted); margin-bottom: 40px; }

/* Status steps */
.status-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
  text-align: left;
}

.status-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.3s;
}

.status-step.done {
  border-color: var(--accent);
  color: var(--text);
}

.status-step.done .step-indicator {
  background: var(--accent);
  color: #000;
}

.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Error */
.error-state { text-align: center; padding: 40px 0; }
.error-text {
  font-size: 16px;
  color: #ef4444;
  margin-bottom: 20px;
}

/* Nav link */
.nav-link { font-size: 14px; }