/* LoremGen — tool-specific styles.
   Shared styles (nav, panels, buttons) live in ../../css/style.css */

.lo {
  max-width: 820px;
  margin: 6px auto 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Controls ---------- */
.lo-controls { display: flex; flex-direction: column; gap: 16px; }
.lo-row { display: flex; gap: 12px; align-items: flex-end; }
.lo-field { display: flex; flex-direction: column; gap: 8px; }
.lo-field-grow { flex: 1; min-width: 0; }
.lo-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #74747e;
}

#lo-count {
  width: 96px;
  background: #141418;
  border: 1px solid #26262b;
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
  outline: none;
  font-variant-numeric: tabular-nums;
}
#lo-count:focus { border-color: var(--pink); }
#lo-count::-webkit-outer-spin-button, #lo-count::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
#lo-count { -moz-appearance: textfield; }

.lo-seg {
  display: flex;
  gap: 4px;
  background: #141418;
  border: 1px solid #1c1c20;
  border-radius: 11px;
  padding: 4px;
}
.lo-seg-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  background: none;
  color: #74747e;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lo-seg-btn:hover { color: #c4c4cc; }
.lo-seg-btn.active { background: var(--pink); color: #fff; }
.lo-seg-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(232, 70, 124, .3); }

/* ---------- Switches ---------- */
.lo-options { display: flex; flex-direction: column; gap: 10px; }
.lo-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .86rem;
  color: #c4c4cc;
  cursor: pointer;
}
.lo-switch em { font-style: normal; color: #5c5c66; }
.lo-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lo-switch-track {
  flex: none;
  width: 36px; height: 20px;
  border-radius: 999px;
  background: #2a2a31;
  position: relative;
  transition: background .18s;
}
.lo-switch-track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #74747e;
  transition: transform .18s, background .18s;
}
.lo-switch input:checked + .lo-switch-track { background: rgba(232, 70, 124, .35); }
.lo-switch input:checked + .lo-switch-track::after {
  transform: translateX(16px);
  background: var(--pink);
}
.lo-switch input:focus-visible + .lo-switch-track { box-shadow: 0 0 0 3px rgba(232, 70, 124, .3); }

.lo-actions { display: flex; gap: 8px; align-items: center; }
.lo-go { flex: 1; padding: 12px; font-size: .92rem; }

/* ---------- Output ---------- */
.lo-stats {
  margin-left: auto;
  color: #5c5c66;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}
.lo-out {
  margin: 0;
  max-height: 55vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #c4c4cc;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .92rem;
  line-height: 1.75;
  user-select: all;
}
.lo-out:empty::after {
  content: "Hit Generate.";
  color: #4a4a52;
  font-size: .85rem;
}

@media (max-width: 620px) {
  .lo-row { flex-direction: column; align-items: stretch; }
  #lo-count { width: 100%; }
  .lo-seg { flex-wrap: wrap; }
  .lo-seg-btn { flex: 1 1 40%; }
}
