/* ═══════════════════════════════════════════════════════════════
   AstraMaster — Orders Page
   ═══════════════════════════════════════════════════════════════ */

/* Page Hero */
.orders-hero {
  background: var(--midnight);
  padding: 48px 0;
  border-bottom: 3px solid var(--yellow);
}
.orders-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.orders-hero__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  margin: 10px 0 6px;
}
.orders-hero__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  font-weight: 300;
  max-width: 50ch;
}
.orders-hero__stats { display: flex; gap: 32px; }
.orders-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.orders-stat__n { font-size: 1.5rem; font-weight: 700; color: var(--yellow); }
.orders-stat__l { font-size: .78rem; color: rgba(255,255,255,.5); font-weight: 300; text-align: center; }

/* Board layout */
.board-wrap { padding: 40px 0 80px; background: var(--white); }
.board-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  background: var(--powder-light);
  border: 1.5px solid var(--powder);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--powder);
}
.sidebar__title { font-size: 1rem; font-weight: 700; color: var(--midnight); }
.sidebar__reset {
  font-size: .8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
  font-weight: 400;
}
.sidebar__reset:hover { color: var(--midnight); }

.filter-block {
  padding: 18px 0;
  border-bottom: 1px solid rgba(135,187,215,0.4);
}
.filter-block:last-of-type { border-bottom: none; margin-bottom: 16px; }
.filter-block__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--midnight);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-block__title svg { color: var(--text-muted); }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.range-inputs .form-input {
  height: 36px;
  padding: 0 10px;
  font-size: .82rem;
  text-align: center;
}

/* Toolbar */
.job-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.job-toolbar__left {}
.job-toolbar__count { font-size: .9rem; color: var(--text-secondary); }
.job-toolbar__count strong { color: var(--midnight); font-weight: 700; }
.job-toolbar__right { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .15s;
  cursor: pointer;
}
.view-btn.active, .view-btn:hover {
  background: var(--midnight);
  color: var(--white);
}

/* Filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--powder-soft);
  border: 1.5px solid var(--powder);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--midnight);
}
.chip button {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  transition: color .15s;
}
.chip button:hover { color: var(--midnight); }
.chip-clear {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 400;
}
.chip-clear:hover { color: var(--midnight); border-color: var(--midnight); }

/* Job cards */
.job-list { display: flex; flex-direction: column; gap: 16px; }

.job-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.job-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.job-card__icon-col { flex-shrink: 0; }
.job-card__cat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-card__cat-icon svg { width: 22px; height: 22px; }

.job-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.job-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.job-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 300;
}
.job-card__location svg { color: var(--text-muted); }
.job-card__date { font-size: .78rem; color: var(--text-muted); font-weight: 300; margin-left: auto; }

.job-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.35;
}
.job-card__title:hover { color: var(--powder); }

.job-card__desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.job-card__budget-wrap { display: flex; flex-direction: column; gap: 1px; }
.job-card__budget-label { font-size: .72rem; color: var(--text-muted); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; }
.job-card__budget { font-size: 1.05rem; font-weight: 700; color: var(--midnight); }
.job-card__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: auto;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .board-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .orders-hero__inner { flex-direction: column; }
  .orders-hero__stats { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .job-card { flex-direction: column; }
  .job-card__date { margin-left: 0; }
  .job-card__footer { flex-wrap: wrap; }
  .job-card__user { margin-left: 0; }
}
