/*
 * HOME — drop / URL-paste page
 * ============================
 * Single column with a generous drop-target card and URL inputs
 * underneath. Centred at desktop widths, full-width on phones.
 */

.dropzone {
  max-width: 640px;
  margin: 32px auto 0;
  padding: 36px 28px;
  text-align: center;
  background: var(--color-surface-card);
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--motion-fast),
              background-color var(--motion-fast);

  h2 { margin: 0 0 8px 0; }

  p {
    color: var(--color-text-secondary);
    margin: 0 0 16px 0;
  }
}

.fd-zone {
  position: relative;
  overflow: hidden;

  &.over {
    border-color: var(--color-blue);
    background: var(--color-blue-tint);
  }
}

.result,
.loading {
  display: none;
}

.input-field {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 20px auto 0;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);

  &::placeholder { color: var(--color-text-muted); }

  &:focus,
  &:focus-visible {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px var(--color-blue-tint);
  }
}

/*
 * Error / status strip — visually absent until something actually
 * writes text into it (otherwise the empty box shows beneath the
 * Compare button).
 */
.message {
  text-align: center;
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--color-error);
}

.message:not(:empty) {
  padding: 16px;
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-sm);
}
