/* Sober AF Jobs — dashboard + public styles. Scoped to .saf-jobs-* roots. */

.saf-jobs-employer,
.saf-jobs-admin {
  display: block;
}

.saf-jobs-employer__head,
.saf-jobs-admin__section h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.saf-jobs-employer__form .saf-jobs-employer__field,
.saf-jobs-employer__form label,
.saf-jobs-editor__field {
  display: block;
  margin: 0.6rem 0;
}

.saf-jobs-employer__form label span,
.saf-jobs-editor__field span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.saf-jobs-employer__form input[type="text"],
.saf-jobs-editor__field input,
.saf-jobs-editor__field textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
}

.saf-jobs-editor__field textarea {
  min-height: 7rem;
}

.saf-jobs-row,
.saf-jobs-emp,
.saf-jobs-app {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0.6rem 0;
  background: #fff;
}

.saf-jobs-row__head,
.saf-jobs-emp__head,
.saf-jobs-app__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.saf-jobs-row__meta,
.saf-jobs-emp__meta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  color: #555;
  font-size: 0.9rem;
  margin: 0.4rem 0;
}

.saf-jobs-row__actions,
.saf-jobs-emp__actions,
.saf-jobs-app__actions,
.saf-jobs-editor__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.saf-jobs-pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  background: #eee;
  color: #444;
}
.saf-jobs-pill--publish,
.saf-jobs-pill--approved {
  background: #d8f1de;
  color: #14632b;
}
.saf-jobs-pill--pending,
.saf-jobs-pill--reviewing,
.saf-jobs-pill--received {
  background: #fdf0d2;
  color: #7a5410;
}
.saf-jobs-pill--denied,
.saf-jobs-pill--rejected,
.saf-jobs-pill--revoked,
.saf-jobs-pill--withdrawn {
  background: #f7dada;
  color: #8a1f1f;
}

.saf-jobs-row__note {
  font-size: 0.75rem;
  color: #8a1f1f;
}

.saf-jobs-apps {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e0e0e0;
}

.saf-jobs-editor {
  border: 2px solid #9a2828;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  background: #fff;
}

@media (max-width: 600px) {
  .saf-jobs-employer__head,
  .saf-jobs-row__head,
  .saf-jobs-emp__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- public directory + single ---- */
.saf-jobs-directory__filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1.4rem;
}
.saf-jobs-directory__filters input,
.saf-jobs-directory__filters select {
  padding: 0.55rem 0.7rem;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  min-width: 0;
  flex: 1 1 12rem;
}
.saf-jobs-directory__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.saf-jobs-directory__card {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.saf-jobs-directory__card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.saf-jobs-directory__card-link {
  display: block;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
}
.saf-jobs-directory__card-title {
  display: block;
  font-weight: 700;
  font-size: 1.08rem;
  color: #9a2828;
}
.saf-jobs-directory__card-company {
  display: block;
  color: #444;
  margin: 0.15rem 0;
}
.saf-jobs-directory__card-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}
.saf-jobs-directory__pager {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.saf-jobs-directory__empty {
  color: #666;
  padding: 2rem 0;
}

.saf-job-detail {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 2px solid #9a2828;
}
.saf-job-detail__meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.2rem;
  margin: 0 0 1.4rem;
}
.saf-job-detail__meta dt {
  font-weight: 700;
  color: #555;
}
.saf-job-detail__meta dd {
  margin: 0;
}
.saf-job-apply {
  background: #faf8f3;
  border: 1px solid #e6e0d4;
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  max-width: 36rem;
}
.saf-job-apply__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.saf-job-apply label {
  display: block;
  margin: 0.7rem 0;
}
.saf-job-apply label span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.saf-job-apply input,
.saf-job-apply textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
}
.saf-job-apply__done {
  background: #d8f1de;
  color: #14632b;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-weight: 600;
}
.saf-job-apply__msg:not(:empty) {
  color: #8a1f1f;
  margin-top: 0.6rem;
}
.saf-job-detail__apply-link {
  display: inline-block;
  margin-top: 0.5rem;
}
