/* ============================================================================
   SALARIES PAGE STYLES
   ============================================================================ */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes barGrow {
  from { width: 0 !important; }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.anim-scale {
  opacity: 0;
  animation: scaleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.32s; }
.delay-4 { animation-delay: 0.44s; }
.delay-5 { animation-delay: 0.56s; }

/* Intersection observer triggered */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   HERO SECTION — light, clean
   ============================================================================ */

.hero {
  padding: 100px 20px 80px;
  text-align: center;
  background: linear-gradient(160deg, #fff 60%, #fdf2f1 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 72px;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circles */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,68,58,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,68,58,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.03em;
}

/* Accent word highlight */
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 8px 16px 8px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hero-filter-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(232,68,58,0.12);
}

.hero-filter-wrap svg {
  color: var(--muted);
  flex-shrink: 0;
}

.city-filter {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  min-width: 180px;
  outline: none;
}

/* ============================================================================
   STATS CARDS
   ============================================================================ */

.stats-section {
  margin-bottom: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(232,68,58,0.1);
  transform: translateY(-3px);
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  font-weight: 600;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ============================================================================
   SALARY TABLE
   ============================================================================ */

.salary-table-section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.salary-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.salary-table thead {
  background: #fafafa;
  border-bottom: 1.5px solid var(--border);
}

.salary-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.salary-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.salary-table tbody tr:hover {
  background: #fdf5f5;
}

.salary-table tbody tr:last-child {
  border-bottom: none;
}

.salary-table td {
  padding: 20px;
  vertical-align: middle;
}

.specialty-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  width: 200px;
}

.salary-range-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.salary-range-bar {
  flex: 1;
  height: 28px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  min-width: 150px;
}

.salary-range-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #ff7b6b 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  animation: barGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.salary-range-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  min-width: 160px;
  text-align: right;
}

.salary-vacancies {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  transition: opacity 0.2s;
}

.salary-vacancies:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
}

/* ============================================================================
   CITY CHART
   ============================================================================ */

.city-chart-section {
  margin-bottom: 80px;
}

.city-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.city-chart-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.city-name {
  width: 150px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

.city-bar-container {
  flex: 1;
  height: 36px;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}

.city-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #ff7b6b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  animation: barGrow 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.city-salary {
  width: 110px;
  text-align: right;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================================================
   CTA SECTION — light, accent, no dark background
   ============================================================================ */

.cta-section {
  background: linear-gradient(135deg, #fff5f5 0%, #fff0ee 100%);
  border: 1.5px solid rgba(232,68,58,0.15);
  border-radius: 24px;
  padding: 72px 40px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,68,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,68,58,0.1);
  color: var(--accent);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 15px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-link:hover {
  background: #d03830;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232,68,58,0.28);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 42px; }
  .section-title { font-size: 24px; }
  .cta-title { font-size: 30px; }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
    margin-bottom: 48px;
  }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stat-value { font-size: 26px; }
  .stat-card { padding: 20px 16px; }

  .salary-table-section,
  .city-chart-section { margin-bottom: 48px; }

  .section-title { font-size: 20px; margin-bottom: 20px; }

  .specialty-name { width: 130px; font-size: 14px; }

  .salary-range-container {
    flex-direction: column;
    gap: 6px;
    min-width: auto;
  }
  .salary-range-text { width: 100%; text-align: left; min-width: auto; }
  .salary-vacancies { border: none; padding-left: 0; }

  .city-name { width: 110px; font-size: 14px; }
  .city-salary { width: 80px; font-size: 14px; }

  .cta-section { padding: 48px 24px; border-radius: 18px; }
  .cta-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 16px 48px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }

  .hero-filter-wrap { width: 100%; justify-content: space-between; }
  .city-filter { width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 10px; }

  .salary-table { min-width: 480px; font-size: 13px; }
  .salary-table th, .salary-table td { padding: 12px 14px; }
  .salary-range-bar { height: 24px; }

  .city-chart { gap: 14px; }
  .city-bar-container { height: 30px; }
  .city-name { width: 90px; font-size: 13px; }
  .city-salary { width: 70px; font-size: 13px; }

  .cta-section { padding: 40px 20px; margin-bottom: 48px; border-radius: 16px; }
  .cta-title { font-size: 22px; margin-bottom: 10px; }
  .cta-link { width: 100%; justify-content: center; padding: 14px 24px; }
}

/* ============================================================================
   UTILITY
   ============================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) { .container { padding: 0 16px; } }
@media (max-width: 480px) { .container { padding: 0 12px; } }
