/* =====================================================
   Bharat Job Mart — design system
   Palette: ink navy / saffron / cool paper
   Type: Bricolage Grotesque (display) + Inter (body)
   ===================================================== */
:root {
  --ink: #14213d;          /* deep navy — headers, nav */
  --ink-2: #1c2331;        /* body text */
  --saffron: #ed7014;      /* action + signature accent */
  --saffron-dark: #c95c0c;
  --paper: #f6f7f9;        /* cool page background */
  --card: #ffffff;
  --line: #e3e6ec;
  --muted: #647084;
  --green: #0e7c4a;        /* verified / success */
  --red: #b3261e;
  --amber: #92600a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .07);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font: 16px/1.6 var(--font-body);
}
img { max-width: 100%; }
a { color: var(--saffron-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 600; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- top navigation ---------- */
.nav { background: var(--ink); color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--saffron); }
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: #d8dce6; font-size: .93rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }

/* ---------- buttons / badges / forms ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; border-radius: var(--radius);
  font: 600 .93rem/1 var(--font-body); padding: 12px 20px; transition: background .15s;
  text-decoration: none !important;
}
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0d1730; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 8px; }
.btn-danger { background: var(--red); color: #fff; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; }
.badge-green { background: #e2f3ea; color: var(--green); }
.badge-amber { background: #fbf0dd; color: var(--amber); }
.badge-grey  { background: #eceef3; color: var(--muted); }
.badge-red   { background: #f9e3e2; color: var(--red); }
.badge-blue  { background: #e3eafc; color: #2b4ea8; }

label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number],
select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font: 400 .95rem/1.4 var(--font-body); background: #fff; color: var(--ink-2);
}
input:focus, select:focus, textarea:focus { border-color: var(--saffron); outline: none; }
.field { margin-bottom: 18px; }
.field-error { color: var(--red); font-size: .8rem; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }

/* ---------- flash messages ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 14px 0; font-size: .92rem; border: 1px solid; }
.flash-success { background: #e9f6ef; border-color: #bfe4cf; color: var(--green); }
.flash-error   { background: #fbe9e8; border-color: #f0c4c1; color: var(--red); }
.flash-warning, .flash-info { background: #fdf3e3; border-color: #f1ddb7; color: var(--amber); }

/* ---------- hero (public home) — signature block ---------- */
.hero { background: var(--ink); color: #eef0f5; padding: 72px 0 84px; }
.hero h1 { color: #fff; max-width: 720px; }
.hero .mark {
  position: relative; white-space: nowrap;
}
.hero .mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .3em;
  background: var(--saffron); opacity: .85; z-index: -1; transform: skewX(-8deg);
}
.hero p.lede { color: #aab3c5; max-width: 560px; font-size: 1.05rem; margin: 14px 0 30px; }
.searchbar {
  display: grid; grid-template-columns: 2fr 1.4fr auto; gap: 10px;
  background: #fff; padding: 10px; border-radius: 14px; box-shadow: var(--shadow); max-width: 760px;
}
.searchbar input, .searchbar select { border: 0; background: #f2f3f7; }
@media (max-width: 720px) { .searchbar { grid-template-columns: 1fr; } }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { font-family: var(--font-display); font-size: 1.5rem; color: #fff; display: block; }
.hero-stats span { color: #8f99ad; font-size: .84rem; }

/* ---------- job cards: left rail fills on hover ---------- */
.job-card {
  position: relative; display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px 20px 26px; color: inherit; overflow: hidden;
  transition: box-shadow .15s;
}
.job-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--line); transition: background .15s;
}
.job-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.job-card:hover::before { background: var(--saffron); }
.job-card h3 { margin-bottom: 2px; }
.job-card .co { color: var(--muted); font-size: .88rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .job-grid { grid-template-columns: 1fr; } }

.section { padding: 52px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.cat-chip {
  display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 16px; margin: 0 8px 10px 0; font-size: .86rem; color: var(--ink);
}
.cat-chip:hover { border-color: var(--saffron); color: var(--saffron-dark); text-decoration: none; }

/* ---------- listing layout ---------- */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .listing { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 16px; }
.pagination { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .88rem;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- panel (candidate / employer / admin) ---------- */
.panel { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .sidebar { position: static; } }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; }
.sidebar .who { padding: 0 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sidebar .who b { display: block; font-size: .95rem; color: var(--ink); }
.sidebar .who span { font-size: .78rem; color: var(--muted); text-transform: capitalize; }
.sidebar nav a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; margin-bottom: 2px;
}
.sidebar nav a:hover { background: var(--paper); text-decoration: none; }
.sidebar nav a.active { background: var(--ink); color: #fff; }
.panel-main { padding: 30px 34px; }
@media (max-width: 720px) { .panel-main { padding: 20px 16px; } }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); display: block; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat.accent { border-top: 3px solid var(--saffron); }

table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
table.data th { background: var(--paper); color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.inline-form { display: inline; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #8f99ad; padding: 40px 0; margin-top: 60px; font-size: .88rem; }
.footer a { color: #c6ccd9; }
.footer .brand { font-size: 1.1rem; }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 6px; }
.auth-wrap { max-width: 440px; margin: 56px auto; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--saffron); border-radius: 99px; }

/* ---------- city autocomplete picker ---------- */
.cp { position: relative; }
.cp-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); max-height: 280px; overflow-y: auto;
}
.cp-item { padding: 10px 14px; cursor: pointer; font-size: .92rem; }
.cp-item:hover { background: var(--paper); }
.cp-item span { color: var(--muted); font-size: .78rem; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cp-chips:empty { margin-bottom: 0; }
.cp-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff;
  border-radius: 99px; padding: 5px 6px 5px 13px; font-size: .84rem;
}
.cp-x {
  border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 99px;
  width: 20px; height: 20px; line-height: 1; cursor: pointer; font-size: .9rem;
}
.cp-x:hover { background: var(--saffron); }
.searchbar .cp .cp-input { border: 0; background: #f2f3f7; width: 100%; }
