/* ==========================================================================
   Paddy Prompt Studio — speed + reverb tools (slowed + reverb, sped up)
   Layers on /blog/style.css and /tools/shared/tool-common.css.
   ========================================================================== */

/* ------------------------------------------------------------ Drop zone */
.fx-drop {
  display: grid; justify-items: center; gap: 0.55rem; text-align: center;
  padding: 1.8rem 1rem; border: 2px dashed rgba(129, 140, 248, 0.45);
  border-radius: 16px; background: rgba(99, 102, 241, 0.06); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fx-drop:hover, .fx-drop:focus-visible, .fx-drop.over { border-color: #22d3ee; background: rgba(34, 211, 238, 0.08); outline: none; }
.fx-drop-title { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0; }
.fx-drop-sub { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.fx-drop-ico { font-size: 2.2rem; line-height: 1; }
.fx-drop-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.3rem; }
.fx-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Once a file is open the drop zone steps aside (and comes back while dragging). */
.fx.has-file .fx-drop { display: none; }
body.dragging .fx.has-file .fx-drop { display: grid; margin-bottom: 0.8rem; }
.fx-work { display: none; }
.fx.has-file .fx-work { display: block; }

.fx[data-state="busy"] .pt-status::after {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.5em; vertical-align: -0.1em;
  border: 2px solid rgba(165, 180, 252, 0.4); border-top-color: #22d3ee; border-radius: 50%;
  animation: pt-spin 0.8s linear infinite;
}

/* ------------------------------------------------------------ Workspace */
.fx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.fx-file-name { margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82rem; color: #a5f3fc; word-break: break-all; }
.fx-lengths { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--text-dim); }
.fx-lengths b { color: var(--text); font-family: "JetBrains Mono", ui-monospace, monospace; }
.fx-wave {
  display: block; width: 100%; height: 110px; cursor: pointer; border-radius: 12px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-soft);
}
.fx-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.7rem; }
.fx-time { margin-left: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85rem; color: var(--text-muted); }
.fx-play[aria-pressed="true"] { background: linear-gradient(135deg, #fb7185, #f59e0b); }

.fx-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0.2rem; }
.fx-presets .chip-btn[aria-pressed="true"] { background: rgba(34, 211, 238, 0.16); border-color: rgba(103, 232, 249, 0.6); color: #a5f3fc; }

.fx-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.7rem; margin-top: 0.8rem; }
.fx-slider { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border-soft); border-radius: 14px; padding: 0.7rem 0.9rem 0.5rem; }
.fx-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.fx-slider-head label { font-weight: 700; font-size: 0.92rem; color: #fff; }
.fx-slider-head output { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85rem; color: #a5f3fc; }
.fx-slider-note { margin: 0; font-size: 0.74rem; color: var(--text-dim); }
.fx-slider.main { border-color: rgba(129, 140, 248, 0.35); background: rgba(99, 102, 241, 0.07); }

.fx-export { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1rem; }
.fx-export .btn-primary { min-width: 14rem; min-height: 52px; font-size: 1rem; }

@media (max-width: 640px) {
  .fx-wave { height: 84px; }
  .fx-export .btn-primary { width: 100%; }
}
