/* BTS FX PRO — Careers stylesheet */

:root {
  --bg:        #0B0B0B;
  --bg-card:   #141414;
  --bg-soft:   #1a1a1a;
  --line:      #1f1f1f;
  --line-2:    #2a2a2a;
  --text:      #FFFFFF;
  --muted:     #9b9b9b;
  --primary:   #C0151A;
  --primary-2: #e51c22;
  --success:   #1f9d55;
  --warn:      #b58105;
  --danger:    #C0151A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0.2px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); text-decoration: underline; }

/* ---------- Layout ---------- */

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

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 3px solid var(--primary);
  background: #000;
  padding: 18px 0;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header img.logo { height: 40px; display: block; }
.site-header nav a {
  color: var(--text);
  margin-left: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
}
.site-header nav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 50px;
  text-align: center;
  background: radial-gradient(circle at top, #1a0000 0%, #0B0B0B 60%);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 64px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}
.hero h1 span { color: var(--primary); }
.hero p {
  color: var(--muted);
  font-size: 20px;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Section heads ---------- */

.section {
  padding: 70px 0;
}
.section h2 {
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section .lead {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 18px;
}

/* ---------- Role cards ---------- */

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.role-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 32px;
  transition: transform .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
}
.role-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}
.role-card .badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.role-card h3 {
  font-size: 32px;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-card .tagline {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 16px;
}
.role-card p { color: var(--muted); margin: 0 0 18px; }
.role-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.role-card li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: #d0d0d0;
}
.role-card li:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}
.role-card .cta { margin-top: auto; }

@media (max-width: 800px) {
  .role-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 17px; }
  .section h2 { font-size: 30px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 26px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s ease;
  font-family: inherit;
}
.btn:hover { background: var(--primary-2); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
}
.btn-ghost:hover { background: var(--primary); color: #fff !important; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #25b964; }
.btn-warn    { background: var(--warn); }
.btn-warn:hover    { background: #d59913; }
.btn-danger  { background: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 13px; letter-spacing: 1px; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 32px;
  margin: 30px 0;
}
.form-card h2 { margin-top: 0; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #d0d0d0;
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: #0B0B0B;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-row .help {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-error {
  background: #2b0a0c;
  color: #f7c1c2;
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 3px;
}

/* ---------- Status / Result pages ---------- */

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 50px 40px;
  margin: 60px 0;
  text-align: center;
}
.result-card .icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.result-card.success .icon { background: var(--success); }
.result-card h1 { font-size: 42px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 1px; }
.result-card p  { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 14px; }
.result-card .next-steps {
  text-align: left;
  background: #0B0B0B;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 28px auto;
  max-width: 480px;
}
.result-card .next-steps h3 {
  margin: 0 0 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
}
.result-card .next-steps ol { margin: 0; padding-left: 20px; color: #ccc; }
.result-card .next-steps li { margin-bottom: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #000;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Admin ---------- */

.admin-bar {
  background: #000;
  border-bottom: 3px solid var(--primary);
  padding: 14px 0;
  color: #fff;
}
.admin-bar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-bar h1 {
  font-size: 22px;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.admin-bar h1 span { color: var(--primary); }
.admin-bar .right a { color: #ccc; margin-left: 18px; font-size: 14px; }
.admin-bar .right a:hover { color: var(--primary); }

.admin-main { padding: 30px 0 80px; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
@media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
.kpi .num { font-size: 30px; font-weight: 700; color: var(--primary); }
.kpi .label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-bar a {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 30px;
  color: #ccc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.filter-bar a.active,
.filter-bar a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

table.candidates {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
table.candidates th,
table.candidates td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.candidates th {
  background: #000;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}
table.candidates tr:last-child td { border-bottom: none; }
table.candidates tr:hover td { background: #181818; }
table.candidates a { color: #fff; }

.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}
.pill-applied        { background: #1d3b78; color: #fff; }
.pill-screening_rejected { background: #4a1a1c; color: #f0aaab; }
.pill-t1_passed      { background: #2c5d31; color: #fff; }
.pill-t1_failed      { background: #4a1a1c; color: #f0aaab; }
.pill-t2_ready       { background: #806014; color: #fff; }
.pill-t2_failed      { background: #4a1a1c; color: #f0aaab; }
.pill-onboarded      { background: #1f9d55; color: #fff; }

.pill-score-low  { background: #4a1a1c; color: #fff; }
.pill-score-mid  { background: #806014; color: #fff; }
.pill-score-high { background: #1f9d55; color: #fff; }

.candidate-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .candidate-detail { grid-template-columns: 1fr; } }

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.detail-card h2 { margin-top: 0; font-size: 22px; }
.detail-card dl { margin: 0; }
.detail-card dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 14px;
}
.detail-card dd { margin: 4px 0 0; font-size: 16px; }

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.flash {
  background: #0e2b14;
  border-left: 3px solid var(--success);
  padding: 12px 16px;
  border-radius: 3px;
  margin-bottom: 18px;
  color: #b9f5cb;
}
.flash.error {
  background: #2b0a0c;
  border-left-color: var(--primary);
  color: #f7c1c2;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  border-left: 2px solid var(--line-2);
  padding: 6px 0 14px 16px;
  position: relative;
  color: #ccc;
  font-size: 14px;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: -7px; top: 10px;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
}
.timeline .date { color: var(--muted); display: block; font-size: 12px; }

/* ---------- Login ---------- */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #1a0000 0%, #0B0B0B 60%);
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 32px;
}
.login-card .logo-wrap { text-align: center; margin-bottom: 18px; }
.login-card .logo-wrap img { height: 36px; }
.login-card h1 {
  font-size: 22px;
  text-align: center;
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
