/* =========================================
   IŠSAUGOTŲ SKELBIMŲ MODALAS
   ========================================= */

.saved-jobs-modal {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.5);

  align-items: center;
  justify-content: center;

  padding: 20px;

  z-index: 2000;
}

.saved-jobs-modal-content {
  position: relative;

  width: 100%;
  max-width: 700px;
  max-height: 90vh;

  overflow-y: auto;

  background: white;

  border-radius: 18px;

  padding: 30px;
}

.saved-jobs-close {
  position: absolute;

  top: 15px;
  right: 18px;

  border: none;
  background: none;

  font-size: 28px;

  cursor: pointer;
}

.saved-jobs-modal-content h2 {
  margin-top: 0;
}

.empty-saved-jobs {
  margin-top: 20px;

  padding: 30px;

  text-align: center;

  background: #f8fafc;

  border-radius: 12px;

  color: #64748b;
}
/* =========================================
   IŠSAUGOTŲ SKELBIMŲ KORTELĖS
   ========================================= */

#savedJobsList {
  display: flex;
  flex-direction: column;
  gap: 14px;

  margin-top: 20px;
}

.saved-job-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;

  padding: 18px;

  background: #f8fafc;

  border: 1px solid #e2e8f0;
  border-radius: 16px;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.saved-job-item:hover {
  transform: translateY(-2px);

  border-color: #cbd5e1;

  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.08);
}

.saved-job-item h3 {
  width: 100%;

  margin: 0;

  font-size: 19px;
  color: #0f172a;
}

.saved-job-item p {
  margin: 0;

  font-size: 14px;
  color: #475569;
}

.saved-job-item p:first-of-type {
  width: 100%;

  margin-bottom: 4px;

  color: #64748b;
}

.saved-job-item p:not(:first-of-type) {
  display: inline-flex;
  align-items: center;

  padding: 7px 11px;

  background: white;

  border: 1px solid #e2e8f0;
  border-radius: 999px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

  .saved-job-item {
    padding: 16px;
  }

  .saved-job-item p:not(:first-of-type) {
    font-size: 13px;
  }
}