/* Dodatki do style.css dla strony Foto. */

.brand-name { white-space: nowrap; }
.tool-area { max-width: 900px; }

/* Pole wrzucania zdjęć */
.drop {
  position: relative; display: block; overflow: hidden; cursor: pointer;
  background: var(--panel); border: 2px solid var(--ink); border-radius: 4px;
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 18px 24px; }
.drop-title { margin: 0; font: 700 clamp(1.7rem, 6vw, 2.4rem)/1.05 var(--display); font-stretch: 75%; }
.drop-sub { margin: 0; color: var(--muted); }
.drop-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; margin-top: 4px;
  border-radius: 4px; background: var(--ink); color: var(--bg); font-weight: 700;
}
.drop:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.drop.over { border-style: dashed; border-color: var(--blue); }
.drop.over .drop-btn { background: var(--blue); color: var(--blue-ink); }

/* Ustawienia */
.opts { margin-top: 22px; }
.settings output { font-weight: 700; }
.settings input[type="range"] { width: 100%; height: 48px; accent-color: var(--blue); }
.settings select:disabled, .settings input:disabled { opacity: 0.5; }

/* Lista wyników */
.results { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--ink); }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; }
.results-head h2 { margin: 0; font: 700 1.55rem/1.15 var(--display); font-stretch: 75%; }
.total { margin: 6px 0 0; font-size: 1rem; }
.total strong { font: 700 1.3rem/1.2 var(--display); font-stretch: 75%; }
.results-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.btn[disabled] { opacity: 0.5; cursor: default; pointer-events: none; }

.files { margin: 10px 0 0; padding: 0; list-style: none; }
.file {
  display: grid; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--rule);
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas: "thumb info" "thumb act";
}
.file:last-child { border-bottom: 1px solid var(--rule); }
.thumb {
  grid-area: thumb; width: 72px; height: 72px; object-fit: cover;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--rule);
}
.file-info { grid-area: info; min-width: 0; }
.file-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.file-meta { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.file-meta strong { color: var(--ink); font: 700 1.05rem/1.2 var(--display); font-stretch: 75%; }
.file-warn { margin: 4px 0 0; padding-left: 8px; border-left: 4px solid var(--yellow); font-size: 0.9rem; }
.file-act { grid-area: act; }
.file.error .file-meta { color: var(--ink); }

@media (min-width: 700px) {
  .file { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb info act"; align-items: center; }
}

.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; }
