/* static/css/pointStatus.css
   HUD/NEON style compatible with your :root variables
   Requires: --glassA/--glassB, --lineA/--lineB, --neon, --red, --amber, --txt, --txt-dim, --r12, --r14, --r999, --focus
*/

/* =========================
   Popup status actions
   ========================= */
.popup-section-actions{
  margin-top: 10px;
}

.popup-section-actions .popup-label{
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--txt-dim);
}

/* ✅ 3 строки: кнопки вертикально */
.popup-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch; /* чтобы все были одной ширины */
}

/* base button */
.popup-btn{
  position: relative;

  /* ✅ одинаковая геометрия */
  width: 100%;
  min-height: 44px;       /* одинаковая высота */
  padding: 10px 12px;

  /* ✅ ровное центрирование текста */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* ✅ если текст длиннее — переносится, но ширина/форма одинаковые */
  white-space: normal;
  line-height: 1.15;

  border-radius: var(--r12);
  border: 1px solid var(--lineB);
  background: linear-gradient(180deg, rgba(7,14,28,.72), rgba(7,14,28,.52));
  color: var(--txt);
  cursor: pointer;

  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;

  box-shadow: var(--glowA), var(--shadowA);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, opacity .12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.popup-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,242,255,.30);
  box-shadow: var(--glowB), var(--shadowA);
}

.popup-btn:focus{
  outline: none;
}

.popup-btn:focus-visible{
  box-shadow: var(--focus), var(--shadowA);
  border-color: rgba(0,242,255,.35);
}

.popup-btn:active{
  transform: translateY(0);
}

/* disabled = "selected" in your logic (current status) */
.popup-btn:disabled{
  opacity: .72;
  cursor: default;
  transform: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 12px 24px rgba(0,0,0,.35);
}

/* Accent colors by action */
.popup-btn[data-action="destroyed"]{
  border-color: rgba(255,60,60,.28);
  background: linear-gradient(180deg, rgba(18,6,10,.74), rgba(7,14,28,.52));
}
.popup-btn[data-action="destroyed"]:hover{
  border-color: rgba(255,60,60,.42);
  box-shadow:
    0 0 0 1px rgba(255,60,60,.18),
    0 0 34px rgba(255,60,60,.12),
    var(--shadowA);
}

.popup-btn[data-action="needs_recon"]{
  border-color: rgba(255,207,60,.24);
  background: linear-gradient(180deg, rgba(18,14,6,.74), rgba(7,14,28,.52));
}
.popup-btn[data-action="needs_recon"]:hover{
  border-color: rgba(255,207,60,.38);
  box-shadow:
    0 0 0 1px rgba(255,207,60,.14),
    0 0 34px rgba(255,207,60,.10),
    var(--shadowA);
}

.popup-btn[data-action="none"]{
  border-color: rgba(0,242,255,.20);
  background: linear-gradient(180deg, rgba(7,14,28,.72), rgba(7,14,28,.52));
}
.popup-btn[data-action="none"]:hover{
  border-color: rgba(0,242,255,.34);
}

/* When button is disabled (selected), make accent clearer */
.popup-btn[data-action="destroyed"]:disabled{
  border-color: rgba(255,60,60,.55);
  box-shadow:
    0 0 0 1px rgba(255,60,60,.22),
    0 0 44px rgba(255,60,60,.10),
    0 16px 36px rgba(0,0,0,.45);
}
.popup-btn[data-action="needs_recon"]:disabled{
  border-color: rgba(255,207,60,.55);
  box-shadow:
    0 0 0 1px rgba(255,207,60,.18),
    0 0 44px rgba(255,207,60,.09),
    0 16px 36px rgba(0,0,0,.45);
}
.popup-btn[data-action="none"]:disabled{
  border-color: rgba(0,242,255,.42);
}

/* Optional: compact on small widths */
@media (max-width: 980px){
  .popup-btn{ padding: 9px 10px; min-height: 42px; }
}


/* =========================
   Marker destroyed style
   ========================= */
.marker-destroyed .marker-outer{
  filter: grayscale(1) saturate(.2);
  opacity: .62;
}

.marker-destroyed .marker-outer{
  box-shadow:
    0 0 0 2px rgba(255,60,60,.18),
    0 0 28px rgba(255,60,60,.16);
}

.marker-destroyed .marker-outer::after{
  content:"";
  position:absolute;
  inset: -2px;
  border-radius: 999px;
  pointer-events:none;
  background:
    linear-gradient(135deg,
      transparent 44%,
      rgba(255,60,60,.0) 44%,
      rgba(255,60,60,.65) 50%,
      rgba(255,60,60,.0) 56%,
      transparent 56%);
  mix-blend-mode: screen;
  opacity: .85;
}

.marker-destroyed .marker-outer{
  position: relative;
}


/* =========================
   Recon badge (needs_recon)
   ========================= */
.recon-badge{
  background: transparent;
  border: 0;
}

.recon-badge__q{
  width: 18px;
  height: 18px;
  border-radius: 999px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-family: var(--font-title);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;

  background: linear-gradient(180deg, rgba(18,14,6,.82), rgba(7,14,28,.55));
  color: rgba(255,255,255,.92);

  border: 1px solid rgba(255,207,60,.48);

  box-shadow:
    0 0 0 1px rgba(255,207,60,.14),
    0 0 26px rgba(255,207,60,.16),
    0 14px 32px rgba(0,0,0,.48);

  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

@keyframes reconPulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 1px rgba(255,207,60,.14), 0 0 26px rgba(255,207,60,.14), 0 14px 32px rgba(0,0,0,.48); }
  50%  { transform: scale(1.06); box-shadow: 0 0 0 1px rgba(255,207,60,.18), 0 0 34px rgba(255,207,60,.18), 0 16px 36px rgba(0,0,0,.52); }
  100% { transform: scale(1);    box-shadow: 0 0 0 1px rgba(255,207,60,.14), 0 0 26px rgba(255,207,60,.14), 0 14px 32px rgba(0,0,0,.48); }
}

.recon-badge__q{
  animation: reconPulse 1.8s ease-in-out infinite;
}


/* =========================
/* =========================
   Status hover highlight (DOM badge, not ::before)
   ========================= */

/* корень иконки */
.custom-marker{
  position: relative;
}

/* бейдж скрыт по умолчанию */
.custom-marker .status-badge{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);

  padding: 5px 8px;
  border-radius: 10px;

  font: 800 11px/1 var(--font-ui);
  letter-spacing: .02em;
  white-space: nowrap;

  color: rgba(255,255,255,.92);
  background: linear-gradient(180deg, rgba(7,14,28,.82), rgba(7,14,28,.62));
  border: 1px solid rgba(0,242,255,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 24px rgba(0,242,255,.10);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  z-index: 9999;
}

/* показываем только при наведении */
.custom-marker.status-hover .status-badge{
  opacity: 1;
  visibility: visible;
}

/* базовая подсветка */
.custom-marker.status-hover .marker-outer{
  box-shadow:
    0 0 0 2px rgba(0,242,255,.18),
    0 0 30px rgba(0,242,255,.14);
}

/* Destroyed */
.custom-marker.status-hover.status-destroyed .marker-outer{
  box-shadow:
    0 0 0 2px rgba(255,60,60,.26),
    0 0 34px rgba(255,60,60,.18);
}
.custom-marker.status-destroyed .status-badge{
  border-color: rgba(255,60,60,.28);
  box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 24px rgba(255,60,60,.10);
}

/* Needs recon */
.custom-marker.status-hover.status-needs_recon .marker-outer{
  box-shadow:
    0 0 0 2px rgba(255,207,60,.26),
    0 0 34px rgba(255,207,60,.16);
}
.custom-marker.status-needs_recon .status-badge{
  border-color: rgba(255,207,60,.28);
  box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 24px rgba(255,207,60,.10);
}