/* ============================================================
   poi.css — Points of Interest on the moon.
   Design language: landing-site markers. Each POI is a thin ring
   + pulsing core + name plate, positioned by 3D->2D projection
   each frame (moon.js). Cards are minimal: name, one-liner, CTA.
   ============================================================ */

.poi-marker {
  position: fixed;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.poi-marker.hidden { opacity: 0; pointer-events: none; }

/* ---- name plate: the POI's only chrome, a clear pill tag ---- */
.poi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fdfdfc;
  background: rgba(10, 10, 10, 0.85);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/* radar pulse, kept for the onboarding hint dot (see .poi-hint .dot) */
@keyframes poiPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ---- hover / active states ---- */
.poi-marker:hover .poi-label {
  background: rgba(10, 10, 10, 0.96);
  transform: scale(1.06);
}
.poi-marker.active .poi-label {
  background: #0b0b0b;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

/* ---- the card (minimal: name, line, meta, CTA) ---- */
.poi-card {
  position: fixed;
  z-index: 20;
  width: min(340px, calc(100vw - 40px));
  background: rgba(253, 253, 252, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 4px;
  padding: 26px 26px 22px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  box-shadow:
    0 24px 70px rgba(10, 10, 10, 0.16),
    0 2px 8px rgba(10, 10, 10, 0.05);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.poi-card.open { opacity: 1; transform: none; pointer-events: auto; }

.poi-card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a8f9a;
  margin-bottom: 14px;
}
.poi-card-kicker::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6d7480;
}
.poi-card-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  line-height: 1.02;
  margin-bottom: 10px;
}
.poi-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #565b64;
  margin-bottom: 16px;
}
.poi-card-meta {
  display: flex;
  gap: 14px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9ea8;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
}
.poi-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  background: #0b0b0b;
  color: #fdfdfc;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.poi-card-cta:hover { background: #2a2f38; letter-spacing: 0.26em; }
.poi-card-cta .arrow { transition: transform 0.2s ease; font-size: 14px; }
.poi-card-cta:hover .arrow { transform: translateX(4px); }

/* close btn floats top-right of the card */
.poi-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #b5b9c0;
  font-size: 16px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.poi-card-close:hover { color: #0b0b0b; background: rgba(10,10,10,0.05); }

/* hint pill: bottom center, tells users the moon is clickable.
   Disappears forever after the first POI interaction. */
.poi-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(52px, 8vh, 80px);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a8f9a;
  opacity: 0;
  animation: tagIn 1.4s ease 1.8s forwards;
  pointer-events: none;
  white-space: nowrap;
}
.poi-hint.gone { display: none; }
.poi-hint .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6d7480;
  animation: poiPulse 2.4s ease infinite;
}

@media (max-width: 720px) {
  .poi-label { font-size: 10px; padding: 4px 10px; letter-spacing: 0.14em; }
  .poi-card { padding: 22px 20px 18px; }
  .poi-card-title { font-size: 25px; }
}
