/* public/css/listings-show.css
   Listing Show page styling (scoped so it won’t mess with other pages)
   Uses variables from /css/spotlight-ui.css
*/

.listing-show .ps-wrap {
  padding-top: 18px;
  padding-bottom: 40px;
}

/* ---------- HERO ---------- */

.listing-show .listing-hero {
  padding: 18px;
}

.listing-show .listing-hero-main {
  display: grid;
  gap: 12px;
}

.listing-show .listing-hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.listing-show .li-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.06);
  font-size: 12px;
  line-height: 1;
  color: var(--text-muted);
}

.listing-show .li-pill-type {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.10);
  color: rgba(56, 189, 248, 0.95);
}

.listing-show .li-pill-location {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-main);
}

.listing-show .li-pill-paid {
  border-color: rgba(34, 197, 94, 0.30);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(34, 197, 94, 0.95);
}

.listing-show .li-pill-unpaid {
  border-color: rgba(251, 191, 36, 0.30);
  background: rgba(251, 191, 36, 0.10);
  color: rgba(251, 191, 36, 0.95);
}

.listing-show .listing-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (max-width: 576px) {
  .listing-show .listing-title {
    font-size: 22px;
  }
}

.listing-show .listing-meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

@media (max-width: 768px) {
  .listing-show .listing-meta-row {
    grid-template-columns: 1fr;
  }
}

.listing-show .listing-meta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.listing-show .listing-meta-item {
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.listing-show .listing-meta-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.listing-show .listing-meta-value {
  font-size: 14px;
  color: var(--text-main);
}

.listing-show .listing-meta-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .listing-show .listing-meta-actions {
    justify-content: flex-start;
  }
}

.listing-show .li-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
}

.listing-show .li-status-open {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
  color: rgba(34, 197, 94, 0.95);
}

.listing-show .li-status-closed {
  border-color: rgba(249, 115, 115, 0.35);
  background: rgba(249, 115, 115, 0.10);
  color: rgba(249, 115, 115, 0.95);
}

/* ---------- SECTIONS ---------- */

.listing-show .listing-section {
  padding: 16px;
}

.listing-show .listing-section-header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

@media (max-width: 576px) {
  .listing-show .listing-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.listing-show .listing-section-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.listing-show .listing-section-sub {
  color: var(--text-muted);
  font-size: 13px;
}

.listing-show .listing-description {
  margin: 0;
  color: var(--text-main);
  line-height: 1.65;
  white-space: pre-wrap;
}

.listing-show .listing-description-empty {
  color: var(--text-muted);
}

/* ---------- ROLES ---------- */

.listing-show .listing-roles-grid {
  display: grid;
  gap: 14px;
}

.listing-show .li-role-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.62);
  padding: 14px;
}

.listing-show .li-role-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

@media (max-width: 576px) {
  .listing-show .li-role-header {
    flex-direction: column;
  }
}

.listing-show .li-role-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.listing-show .li-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 576px) {
  .listing-show .li-role-pills {
    justify-content: flex-start;
  }
}

.listing-show .li-role-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px 18px;
  margin-top: 10px;
}

.listing-show .li-role-meta-item {
  display: grid;
  gap: 2px;
}

.listing-show .li-role-meta-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.listing-show .li-role-meta-value {
  font-size: 14px;
  color: var(--text-main);
}

.listing-show .li-role-description {
  margin: 10px 0 0;
  color: var(--text-main);
  line-height: 1.55;
  white-space: pre-wrap;
}

.listing-show .li-role-sides {
  margin-top: 10px;
}

.listing-show .li-role-sides-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-main);
}

.listing-show .li-role-sides-link {
  color: rgba(56, 189, 248, 0.95);
  text-decoration: none;
}

.listing-show .li-role-sides-link:hover {
  text-decoration: underline;
}

.listing-show .li-role-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 576px) {
  .listing-show .li-role-footer {
    justify-content: flex-start;
  }
}

/* That HR you have between roles (keep it subtle) */
.listing-show .li-role-separator {
  border: 0;
  height: 1px;
  background: rgba(148, 163, 184, 0.12);
  margin: 12px 0;
}