/* baseline.css — generatorul de script de bază (pagina /baseline, FAZA 3).
   Mobile-first; responsive 375/768/1280/2560. Grid 1->2 coloane, fără scroll orizontal.
   Fiecare clasă are o regulă (audit CSS). Fără lățimi fixe > 100vw. */

.base { width: 100%; }

/* Grid principal: 1 coloană pe telefon, 2 pe tabletă+desktop. */
.base-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.base-col { min-width: 0; width: 100%; }
.base-col h2 { font-size: var(--fs-md); margin: 0 0 var(--sp-2); }
.base-form-col { min-width: 0; }
.base-out-col { min-width: 0; }

/* Formularul wizard. */
.base-form { display: grid; gap: var(--sp-3); }
.base-form .field { display: block; }
.base-form .field .select,
.base-form .field .input { margin-top: var(--sp-1); }
.base-note { font-size: var(--fs-xs); color: var(--ink-dim); margin: var(--sp-3) 0 0; }

/* Ieșire (fereastră-terminal + pre peste). */
.base-term { position: relative; }
.base-term .terminal { position: relative; z-index: 0; }
.base-out {
  display: block; width: 100%; box-sizing: border-box; margin: 0;
  min-height: 220px; max-height: 70vh; overflow: auto;
  font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.5;
  color: var(--ink); background: #04060c;
  border: var(--border-soft); border-radius: var(--radius-sm);
  padding: var(--sp-3); white-space: pre;
  -webkit-font-smoothing: var(--font-smoothing);
}
.base-out:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* Butoane copiere/descărcare. */
.base-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.base-actions .btn { flex: 0 0 auto; }

/* Responsive: 2 coloane de la tabletă în sus. */
@media (min-width: 601px) {
  .base-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .base-form-col { position: sticky; top: var(--sp-6); }
  .base-out { min-height: 320px; }
}

/* Ecran lat: lățime max. a conținutului, fără lățimi fixe > 100vw. */
@media (min-width: 1921px) {
  .base-grid { max-width: 1500px; }
}

/* Reduced motion: fără tranziții de glow. */
@media (prefers-reduced-motion: reduce) {
  .base-out:focus { outline-offset: 0; }
}
