/* =============================================
   Government Jobs Page — VidyarthiMitra.org
   ============================================= */

:root {
  --primary:   #ff6600;
  --primary-d: #c2410c;
  --bg:        #050a15;
  --card-bg:   rgba(13, 22, 39, 0.75);
  --border:    rgba(255, 255, 255, 0.07);
  --text:      #e2e8f0;
  --muted:     #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* ── HERO ── */
.gj-hero {
  background: linear-gradient(135deg, #0a1128 0%, #0f1d35 100%);
  border-bottom: 1px solid rgba(255,102,0,.25);
  padding: 44px 20px 36px;
  text-align: center;
}
.gj-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ff6600, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 8px;
}
.gj-hero p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.gj-total-badge {
  display: inline-block;
  background: rgba(255,102,0,.15);
  border: 1px solid rgba(255,102,0,.35);
  color: #ff6600;
  border-radius: 999px;
  padding: 5px 18px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
}

/* ── STICKY FILTER BAR ── */
.gj-filterbar {
  background: rgba(5,10,21,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  position: sticky;
  top: 62px;
  z-index: 200;
}
.gj-filterbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.gj-search {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  padding: 9px 14px 9px 38px;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}
.gj-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,102,0,.15); }
.gj-search::placeholder { color: rgba(255,255,255,.3); }

.gj-state-select {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  padding: 9px 14px;
  font-size: .88rem;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.gj-state-select:focus { border-color: var(--primary); }
.gj-state-select option { background: #0c1524; }

/* ── CATEGORY TABS ── */
.gj-cats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.gj-cat-btn {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 18px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gj-cat-btn:hover { border-color: rgba(255,102,0,.4); color: #fff; background: rgba(255,102,0,.08); }
.gj-cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gj-cat-btn .cnt {
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: .72rem;
}
.gj-cat-btn.active .cnt { background: rgba(0,0,0,.25); }

/* ── RESULTS HEADER ── */
.gj-results-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.gj-results-header .gj-count { font-size: .85rem; color: var(--muted); }
.gj-results-header .gj-count span { color: #fff; font-weight: 700; }
.gj-sort {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #fff;
  padding: 6px 12px;
  font-size: .82rem;
  outline: none;
  cursor: pointer;
}
.gj-sort option { background: #0c1524; }

/* ── JOB GRID ── */
.gj-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

/* ── JOB CARD ── */
.gj-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  backdrop-filter: blur(10px);
}
.gj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,102,0,.35);
  box-shadow: 0 12px 36px rgba(255,102,0,.1);
}

.gj-card-header { display: flex; align-items: flex-start; gap: 14px; }
.gj-org-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .78rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.gj-card-title-wrap { flex: 1; min-width: 0; }
.gj-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color .2s;
}
.gj-card:hover .gj-card-title { color: var(--primary); }
.gj-card-org { font-size: .8rem; color: var(--muted); }

/* badge */
.gj-badge {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  align-self: flex-start;
}
.gj-badge.hot  { background: rgba(239,68,68,.15);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.gj-badge.new  { background: rgba(255,102,0,.15);  color: #ff6600; border: 1px solid rgba(255,102,0,.3); }

/* details grid */
.gj-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255,255,255,.025);
  border-radius: 10px;
  padding: 12px;
}
.gj-detail-item { display: flex; flex-direction: column; gap: 2px; }
.gj-detail-label {
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.gj-detail-value { font-size: .88rem; color: #e2e8f0; font-weight: 600; }
.gj-detail-value.urgent { color: #f87171; }
.gj-detail-value.vacancies { color: var(--primary); }

/* post row */
.gj-post {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.5;
}
.gj-post i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* qualification row */
.gj-qual {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.5;
}
.gj-qual i { color: #60a5fa; margin-top: 2px; flex-shrink: 0; }

/* card footer */
.gj-card-footer { display: flex; gap: 10px; margin-top: auto; }
.gj-btn-details {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 10px;
  padding: 9px 0;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
}
.gj-btn-details:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,102,0,.08); }
.gj-btn-apply {
  flex: 1;
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 9px 0;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gj-btn-apply:hover { background: var(--primary-d); transform: translateY(-1px); }

/* ── NO RESULTS ── */
.gj-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.gj-no-results i { font-size: 2.5rem; color: rgba(255,255,255,.1); display: block; margin-bottom: 14px; }

/* ── LIGHT MODE ── */
body.light-mode {
  --bg:      #f4f6fb;
  --card-bg: #ffffff;
  --border:  #e2e8f0;
  --text:    #1e293b;
  --muted:   #64748b;
}
body.light-mode .gj-hero {
  background: linear-gradient(135deg, #fff7ed, #fff3e0);
  border-bottom: 2px solid var(--primary);
}
body.light-mode .gj-hero h1 { background: linear-gradient(90deg, #ff6600, #0f172a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .gj-hero p { color: #64748b; }
body.light-mode .gj-filterbar { background: rgba(255,255,255,.95); border-bottom-color: #e2e8f0; }
body.light-mode .gj-search, body.light-mode .gj-state-select, body.light-mode .gj-sort {
  background: #fff; border-color: #cbd5e1; color: #0f172a;
}
body.light-mode .gj-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px center; }
body.light-mode .gj-search::placeholder { color: #94a3b8; }
body.light-mode .gj-state-select option, body.light-mode .gj-sort option { background: #fff; color: #0f172a; }
body.light-mode .gj-cat-btn { background: #fff; border-color: #cbd5e1; color: #475569; }
body.light-mode .gj-cat-btn:hover { border-color: var(--primary); background: rgba(255,102,0,.06); color: #c2410c; }
body.light-mode .gj-card { background: #fff; border-color: #e2e8f0; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
body.light-mode .gj-card-title { color: #0f172a; }
body.light-mode .gj-card:hover { box-shadow: 0 12px 36px rgba(255,102,0,.12); }
body.light-mode .gj-details { background: #f8fafc; }
body.light-mode .gj-detail-value { color: #1e293b; }
body.light-mode .gj-post, body.light-mode .gj-qual { color: #475569; }
body.light-mode .gj-btn-details { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
body.light-mode .gj-results-header .gj-count { color: #64748b; }
body.light-mode .gj-results-header .gj-count span { color: #0f172a; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .gj-grid { grid-template-columns: 1fr; padding: 8px 12px 40px; }
  .gj-details { grid-template-columns: 1fr 1fr; }
  .gj-filterbar-inner { gap: 8px; }
  .gj-search { max-width: 100%; }
}
