/* ----------------------------------------------------------------------
   Navium seller dashboard styles (extends /css/style.css)
   ---------------------------------------------------------------------- */

.dash-header {
  background: var(--dark);
  color: #fff;
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dash-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.dash-header__logo img { height: 28px; display: block; }
.dash-header__user { display: flex; align-items: center; gap: var(--space-md); font-size: 0.9rem; }
.dash-header__email { color: rgba(255, 255, 255, 0.75); }
.dash-header__logout {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px; border-radius: var(--radius-md);
  font-size: 0.85rem; cursor: pointer; font-family: inherit;
}
.dash-header__logout:hover { background: rgba(255, 255, 255, 0.1); }

.dash-main { max-width: 1280px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); }
.dash-greeting {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.dash-greeting h1 { font-size: 1.75rem; margin-bottom: var(--space-xs); }
.dash-greeting p { color: var(--gray-600); }
.loading { text-align: center; padding: var(--space-2xl); color: var(--gray-500); }

/* Empty state ----------------------------------------------------------- */
.empty-state {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}
.empty-state h2 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.empty-state p { color: var(--gray-600); margin-bottom: var(--space-lg); }

/* Listings grid --------------------------------------------------------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.listing-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(0, 68, 255, 0.10);
  transform: translateY(-2px);
}
.listing-card__cover {
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.listing-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.listing-card__no-image {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
}
.listing-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}
.listing-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.listing-card__name { font-weight: 600; font-size: 1.05rem; }
.listing-card__subtitle { color: var(--gray-600); font-size: 0.875rem; line-height: 1.4; }
.listing-card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
  color: var(--gray-500);
  font-size: 0.8rem;
}

/* Status badges --------------------------------------------------------- */
.badge--draft     { color: #555; background: #f0f0f0; }
.badge--submitted { color: #1a4dcc; background: #e8f0ff; }
.badge--published { color: #0a7d3a; background: #e1f7e8; }
.badge--rejected  { color: #b81e1e; background: #fde6e6; }
.badge--sold      { color: #777; background: #f2f2f2; text-decoration: line-through; }
.badge--reserved  { color: #b76a00; background: #fff4dd; }
.badge--archived  { color: #999; background: #fafafa; }
