/* style/profiles.css
   Scoped styling for the standalone nominee profiles pages:
   - profiles.php  (grid of nominee cards)
   - nominee-profile.php (single profile detail + share)
   Uses the kx design tokens (black/gold) from main.css. Additive only. */

/* ---------- shared states (loading / empty / not-available) ---------- */
.np-state{
  max-width: 620px;
  margin: 40px auto 0;
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--kx-line);
  border-radius: var(--kx-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.np-state-icon{ font-size: 44px; line-height: 1; }
.np-state-title{
  font-family: var(--kx-display);
  font-weight: 900; font-size: 22px;
  color: var(--kx-ink); margin-top: 12px;
}
.np-state-text{
  color: var(--kx-muted); font-size: 14px; line-height: 1.6;
  margin-top: 8px; max-width: 46ch; margin-left: auto; margin-right: auto;
}
.np-spinner{
  width: 44px; height: 44px; margin: 0 auto;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,.12);
  border-top-color: var(--kx-goldB);
  animation: npspin .9s linear infinite;
}
@keyframes npspin { to { transform: rotate(360deg); } }

/* ---------- profiles.php: responsive grid ---------- */
.np-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 1024px){ .np-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px){  .np-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){  .np-grid{ grid-template-columns: 1fr; } }

.np-card{
  border: 1px solid var(--kx-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.np-card-media{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;          /* tall portrait poster */
  background: rgba(0,0,0,.30);
}
.np-card-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.np-card-media--empty{
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: rgba(252,211,77,.85);
  background: linear-gradient(160deg, rgba(252,211,77,.18), rgba(245,158,11,.10));
  text-decoration: none;
}
.np-card-body{ padding: 14px 16px 16px; margin-top: auto; }
.np-card-name{ font-weight: 800; font-size: 15px; color: rgba(255,255,255,.94); }
.np-card-meta{ font-size: 12px; color: var(--kx-muted); margin-top: 3px; }
.np-card-actions{ display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.np-card-actions .kx-btn{ width: 100%; padding: 10px 14px; font-size: 14px; }

/* ---------- nominee-profile.php: detail layout ---------- */
.np-detail{
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 28px;
  align-items: start;
  max-width: 980px;
  margin: 10px auto 0;
}
@media (max-width: 760px){
  .np-detail{ grid-template-columns: 1fr; gap: 20px; }
}
.np-detail-media{
  border: 1px solid var(--kx-line);
  border-radius: var(--kx-radius);
  background: rgba(0,0,0,.30);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.np-detail-media img{
  width: 100%; height: auto; display: block;   /* show full poster, no crop */
}
.np-detail-info{
  border: 1px solid var(--kx-line);
  border-radius: var(--kx-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  padding: 24px;
}
.np-detail-name{
  font-family: var(--kx-display);
  font-weight: 900; font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1; color: var(--kx-ink); margin: 0;
}
.np-detail-rows{ margin-top: 18px; display: grid; gap: 12px; }
.np-detail-row{
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1px dashed var(--kx-line); padding-bottom: 10px;
}
.np-detail-row:last-child{ border-bottom: none; padding-bottom: 0; }
.np-detail-k{
  flex: 0 0 110px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--kx-goldB);
}
.np-detail-v{ color: rgba(255,255,255,.9); font-size: 15px; word-break: break-word; }
.np-detail-actions{
  margin-top: 24px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.np-detail-actions .kx-btn{ padding: 12px 18px; }
.np-detail-share-note{
  margin-top: 12px; font-size: 13px; font-weight: 700;
  color: rgba(152,255,181,.95);
}

/* ---------- nominee-profile.php: tap-to-enlarge poster ---------- */
/* the media wrapper is a <button> on the detail page */
button.np-detail-media{
  position: relative;
  padding: 0;
  border: 1px solid var(--kx-line);
  cursor: zoom-in;
  width: 100%;
  font: inherit;
  color: inherit;
}
button.np-detail-media:focus-visible{
  outline: 2px solid var(--kx-goldB);
  outline-offset: 2px;
}
.np-zoom-hint{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #1a1206;
  background: var(--kx-gold-grad);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  opacity: .92;
  pointer-events: none;
}

/* full-screen overlay */
.np-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.np-lightbox.is-open{ display: flex; }
.np-lightbox-img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.np-lightbox-close{
  position: fixed;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.np-lightbox-close:hover{ background: rgba(255,255,255,.16); }
