/**
 * WordPress Salt Generator — tool styles
 *
 * Layout and the config readout only. Buttons, cards, alerts and stat tiles all
 * come from frikwork; nothing here restyles a frikwork component.
 */

.wpsalt-layout {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: var(--fw-space-lg);
  align-items: start;
}

.wpsalt-results {
  display: flex;
  flex-direction: column;
  gap: var(--fw-space-lg);
}

/* --- Left column: the explainer -------------------------------------------- */

.wpsalt-intro { margin: 0; color: var(--fw-text-2); }

.wpsalt-subhead {
  display: flex;
  align-items: center;
  gap: var(--fw-space-xs);
  margin: var(--fw-space-lg) 0 var(--fw-space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fw-text-muted);
}
.wpsalt-subhead i { color: var(--fw-brand-text); }

/* Nine constants read as a wall in a single column; two columns of chips keeps
   the explainer panel roughly the height of the output box beside it. */
.wpsalt-keys {
  list-style: none;
  margin: 0 0 var(--fw-space-lg);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: var(--fw-space-xs);
}
.wpsalt-keys code { font-size: 0.75rem; overflow-wrap: anywhere; }

.wpsalt-notes {
  margin: var(--fw-space-xs) 0 0;
  padding-left: 1.1rem;
}
.wpsalt-notes li { margin-block: 0.2rem 0; }

.wpsalt-generate { margin-top: var(--fw-space-lg); }

/* --- The generated block --------------------------------------------------- */

.wpsalt-output {
  margin: 0;
  min-height: 24rem;
  max-height: 34rem;
  overflow: auto;
  padding: var(--fw-space-md);
  background: var(--fw-bg-2);
  color: var(--fw-text);
  font-size: 0.78rem;
  line-height: 1.75;
  /* 64-character runs have no break opportunities, so force them. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wpsalt-output:focus-visible { outline: 2px solid var(--fw-brand); outline-offset: 2px; }

/* Placeholder and busy states centre their single line; the real output does
   not, or every block would start halfway down the box. */
.wpsalt-output--placeholder,
.wpsalt-output--busy {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--fw-text-muted);
}

.wpsalt-output--ready { border-color: var(--fw-brand); }

.wpsalt-output::-webkit-scrollbar { width: 10px; }
.wpsalt-output::-webkit-scrollbar-track {
  background: var(--fw-bg);
  border-radius: var(--fw-radius-sm);
}
.wpsalt-output::-webkit-scrollbar-thumb {
  background: var(--fw-border);
  border-radius: var(--fw-radius-sm);
}
.wpsalt-output::-webkit-scrollbar-thumb:hover { background: var(--fw-brand); }

/* --- Below the block -------------------------------------------------------- */

.wpsalt-instructions { margin-top: var(--fw-space-lg); }
.wpsalt-steps {
  margin: var(--fw-space-xs) 0 0;
  padding-left: 1.1rem;
}
.wpsalt-steps li { margin-block: 0.2rem 0; }

.wpsalt-stats { margin-top: var(--fw-space-lg); }
.wpsalt-stats .app-stat { padding: var(--fw-space-md); }
.wpsalt-stats .app-stat__value { font-size: 1.5rem; }

.wpsalt-note .app-panel__body {
  padding-top: var(--fw-space-md);
  padding-bottom: var(--fw-space-md);
}

@media (max-width: 900px) {
  .wpsalt-layout { grid-template-columns: 1fr; }
  .wpsalt-output { min-height: 18rem; font-size: 0.72rem; }
}

@media (max-width: 576px) {
  .wpsalt-output { padding: var(--fw-space-sm); font-size: 0.68rem; }
}
