/*
 * THE DEDICATED CAPTURE WELL. Its drop state is the accent — THE TOKEN, not a
 * fixed blue, or a themed app's most conspicuous state stays brand blue.
 *
 * The disc turns WHITE on the wash rather than a deeper tint of it: the deeper
 * tint has no token, and a lifted white disc reads as raised at every hue.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: var(--lotics-file-dropzone-min-height);
    gap: var(--lotics-space-6);
    padding-inline: var(--lotics-space-16);
    padding-block: var(--lotics-space-16);
    border-width: 1.5px;
    border-style: dashed;
    border-color: var(--input);
    border-radius: var(--lotics-radius-control);
    background-color: var(--lotics-wash-hover);
    appearance: none;
    cursor: default;
    transition:
      background-color var(--lotics-duration-fast) var(--lotics-ease-standard),
      border-color var(--lotics-duration-fast) var(--lotics-ease-standard);
  }

  /* THE LINE — the same well laid on a control row, because an empty section
     inside a record costs a line and so does the intake it offers. */
  .lotics-file-dropzone[data-compact] {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--lotics-space-8);
    padding-inline: var(--lotics-space-12);
    padding-block: var(--lotics-space-6);
  }

  /* The two runs of words, as ONE box — in the well a stack under the disc, and
     on the line a row beside the glyph. */
  .lotics-file-dropzone__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lotics-space-6);
  }

  /* AND THE LINE GIVES WAY AS A LINE: the two run side by side while both FIT and
     stack whole when they do not. Baseline, because a row of two type rungs is
     read off one line and the taller one is not the middle. */
  .lotics-file-dropzone[data-compact] .lotics-file-dropzone__text {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    column-gap: var(--lotics-space-8);
    row-gap: 0;
  }

  .lotics-file-dropzone:hover:not([data-dragover]) {
    border-color: var(--lotics-border-hover);
    background-color: var(--lotics-wash-selected);
  }

  .lotics-file-dropzone[data-dragover] {
    border-color: var(--lotics-accent);
    background-color: var(--lotics-accent-wash);
    --lotics-icon-color: var(--lotics-accent);
  }

  .lotics-file-dropzone[data-disabled] {
    opacity: 0.5;
  }

  .lotics-file-dropzone:focus-visible {
    outline: var(--lotics-ring-width) solid var(--ring);
    outline-offset: 0;
  }

  .lotics-file-dropzone__well {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* The disc's own measure — a 40px well, not a rung on the spacing scale. */
    width: 40px;
    height: 40px;
    border-radius: var(--lotics-radius-full);
    background-color: var(--lotics-wash-press);
    --lotics-icon-color: var(--lotics-ink-muted);
  }

  .lotics-file-dropzone[data-dragover] .lotics-file-dropzone__well {
    background-color: var(--lotics-white);
  }

  .lotics-file-dropzone[data-dragover] .lotics-file-dropzone__label {
    color: var(--lotics-accent);
  }
}
