/*******
 *
 * Salary Guide template
 * Brand: GoTu — Primary #1c6b93, Tertiary #4fc0cf, Light #F4F7FA
 *
 *******/

/* ── Hero ── */
.salary-guide__hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.salary-guide__hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.salary-guide__hero .lead {
  color: #6c757d;
  font-size: 1.15rem;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .salary-guide__hero h1 {
    font-size: 2rem;
  }
}

/* ── Content area ── */
.salary-guide__content {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

/* ── Toolbar ── */
.salary-guide__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

@media (max-width: 767.98px) {
  .salary-guide__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.salary-guide__updated {
  margin: 0;
  font-size: 0.875rem;
  white-space: nowrap;
  color: #6c757d;
}

.salary-guide__search {
  max-width: 320px;
  width: 100%;
}

@media (max-width: 767.98px) {
  .salary-guide__search {
    max-width: 100%;
  }
}

.salary-guide__search .input-group {
  border-radius: 50rem;
  overflow: hidden;
  border: 1px solid #dee2e6;
  background: #fff;
}

.salary-guide__search .input-group .input-group-text,
.salary-guide__search .input-group .form-control {
  border: none;
  box-shadow: none;
  background: transparent;
}

.salary-guide__search .input-group .form-control:focus {
  box-shadow: none;
}

/* ── Card list ── */
.salary-guide__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Card ── */
.salary-guide__card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 2rem;
  background: #F4F7FA;
  border-radius: 1rem;
  padding: 1.75rem 2.25rem;
  opacity: 0;
  transform: translateY(12px);
  animation: salaryCardIn 0.4s ease forwards;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.salary-guide__card:hover {
  box-shadow: 0 4px 20px rgba(28, 107, 147, 0.1);
  transform: translateY(-2px);
}

/* Staggered entrance */
.salary-guide__card:nth-child(1)  { animation-delay: 0s; }
.salary-guide__card:nth-child(2)  { animation-delay: 0.03s; }
.salary-guide__card:nth-child(3)  { animation-delay: 0.06s; }
.salary-guide__card:nth-child(4)  { animation-delay: 0.09s; }
.salary-guide__card:nth-child(5)  { animation-delay: 0.12s; }
.salary-guide__card:nth-child(6)  { animation-delay: 0.15s; }
.salary-guide__card:nth-child(7)  { animation-delay: 0.18s; }
.salary-guide__card:nth-child(8)  { animation-delay: 0.21s; }
.salary-guide__card:nth-child(9)  { animation-delay: 0.24s; }
.salary-guide__card:nth-child(10) { animation-delay: 0.27s; }
.salary-guide__card:nth-child(n+11) { animation-delay: 0.3s; }

@keyframes salaryCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .salary-guide__card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }
}

/* ── Left side: Location + avg salary ── */
.salary-guide__card-left {
  display: flex;
  flex-direction: column;
}

.salary-guide__card-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.salary-guide__card-avg {
  font-size: 2rem;
  font-weight: 700;
  color: #1c6b93;
  margin: 0;
  line-height: 1.15;
}

.salary-guide__card-meta {
  font-size: 0.78rem;
  color: #adb5bd;
  margin: 0.15rem 0 0;
}

/* ── Right side: Range bar ── */
.salary-guide__card-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
}

/* Average label above bar */
.salary-guide__bar-label {
  position: relative;
  height: 1.2rem;
  margin-bottom: 0.3rem;
}

.salary-guide__bar-label span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #1c6b93;
  white-space: nowrap;
}

/* Bar track + marker */
.salary-guide__bar {
  position: relative;
  height: 8px;
  border-radius: 50rem;
  background: #d4ecf5;
  overflow: visible;
}

.salary-guide__bar-track {
  position: absolute;
  inset: 0;
  border-radius: 50rem;
  background: linear-gradient(90deg, #4fc0cf 0%, #1c6b93 100%);
  opacity: 0.35;
}

.salary-guide__bar-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #1c6b93;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(28, 107, 147, 0.35);
  transition: transform 0.2s ease;
}

.salary-guide__card:hover .salary-guide__bar-marker {
  transform: translate(-50%, -50%) scale(1.25);
}

/* Low / High labels below bar */
.salary-guide__bar-range {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.salary-guide__bar-low,
.salary-guide__bar-high {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
}

/* ── No results ── */
.salary-guide__no-results {
  min-height: 12.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hide filtered cards ── */
.salary-guide__card--hidden {
  display: none !important;
}
