/* =====================================================================
 * trecker-helfer-signup.css
 * Public helper signup page (mobile-first).
 * Outer shell: uf-pub-bg / uf-pub-card (trecker-survey-signup.css)
 * Components: hp-btn, hp-modal, hp-field, hp-alert, hp-day-tabs, hp-empty
 *   live in trecker-hp-components.css — no need to redefine them here.
 * ===================================================================== */

/* ─── Wider card for timetable layout ─────────────────────────────── */
.uf-pub-card--helfer {
  max-width: 900px;
}

/* ─── Success icon inside hp-modal ───────────────────────────────── */
.uf-pub-success-icon {
  width: 64px; height: 64px;
  background: var(--hp-primary);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 4px auto 4px;
  box-shadow: 0 4px 16px oklch(from var(--hp-primary) l c h / 0.35);
}

/* ─── Job list ────────────────────────────────────────────────────── */
.uf-pub-jobs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uf-pub-job {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.uf-pub-job:hover {
  border-color: var(--hp-border-2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.uf-pub-job-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(100deg, var(--hp-surface-2) 0%, var(--hp-surface) 100%);
  border-bottom: 1px solid var(--hp-border);
  flex-wrap: wrap;
}

.uf-pub-job-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
}

/* ─── Slot list inside job ────────────────────────────────────────── */
.SignupJob__Slots {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}

/* ─── Slot row ────────────────────────────────────────────────────── */
.SignupSlot {
  border-bottom: 1px solid var(--hp-border);
  background: var(--hp-surface);
}
.SignupSlot:last-child { border-bottom: none; }

.SignupSlot__Tap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}
.SignupSlot__Tap:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.SignupSlot--bookable .SignupSlot__Tap:hover {
  background: oklch(from var(--hp-primary) l c h / 0.07);
}
.SignupSlot--bookable .SignupSlot__Tap:active {
  background: oklch(from var(--hp-primary) l c h / 0.13);
}

.SignupSlot__Time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.SignupSlot__Dash {
  color: var(--hp-mute);
  margin: 0 3px;
  font-weight: 400;
}

.SignupSlot__Right {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.SignupSlot__Dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.SignupSlot__Dot--frei      { background: var(--hp-primary); }
.SignupSlot__Dot--fast-voll { background: var(--hp-warn); }
.SignupSlot__Dot--voll      { background: var(--hp-danger); }

.SignupSlot__Count {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.SignupSlot--frei .SignupSlot__Count      { color: var(--hp-primary); }
.SignupSlot--fast-voll .SignupSlot__Count { color: var(--hp-warn); }
.SignupSlot--voll .SignupSlot__Count      { color: var(--hp-danger); }

.SignupSlot__Badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--hp-surface-2);
  color: var(--hp-ink-3);
  border: 1px solid var(--hp-border);
}

/* Slot fill bar */
.SignupSlot__Fill {
  height: 2px;
  border-radius: 999px;
  background: var(--hp-border);
  overflow: hidden;
  margin: 0 16px 4px;
}
.SignupSlot__Fill span {
  display: block;
  height: 100%;
  background: var(--hp-primary);
  border-radius: 999px;
}
.SignupSlot--voll .SignupSlot__Fill span      { background: var(--hp-danger); }
.SignupSlot--fast-voll .SignupSlot__Fill span { background: var(--hp-warn); }

.SignupSlot__Note {
  padding: 4px 16px 12px;
  font-size: 12px;
  color: var(--hp-ink-3);
}

/* Helper name chips */
.SignupSlot__Names {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.SignupSlot__Name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: var(--hp-surface-2);
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  font-size: 12px;
}
.SignupSlot__NameAvatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--hp-primary-soft);
  color: var(--hp-primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.SignupSlot__NameText { font-weight: 500; }

/* ─── hp-link-url-box used inside hp-modal body ───────────────────── */
.hp-modal .hp-link-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hp-surface-2);
  border: 1px solid var(--hp-border);
  border-radius: 9px;
  padding: 6px 6px 6px 12px;
  overflow: hidden;
}
.hp-modal .hp-link-url {
  flex: 1;
  font-size: 11px;
  color: var(--hp-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ─── hp-required (field label asterisk) ─────────────────────────── */
.hp-required {
  color: var(--hp-danger);
  margin-left: 2px;
}
