/* ============================================================
   Salary Insights Page Styles
   salary-insights.css
   ============================================================ */

/* HERO */
.si-hero {
  background: var(--navy, #0b1120);
  padding: 52px 28px 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.si-hero-inner {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  position: relative; z-index: 1;
}
.si-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.si-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--brand, #0057D9); display: block; }
.si-hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(30px,4vw,46px);
  font-weight: 700; color: #fff; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.si-hero-title em { font-style: italic; font-weight: 400; color: var(--brand); }
.si-hero-sub { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 480px; margin-bottom: 24px; }
.si-hf-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.si-hf-btn {
  font-size: 12px; padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 100px;
  color: rgba(255,255,255,.5); background: rgba(255,255,255,.04);
  transition: all .12s; cursor: pointer; font-family: inherit;
}
.si-hf-btn:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.si-hf-btn.active { background: var(--brand, #0057D9); border-color: var(--brand, #0057D9); color: #fff; }

/* HERO STATS */
.si-hero-stats { display: flex; flex-direction: column; gap: 12px; }
.si-hstat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 16px 20px; text-align: right; min-width: 160px;
}
.si-hstat-num { font-family: 'Roboto Mono', monospace; font-size: 22px; font-weight: 500; color: #fff; margin-bottom: 2px; }
.si-hstat-num span { color: var(--brand); }
.si-hstat-label { font-size: 11px; color: rgba(255,255,255,.3); }
.si-hstat-trend { font-size: 10px; color: #34d399; margin-top: 2px; }

/* PAGE */
.si-page { max-width: 1060px; margin: 0 auto; padding: 32px 28px 80px; }

/* SECTION HEADER */
.si-sec-hdr { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.si-sec-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted, #bbb); margin-bottom: 6px; }
.si-sec-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--ink, #111); letter-spacing: -0.02em; }
.si-sec-title em { font-style: italic; font-weight: 400; color: var(--brand, #0057D9); }

/* FUNCTION CARDS */
.si-fn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 10px; margin-bottom: 40px;
}
.si-fn-card {
  background: #fff; border: 1px solid var(--border, #e8e8e8);
  border-radius: 8px; padding: 18px; cursor: pointer;
  transition: box-shadow .12s, transform .12s; position: relative; overflow: hidden;
}
.si-fn-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.si-fn-card.active { border-color: var(--brand, #0057D9); box-shadow: 0 0 0 3px rgba(0,87,217,.1); }
.si-fn-name { font-size: 13px; font-weight: 500; color: var(--ink, #111); margin-bottom: 8px; }
.si-fn-range { font-family: 'Roboto Mono', monospace; font-size: 16px; font-weight: 500; color: var(--brand, #0057D9); margin-bottom: 6px; }
.si-fn-meta { font-size: 11px; color: var(--ink-muted, #bbb); display: flex; align-items: center; justify-content: space-between; }
.si-fn-trend-up { color: #059669; font-size: 10px; font-weight: 600; }
.si-fn-roles { font-size: 10px; color: var(--ink-muted, #bbb); }

/* KEY INSIGHTS STRIP */
.si-insights {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 40px;
}
.si-insight-card {
  background: var(--navy, #0b1120); border-radius: 8px; padding: 20px;
  position: relative; overflow: hidden;
}
.si-insight-card::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg,transparent,transparent 20px,rgba(255,255,255,.015) 20px,rgba(255,255,255,.015) 21px);
}
.si-insight-num { font-family: 'Roboto Mono', monospace; font-size: 28px; font-weight: 500; color: #fff; margin-bottom: 4px; position: relative; z-index: 1; }
.si-insight-num span { color: var(--brand); }
.si-insight-label { font-size: 12px; color: rgba(255,255,255,.4); position: relative; z-index: 1; line-height: 1.5; }
.si-insight-trend { font-size: 10px; font-weight: 600; color: #34d399; margin-top: 6px; position: relative; z-index: 1; }

/* CHARTS */
.si-charts-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 40px;
}
.si-chart-card {
  background: #fff; border: 1px solid var(--border, #e8e8e8);
  border-radius: 8px; padding: 20px;
}
.si-chart-title { font-size: 13px; font-weight: 500; color: var(--ink, #111); margin-bottom: 4px; }
.si-chart-sub { font-size: 11px; color: var(--ink-muted, #bbb); margin-bottom: 16px; }

/* TABLE */
.si-table-wrap {
  background: #fff; border: 1px solid var(--border, #e8e8e8);
  border-radius: 8px; overflow: hidden; margin-bottom: 40px;
}
.si-table-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border, #e8e8e8);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.si-table-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border, #e8e8e8); border-radius: 5px;
  padding: 6px 12px; font-size: 13px; background: #fafafa; flex: 1; max-width: 280px;
}
.si-table-search input {
  border: none; outline: none; background: transparent;
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--ink, #111); width: 100%;
}
.si-table-search input::placeholder { color: var(--ink-muted, #bbb); }
.si-table-search svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--ink-muted, #888); }
.si-tf-select {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--ink-soft, #555);
  border: 1px solid var(--border, #e8e8e8); border-radius: 4px; padding: 5px 10px;
  background: #fff; outline: none; cursor: pointer;
}
.si-table-filters { display: flex; gap: 6px; }

.si-table { width: 100%; border-collapse: collapse; }
.si-table thead th {
  font-size: 11px; font-weight: 600; color: var(--ink-muted, #bbb);
  letter-spacing: .06em; text-transform: uppercase; padding: 10px 16px;
  text-align: left; border-bottom: 1px solid var(--border, #e8e8e8);
  background: #fafafa; white-space: nowrap;
}
.si-table thead th:not(:first-child) { text-align: right; }
.si-table tbody tr { border-bottom: 1px solid #f5f5f5; transition: background .1s; }
.si-table tbody tr:last-child { border-bottom: none; }
.si-table tbody tr:hover { background: #fafafa; }
.si-table tbody td { padding: 12px 16px; font-size: 13px; color: var(--ink, #111); }
.si-table tbody td:not(:first-child) { text-align: right; }

.si-td-role { font-weight: 500; }
.si-td-fn { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 3px; }
.si-td-sal { font-family: 'Roboto Mono', monospace; font-weight: 500; color: var(--brand, #0057D9); font-size: 13px; white-space: nowrap; }
.si-td-yoy { font-size: 11px; font-weight: 600; }
.si-td-yoy.up { color: #059669; }
.si-td-yoy.dn { color: #dc2626; }
.si-td-demand { display: inline-flex; gap: 2px; }
.si-demand-dot { width: 6px; height: 6px; border-radius: 50%; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .si-hero-inner { grid-template-columns: 1fr; }
  .si-hero-stats { flex-direction: row; flex-wrap: wrap; }
  .si-charts-grid { grid-template-columns: 1fr; }
  .si-insights { grid-template-columns: 1fr; }
  .si-fn-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .si-fn-grid { grid-template-columns: 1fr 1fr; }
  .si-page { padding: 16px 16px 40px; }
  .si-hero { padding: 36px 16px 32px; }
  .si-hero-inner { gap: 24px; }
}
