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

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

.sl-head-actions { margin-left: auto; display: flex; gap: 6px; }

/* ---------- Input ---------- */
.sl-input {
  width: 100%;
  background: #141418;
  border: 1px solid #26262b;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.sl-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232, 70, 124, .18);
}
.sl-input::placeholder { color: #4a4a52; }

/* ---------- Output ---------- */
.sl-out-panel .panel-body {
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(232, 70, 124, .1), transparent 70%),
    var(--card-2);
}
.sl-out {
  display: block;
  min-height: 1.6em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pink-light);
  word-break: break-all;
  user-select: all;
}
.sl-out.is-empty::after {
  content: "your-slug-shows-up-here";
  color: #4a4a52;
  font-weight: 400;
}
.sl-url {
  margin-top: 8px;
  color: #5c5c66;
  font-size: .8rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  word-break: break-all;
}
.sl-url[hidden] { display: none; }

/* ---------- Options ---------- */
.sl-options { display: flex; flex-direction: column; gap: 16px; }
.sl-opt { display: flex; flex-direction: column; gap: 8px; }
.sl-opt-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #74747e;
}

.sl-seg {
  display: flex;
  gap: 4px;
  background: #141418;
  border: 1px solid #1c1c20;
  border-radius: 11px;
  padding: 4px;
}
.sl-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;
}
.sl-seg-btn:hover { color: #c4c4cc; }
.sl-seg-btn.active { background: var(--pink); color: #fff; }
.sl-seg-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(232, 70, 124, .3); }

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

/* ---------- Max length ---------- */
.sl-opt-inline { flex-direction: row; align-items: center; gap: 10px; }
#sl-max {
  width: 80px;
  background: #141418;
  border: 1px solid #26262b;
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  padding: 8px 10px;
  text-align: center;
  outline: none;
  font-variant-numeric: tabular-nums;
}
#sl-max:focus { border-color: var(--pink); }
#sl-max::-webkit-outer-spin-button, #sl-max::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
#sl-max { -moz-appearance: textfield; }
.sl-hint { color: #5c5c66; font-size: .76rem; }

@media (max-width: 520px) {
  .sl-seg { flex-direction: column; }
  .sl-seg-btn { text-align: left; padding: 9px 11px; }
}
