/* PDFlyHQ — tools/compare-pdf/upload.css
   Two side-by-side dropzones instead of the usual single one. Base
   .dropzone (border/radius/hover) lives in components/dropzone.css;
   .dropzone--compare only overrides sizing since two must fit one row.
   JS contract: #dropzone-a/#dropzone-b, #btn-browse-a/#btn-browse-b,
   #file-input-a/#file-input-b. */

.compare-upload {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 640px) {
  .compare-upload { grid-template-columns: 1fr auto 1fr; }
}

.dropzone--compare {
  padding: var(--space-6) var(--space-4);
  gap: var(--space-2);
}

.dropzone__label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-600);
}
:root[data-theme="dark"] .dropzone__label { color: var(--color-primary-400); }

.dropzone--compare .dropzone__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--color-primary-500) 12%, transparent);
  transition: transform var(--duration-base) var(--ease-bounce);
}
.dropzone--compare .dropzone__icon svg { width: 24px; height: 24px; }
.dropzone--compare:hover .dropzone__icon { transform: translateY(-2px); }
.dropzone--compare.dropzone--dragover .dropzone__icon { transform: translateY(-4px) scale(1.04); }

.dropzone--compare .dropzone__title { font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--color-text-secondary); margin: 0; }
.dropzone--compare .dropzone__filename {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-upload__vs {
  justify-self: center;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.compare-upload__hint {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  text-align: center;
}
