/* ============================================================
   JOBS.CSS — SaaS CORPORATE STARTUP REDESIGN
   ============================================================ */

/* Page Layout */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding-top: 120px;
  padding-bottom: 5rem;
  position: relative;
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* Sidebar Clean Card */
.sidebar-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.filter-group-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--brand-navy);
  font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .filter-group-title {
  color: #fff;
}

/* Premium Form Controls */
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236C757D%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-sm);
}

.form-select:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(255, 46, 126, 0.1);
}

[data-theme="dark"] .form-select {
  background: rgba(0, 0, 0, 0.2);
  border-color: var(--border-light);
  color: #fff;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.checkbox-label:hover,
.radio-label:hover {
  color: var(--brand-navy);
}

[data-theme="dark"] .checkbox-label:hover,
[data-theme="dark"] .radio-label:hover {
  color: #fff;
}

.checkbox-label input,
.radio-label input {
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .checkbox-label input,
[data-theme="dark"] .radio-label input {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
}

.radio-label input::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--brand-pink);
}

.radio-label input:checked {
  border-color: var(--brand-pink);
}

.radio-label input:checked::before {
  transform: scale(1);
}

.main-content {
  width: 100%;
}

/* Inline Top Search */
.top-search-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.search-flex {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input-sleek {
  flex: 1;
  background: var(--bg-main);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.search-input-sleek:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(255, 46, 126, 0.1);
  background: #fff;
}

[data-theme="dark"] .search-input-sleek {
  background: rgba(0, 0, 0, 0.2);
  border-color: var(--border-light);
  color: #fff;
}

[data-theme="dark"] .search-input-sleek:focus {
  background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .search-flex {
    flex-direction: column;
  }

  .search-input-sleek,
  .search-flex .btn-primary {
    width: 100%;
  }
}

/* Job Listing Header */
.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.listing-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-navy);
  font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .listing-title {
  color: #fff;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-clear {
  color: var(--brand-pink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-clear:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

[data-theme="dark"] .btn-clear:hover {
  color: #fff;
}