/* ═══════════════════════════════════════════════════════════════
   UPLOAD.CSS — Upload Preset Page
   Dark editorial theme with interactive upload zones
   ═══════════════════════════════════════════════════════════════ */

.upload-container {
  max-width: 700px;
  margin: 120px auto 80px;
  padding: 0 40px;
}

.upload-header {
  text-align: center;
  margin-bottom: 40px;
}

.upload-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 14px;
}

.upload-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.upload-subtitle {
  color: #8a8578;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
}

/* ─── Form Card ──────────────────────────────────────────────── */
.upload-form {
  background: #141414;
  padding: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #8a8578;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #f0ece4;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
  resize: vertical;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
  color: #4a4640;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

/* ─── Drop Zone ──────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.04);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-zone-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.drop-zone-label {
  font-size: 14px;
  color: #f0ece4;
  font-weight: 500;
  margin-bottom: 4px;
}

.drop-zone-hint {
  font-size: 12px;
  color: #8a8578;
}

/* ─── Image Preview Grid ─────────────────────────────────────── */
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.preview-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

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

/* ─── File Indicator ─────────────────────────────────────────── */
.file-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #c9a84c;
}

.file-indicator svg {
  width: 18px;
  height: 18px;
  stroke: #c9a84c;
  flex-shrink: 0;
}

.file-indicator .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* ─── Divider ────────────────────────────────────────────────── */
.form-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin: 8px 0 28px;
}

/* ─── Submit Button ──────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Messages ───────────────────────────────────────────────── */
.error-msg {
  color: #c44c4c;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
  padding: 12px;
  background: rgba(196, 76, 76, 0.08);
  border: 1px solid rgba(196, 76, 76, 0.15);
  border-radius: 8px;
  display: none;
}

.error-msg.visible { display: block; }

.success-msg {
  color: #4caf50;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
  padding: 12px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.15);
  border-radius: 8px;
  display: none;
}

.success-msg.visible { display: block; }

/* ─── Guidelines ─────────────────────────────────────────────── */
.upload-guidelines {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 13px;
  color: #8a8578;
  line-height: 1.7;
}

.upload-guidelines strong {
  display: block;
  color: #f0ece4;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ─── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #c9a84c;
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .upload-container {
    margin-top: 100px;
    padding: 0 20px;
  }

  .upload-form {
    padding: 28px 24px;
  }
}
