/* public/css/profile-show.css */
/* Profile Show — dark theme alignment (less “blue”, more Spotlight-wide dark) */

:root {
  --ps-accent: #0ea5e9;

  --ps-bg: #070a0f;
  --ps-surface: #0b1220;
  --ps-card: #0d1626;
  --ps-border: rgba(255, 255, 255, 0.08);

  --ps-text: #e5e7eb;
  --ps-muted: #9aa3b2;

  --ps-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

body:has(#profileShow) {
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(900px 520px at 110% 24%, rgba(14, 165, 233, 0.06), transparent 60%),
    var(--ps-bg) !important;
  color: var(--ps-text);
}

#profileShow.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
}

#profileShow .ps-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

#profileShow .ps-name {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#profileShow .ps-actions .pe-btn.pe-primary {
  display: inline-block;
  margin-left: auto;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.55);
  background: rgba(14, 165, 233, 0.95);
  color: #061018;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.12);
}
#profileShow .ps-actions .pe-btn.pe-primary:hover {
  filter: brightness(1.05);
}

#profileShow .ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

#profileShow .ps-card {
  padding: 1rem;
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.02)),
    var(--ps-card);
  box-shadow: var(--ps-shadow);
  height: 100%;
  margin: 0; /* ✅ prevent any margin creep */
}

/* ✅ HARD ALIGNMENT RESET for the two top cards */
#profileShow .ps-headshots,
#psHomeCard,
#profileShow .ps-home {
  margin-top: 0 !important;
  align-self: stretch;
}

#profileShow .ps-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

#profileShow .ps-card p {
  margin: 0.35rem 0;
  color: var(--ps-text);
}

#profileShow .span-2 {
  grid-column: 1 / -1;
}

/* Headshots */
#profileShow .ps-headshots .hs-hero {
  aspect-ratio: 4 / 5;
  max-width: 260px;
  width: 100%;
  margin: 0 auto 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.45);
}
#profileShow .ps-headshots .hs-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#profileShow .ps-headshots .hs-carousel-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 0.5rem;
}

#profileShow .ps-headshots .hs-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  color: var(--ps-text);
}
#profileShow .ps-headshots .hs-nav:hover {
  background: rgba(255, 255, 255, 0.07);
}

#profileShow .ps-headshots .hs-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem;
  scroll-snap-type: x mandatory;
}

#profileShow .ps-headshots .hs-thumb {
  position: relative;
  width: 148px;
  height: 148px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 12px 26px rgba(0, 0, 0, 0.40);
}
#profileShow .ps-headshots .hs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#profileShow .ps-headshots .hs-thumb.is-active {
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.75),
    0 0 18px rgba(14, 165, 233, 0.20),
    0 14px 30px rgba(0, 0, 0, 0.45);
}
#profileShow .ps-headshots .hs-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.92);
  color: #061018;
  font-weight: 800;
}

/* Size grid */
#psSizeCard .size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  align-items: start;
}
@media (max-width: 900px) {
  #psSizeCard .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #psSizeCard .size-grid { grid-template-columns: 1fr; }
}

#psSizeCard .size-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
}

#psSizeCard .size-item .k {
  font-weight: 800;
  color: rgba(229, 231, 235, 0.92);
  margin-right: 6px;
}
#psSizeCard .size-item .v {
  color: rgba(229, 231, 235, 0.88);
}

#psSizeCard .size-item.span-2 {
  grid-column: span 2;
}
@media (max-width: 900px) {
  #psSizeCard .size-item.span-2 { grid-column: 1 / -1; }
}

#psSizeCard .tattoo-photos {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
#psSizeCard .tattoo-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--ps-surface);
  aspect-ratio: 3 / 4;
}
#psSizeCard .tattoo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#profileShow video {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  background: #000;
}

#psSelfTapes .ps-selftapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

#psSelfTapes .ps-selftape-video {
  width: 100%;
  height: auto;
  max-height: 220px;
  border-radius: 12px;
  background: #000;
}

#profileShow .chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

#profileShow .ps-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0,  0, 0, 0.02)),
    rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  line-height: 1.2;
  color: rgba(229, 231, 235, 0.92);
}

#profileShow .prewrap { white-space: pre-wrap; }
#profileShow .pe-muted,
#profileShow .muted { color: var(--ps-muted); }

/* Resume action row */
#psResume .pe-actions[data-resume-style-root] {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#psResume .pe-actions[data-resume-style-root] .pe-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#psResume .pe-actions[data-resume-style-root] .pe-label > span {
  font-size: 0.95rem;
  color: rgba(229, 231, 235, 0.9);
}

#psResume .pe-actions[data-resume-style-root] .pe-select {
  width: auto;
  min-width: 160px;
  max-width: 220px;
}

#psResume .pe-actions[data-resume-style-root] .pe-btn {
  white-space: nowrap;
}

/* Desktop layout lock */
@media (min-width: 981px) {
  #profileShow .ps-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #psDemoReel { grid-column: 1; }
  #psAudio    { grid-column: 1; }
  #psResume   { grid-column: 2; grid-row: span 2; }
}

@media (max-width: 980px) {
  #profileShow .ps-grid {
    grid-template-columns: 1fr;
  }

  #psDemoReel,
  #psAudio,
  #psResume {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Built resume preview (dark, in-card) */
#psResume .ps-resume-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

#psResume .ps-resume-preview-dark{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  padding: 12px;
  max-height: 560px;
  overflow: auto;
}

#psResume .rp-sheet{
  width: 100%;
  margin: 0;
  background: transparent;
  color: rgba(229,231,235,0.95);
}

#psResume .rp-inner{
  padding: 10px 10px 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.25;
}

#psResume .rp-topname{
  text-align: center;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 22px;
  margin: 2px 0 10px;
}

#psResume .rp-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

#psResume .rp-headshot{
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

#psResume .rp-agency{
  text-align: right;
  flex: 1 1 auto;
}

#psResume .rp-agency-sub{
  opacity: .85;
}

#psResume .rp-rule{
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin: 10px 0 12px;
}

#psResume .rp-sec{ margin: 12px 0; }

#psResume .rp-sec h4{
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: .5px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(229,231,235,0.92);
  font-size: 12px;
  text-transform: uppercase;
}

#psResume .rp-grid3{
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  column-gap: 12px;
  row-gap: 6px;
}

#psResume .rp-onecol{ margin-bottom: 6px; }
