/* styles.css — Professional glass UI (SEO-friendly, fast)
   Fonts: Space Grotesk + IBM Plex Mono
*/

:root{
  --bg: #070A12;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.045);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);
  --radius: 20px;
  --radius2: 14px;
  --focus: rgba(130,160,255,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

/* Try to style dropdown list (works in many setups) */
select{
  color-scheme: dark;
}

select option{
  background-color: #0b1020;
  color: rgba(255,255,255,.92);
}

select option:checked{
  background-color: #1a2238;
  color: rgba(255,255,255,.95);
}

/* Background glow */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 15% 15%, rgba(80,120,255,.22), transparent 60%),
    radial-gradient(720px 520px at 85% 25%, rgba(0,220,255,.12), transparent 55%),
    radial-gradient(720px 520px at 60% 95%, rgba(190,80,255,.10), transparent 60%);
  filter: saturate(120%);
  z-index: -1;
}

/* Selection */
::selection{
  background: rgba(140,190,255,.35);
}

/* Layout */
.page{
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 26px 0 50px;
}

/* Hero */
.hero{
  padding: 18px 0 10px;
}
.kicker{
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 10px;
}
.hero h1{
  margin: 0 0 12px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.subtitle{
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
  font-size: 15.5px;
}
.subtitle code{
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--stroke2);
}

/* Panels (glass cards) */
.panel{
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
}

.panel-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-header h2{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

#resultCount{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Controls (form grid) */
.controls{
  display:grid;
  grid-template-columns: 1.2fr .9fr 1.2fr;
  gap: 12px;
}

label{
  display:block;
  font-size: 12px;
  color: var(--muted);
}

select{
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

select:focus{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 4px var(--focus);
}

select:hover{
  border-color: rgba(255,255,255,.18);
}

/* Custom arrow */
select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.85) 50%),
    linear-gradient(135deg, rgba(255,255,255,.85) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 13px) 55%,
    calc(100% - 2.2em) 0.45em;
  background-size: 5px 5px, 5px 5px, 1px 2.6em;
  background-repeat: no-repeat;
}

/* Stats cards */
.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat{
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow2);
}

.stat h3{
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.stat p{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* Chart */
.chart{
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.chart-title{
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 2px;
}

.bar-row{
  display:grid;
  grid-template-columns: 190px 1fr 130px;
  gap: 10px;
  align-items:center;
}

.role-name{
  font-size: 13px;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
}

.fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(140,190,255,.98));
}

.salary{
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  text-align:right;
}

/* Table */
.table-wrap{
  margin-top: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke2);
  overflow: auto;
  background: rgba(0,0,0,.16);
}

/* nicer scrollbar (webkit) */
.table-wrap::-webkit-scrollbar{ height: 10px; width: 10px; }
.table-wrap::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}
.table-wrap::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  background: rgba(7,10,18,.92);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 12px 12px;
}

tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
  color: rgba(255,255,255,.88);
}

tbody tr:nth-child(2n) td{
  background: rgba(255,255,255,.018);
}

tbody tr:hover td{
  background: rgba(255,255,255,.045);
}

tbody td:last-child{
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: rgba(255,255,255,.82);
}

/* Buttons */
.table-actions{
  display:flex;
  justify-content: center;
  margin-top: 14px;
}

.btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.btn:active{ transform: translateY(0); }

.btn:focus{
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

/* Notes */
.note{
  margin: 14px 0 0;
  color: var(--muted2);
  font-size: 13px;
  min-height: 18px;
}

.muted{ color: var(--muted); }

/* Responsive */
@media (max-width: 980px){
  .controls{
    grid-template-columns: 1fr;
  }
  .stats{
    grid-template-columns: 1fr 1fr;
  }
  .bar-row{
    grid-template-columns: 160px 1fr 110px;
  }
}

@media (max-width: 560px){
  .stats{
    grid-template-columns: 1fr;
  }
  .bar-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .salary{ text-align:left; }
  table{ min-width: 680px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}

/* FOOTER */
.footer{
  margin-top: 60px;
  padding: 40px 0 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}

.footer-inner{
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr;
  gap: 28px;
}

.footer-brand h3{
  margin: 0 0 8px;
  font-size: 16px;
  color: white;
}

.footer-brand p{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.footer-links{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a{
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13px;
  transition: .2s;
}

.footer-links a:hover{
  color: white;
  transform: translateX(3px);
}

.footer-disclaimer h4{
  margin: 0 0 8px;
  font-size: 14px;
  color: white;
}

.footer-disclaimer p{
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
}

.footer-bottom{
  width: min(1120px, 92vw);
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* Responsive */
@media(max-width:900px){
  .footer-inner{
    grid-template-columns: 1fr;
  }
}

/* SEO content: keep indexed, not visible */
.seo-content{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
