/* =========================================
   GEARLY — JOB ASSISTANT
========================================= */


/* HERO */

.job-hero {
  padding: 70px 0 65px;

  text-align: center;
}

.job-hero .container {
  max-width: 900px;
}


.back-link {
  display: inline-flex;

  margin-bottom: 30px;

  color: var(--muted);

  font-size: 13px;

  font-weight: 700;

  text-decoration: none;

  transition: color .2s ease;
}

.back-link:hover {
  color: var(--text);
}


.job-badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 8px 14px;

  margin-bottom: 20px;

  border-radius: 999px;

  background: var(--accent-soft);

  color: var(--accent-dark);

  font-size: 12px;

  font-weight: 800;
}


.job-badge span {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: var(--accent);
}


.job-hero h1 {
  margin: 0;

  font-size: clamp(48px, 7vw, 78px);

  line-height: .98;

  letter-spacing: -4px;
}

.job-hero h1 span {
  display: block;

  color: var(--accent);
}


.job-hero p {
  max-width: 620px;

  margin: 25px auto 0;

  color: var(--muted);

  font-size: 16px;

  line-height: 1.7;
}


/* =========================================
   MAIN
========================================= */

.job-section {
  padding: 20px 0 100px;
}


.section-intro {
  margin-bottom: 35px;
}

.section-intro h2 {
  margin: 10px 0 12px;

  font-size: clamp(32px, 4vw, 48px);

  letter-spacing: -2px;
}

.section-intro p {
  margin: 0;

  color: var(--muted);

  line-height: 1.7;
}


.eyebrow {
  color: var(--accent-dark);

  font-size: 11px;

  font-weight: 850;

  letter-spacing: 1px;

  text-transform: uppercase;
}


/* =========================================
   JOB SELECTOR
========================================= */

.job-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;
}


.job-card {
  position: relative;

  min-height: 270px;

  padding: 24px;

  border: 1px solid var(--line);

  border-radius: 20px;

  background: var(--card);

  color: var(--text);

  text-align: left;

  cursor: pointer;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}


.job-card:hover {
  transform: translateY(-5px);

  border-color: var(--accent);

  box-shadow:
    0 18px 40px
    rgba(17, 24, 39, .08);
}


.job-card-featured {
  background: var(--accent);

  border-color: var(--accent);

  color: white;
}


.job-card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;
}


.job-icon {
  display: grid;

  width: 48px;

  height: 48px;

  place-items: center;

  border-radius: 14px;

  background: var(--accent-soft);

  color: var(--accent-dark);

  font-size: 20px;

  font-weight: 800;
}


.job-card-featured .job-icon {
  background: rgba(255, 255, 255, .16);

  color: white;
}


.job-card-top > span {
  color: var(--muted);

  font-size: 11px;

  font-weight: 800;
}


.job-card-featured .job-card-top > span {
  color: rgba(255, 255, 255, .7);
}


.job-card h3 {
  margin: 42px 0 10px;

  font-size: 18px;
}


.job-card p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.65;
}


.job-card-featured p {
  color: rgba(255, 255, 255, .8);
}


.job-card-arrow {
  position: absolute;

  right: 22px;

  bottom: 22px;

  display: grid;

  width: 38px;

  height: 38px;

  place-items: center;

  border-radius: 50%;

  background: #f2f3f5;

  color: var(--text);

  font-weight: 800;
}


.job-card-featured .job-card-arrow {
  background: white;

  color: var(--accent-dark);
}


/* =========================================
   WORKSPACE
========================================= */

.job-workspace {
  animation: workspaceIn .35s ease;
}


@keyframes workspaceIn {

  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


.workspace-header {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 25px;
}


.change-job-button {
  padding: 0;

  margin-bottom: 20px;

  border: 0;

  background: transparent;

  color: var(--muted);

  font-size: 13px;

  font-weight: 750;

  cursor: pointer;
}

.change-job-button:hover {
  color: var(--text);
}


.workspace-label {
  display: block;

  margin-bottom: 8px;

  color: var(--accent-dark);

  font-size: 11px;

  font-weight: 850;

  letter-spacing: 1px;

  text-transform: uppercase;
}


.workspace-header h2 {
  margin: 0;

  font-size: clamp(34px, 5vw, 56px);

  letter-spacing: -3px;
}


.completion-box {
  min-width: 120px;

  padding: 18px 20px;

  border: 1px solid var(--line);

  border-radius: 16px;

  background: var(--card);

  text-align: right;
}


.completion-box span {
  display: block;

  margin-bottom: 4px;

  color: var(--muted);

  font-size: 11px;

  font-weight: 700;
}


.completion-box strong {
  font-size: 25px;
}


/* PROGRESS */

.job-progress {
  width: 100%;

  height: 8px;

  overflow: hidden;

  margin-bottom: 30px;

  border-radius: 999px;

  background: #eceef1;
}


.job-progress-fill {
  width: 0;

  height: 100%;

  border-radius: inherit;

  background: var(--accent);

  transition: width .3s ease;
}


/* =========================================
   WORKSPACE LAYOUT
========================================= */

.workspace-layout {
  display: grid;

  grid-template-columns: 250px 1fr;

  gap: 28px;

  align-items: start;
}


.job-sidebar {
  position: sticky;

  top: 100px;
}


.job-info-card {
  padding: 20px;

  margin-bottom: 14px;

  border: 1px solid var(--line);

  border-radius: 17px;

  background: var(--card);
}


.info-label {
  display: block;

  margin-bottom: 8px;

  color: var(--muted);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;

  text-transform: uppercase;
}


.job-info-card strong {
  font-size: 14px;
}


/* SECTION NAVIGATION */

.section-navigation {
  display: flex;

  flex-direction: column;

  gap: 5px;
}


.section-nav-button {
  padding: 10px 0;

  border: 0;

  border-bottom: 1px solid var(--line);

  background: transparent;

  color: var(--muted);

  font-size: 12px;

  font-weight: 700;

  text-align: left;

  cursor: pointer;
}

.section-nav-button:last-child {
  border-bottom: 0;
}

.section-nav-button:hover {
  color: var(--accent-dark);
}


.reset-job-button {
  width: 100%;

  padding: 13px;

  border: 1px solid var(--line);

  border-radius: 12px;

  background: transparent;

  color: var(--muted);

  font-size: 12px;

  font-weight: 750;

  cursor: pointer;
}

.reset-job-button:hover {
  background: white;

  color: var(--text);
}


/* =========================================
   CHECKLIST
========================================= */

.checklist-area {
  display: flex;

  flex-direction: column;

  gap: 20px;
}


.checklist-section {
  overflow: hidden;

  border: 1px solid var(--line);

  border-radius: 20px;

  background: var(--card);
}


.checklist-section-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 22px 24px;

  border-bottom: 1px solid var(--line);
}


.checklist-section-title {
  display: flex;

  align-items: center;

  gap: 12px;
}


.section-number {
  display: grid;

  width: 32px;

  height: 32px;

  place-items: center;

  border-radius: 9px;

  background: var(--accent-soft);

  color: var(--accent-dark);

  font-size: 11px;

  font-weight: 850;
}


.checklist-section h3 {
  margin: 0;

  font-size: 17px;
}


.section-count {
  color: var(--muted);

  font-size: 11px;

  font-weight: 700;
}


/* CHECKLIST ITEM */

.checklist-items {
  padding: 8px 24px;
}


.checklist-item {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 17px 0;

  border-bottom: 1px solid var(--line);

  cursor: pointer;
}

.checklist-item:last-child {
  border-bottom: 0;
}


.checklist-item input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.custom-checkbox {
  flex: 0 0 auto;

  display: grid;

  width: 22px;

  height: 22px;

  place-items: center;

  margin-top: 1px;

  border: 1px solid var(--line);

  border-radius: 7px;

  background: white;

  color: white;

  font-size: 12px;

  transition:
    background .2s ease,
    border-color .2s ease;
}


.checklist-item input:checked
+ .custom-checkbox {
  border-color: var(--accent);

  background: var(--accent);
}


.checklist-content strong {
  display: block;

  font-size: 13px;

  transition: opacity .2s ease;
}


.checklist-content p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.6;
}


.checklist-item:has(input:checked) strong {
  opacity: .5;

  text-decoration: line-through;
}


/* =========================================
   NOTES
========================================= */

.notes-section {
  margin-top: 28px;

  padding: 25px;

  border: 1px solid var(--line);

  border-radius: 20px;

  background: var(--card);
}


.notes-heading {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 20px;
}


.notes-heading h3 {
  margin: 8px 0 0;

  font-size: 20px;
}


.notes-status {
  color: var(--muted);

  font-size: 11px;

  font-weight: 700;
}


.notes-section textarea {
  width: 100%;

  min-height: 150px;

  padding: 16px;

  resize: vertical;

  border: 1px solid var(--line);

  border-radius: 14px;

  outline: none;

  background: #fafafa;

  color: var(--text);

  font-family: inherit;

  font-size: 13px;

  line-height: 1.6;
}


.notes-section textarea:focus {
  border-color: var(--accent);

  box-shadow:
    0 0 0 4px
    rgba(255, 107, 53, .08);
}


/* =========================================
   COMPLETE
========================================= */

.job-complete {
  display: flex;

  align-items: center;

  gap: 18px;

  margin-top: 28px;

  padding: 24px;

  border: 1px solid var(--accent);

  border-radius: 20px;

  background: var(--accent-soft);
}


.complete-icon {
  display: grid;

  width: 46px;

  height: 46px;

  place-items: center;

  border-radius: 50%;

  background: var(--accent);

  color: white;

  font-weight: 900;
}


.job-complete h3 {
  margin: 0 0 5px;

  font-size: 18px;
}


.job-complete p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .job-sidebar {
    position: static;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
  }

  .job-info-card {
    margin-bottom: 0;
  }

  .reset-job-button {
    grid-column: 1 / -1;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

  .job-hero {
    padding: 50px 0;
  }

  .job-hero h1 {
    letter-spacing: -3px;
  }

  .job-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    min-height: 230px;
  }

  .workspace-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .completion-box {
    width: 100%;

    text-align: left;
  }

  .job-sidebar {
    grid-template-columns: 1fr;
  }

  .checklist-section-header {
    align-items: flex-start;

    gap: 15px;
  }

  .checklist-items {
    padding: 8px 18px;
  }

  .notes-heading {
    flex-direction: column;
  }

}