/* ── PostHire Shared Styles ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --accent-bg: rgba(34,197,94,0.08);
  --accent-border: rgba(34,197,94,0.2);
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.15);
  --yellow: #eab308;
  --yellow-dim: rgba(234,179,8,0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.15);
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
  --card-hover: rgba(255,255,255,0.06);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: var(--black);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--card-border);
}
.btn-secondary:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.12);
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover {
  background: rgba(239,68,68,0.25);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-300);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-700);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group select option {
  background: var(--gray-900);
  color: var(--white);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}
.card:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.1);
}
.card-clickable {
  cursor: pointer;
}
.card-clickable:hover {
  transform: translateY(-2px);
}

/* ── TAGS / BADGES ── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.tag-neutral {
  color: var(--gray-500);
  border-color: rgba(255,255,255,0.1);
}
.tag-red {
  color: var(--red);
  border-color: rgba(239,68,68,0.3);
  background: var(--red-dim);
}
.tag-yellow {
  color: var(--yellow);
  border-color: rgba(234,179,8,0.3);
  background: var(--yellow-dim);
}
.tag-blue {
  color: var(--blue);
  border-color: rgba(59,130,246,0.3);
  background: var(--blue-dim);
}

/* ── PAGE LAYOUT ── */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
}
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}
.empty-state h3 {
  font-size: 1.2rem;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

/* ── ALERTS ── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.alert-error {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
}
.alert-success {
  background: rgba(34,197,94,0.1);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* ── LOADING ── */
.loading {
  display: flex;
  justify-content: center;
  padding: 3rem;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ── */
footer {
  padding: 2rem 2rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 4rem auto 0;
}
.footer-left {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-right {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.search-bar input {
  flex: 1;
  min-width: 200px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--white);
  outline: none;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--gray-700); }
.search-bar select {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--gray-300);
  outline: none;
  cursor: pointer;
}
.search-bar select option {
  background: var(--gray-900);
}

/* ── JOB CARDS ── */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.job-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.job-card-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.job-card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.job-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.job-card-pay {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
}
.job-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pagination button {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.2s;
}
.pagination button:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.12);
}
.pagination button.active {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}
.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 2rem;
}
.tab {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab:hover { color: var(--gray-300); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}
td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: top;
}
tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ── STATUS DOTS ── */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-dot.new::before { background: var(--accent); }
.status-dot.reviewed::before { background: var(--blue); }
.status-dot.shortlisted::before { background: var(--yellow); }
.status-dot.rejected::before { background: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0.85rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
  .page { padding: 5rem 1.25rem 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .job-card { flex-direction: column; }
  .job-card-pay { margin-top: 0.25rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
  table { font-size: 0.8rem; }
  th, td { padding: 0.6rem 0.5rem; }
}
