/* ============================================================
   Safety UI: block/report dialogs, the safety panel, toasts.

   Its own stylesheet rather than more lines in hud.css (already 64KB): these
   rules are self-contained, and a reviewer looking for the safety features
   should be able to find them in one file.
   ============================================================ */

.safetyModal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 5, 14, 0.72);
  backdrop-filter: blur(3px);
  animation: safetyFade 0.14s ease-out;
}
@keyframes safetyFade { from { opacity: 0; } to { opacity: 1; } }

.safetyCard {
  position: relative;
  width: min(520px, 100%);
  /* A phone in landscape has ~360px of height; the card must scroll rather
     than push its buttons off the bottom of the screen. */
  max-height: min(88vh, 620px);
  overflow-y: auto;
  padding: 20px 22px 18px;
  border: 1px solid rgba(110, 190, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, #0b1426 0%, #070c18 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  color: #cfe3f7;
  font: 14px/1.5 system-ui, "Segoe UI", sans-serif;
}

.safetyClose {
  position: absolute;
  top: 8px; right: 10px;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6e88a8;
  font-size: 16px;
  cursor: pointer;
}
.safetyClose:hover { background: rgba(255, 255, 255, 0.06); color: #cfe3f7; }

.safetyTitle {
  margin-bottom: 10px;
  padding-right: 32px;
  color: #8fd3ff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safetyLead { margin: 0 0 12px; color: #a8bed6; }
.safetyFoot { margin: 12px 0 0; color: #6e88a8; font-size: 12px; }
.safetyEmpty { margin: 0; color: #6e88a8; font-style: italic; }

.safetyActions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.safetyBtn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid rgba(110, 190, 255, 0.35);
  border-radius: 8px;
  background: rgba(30, 70, 120, 0.35);
  color: #dff0ff;
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.safetyBtn:hover { background: rgba(50, 110, 180, 0.45); border-color: rgba(150, 215, 255, 0.6); }
.safetyBtn.danger { border-color: rgba(255, 110, 110, 0.45); background: rgba(120, 30, 30, 0.35); color: #ffd9d9; }
.safetyBtn.danger:hover { background: rgba(170, 40, 40, 0.5); }

.safetyRadios { display: grid; gap: 4px; margin-bottom: 12px; }
.safetyRadio { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.safetyRadio:hover { background: rgba(255, 255, 255, 0.04); }
.safetyRadio input { accent-color: #4aa3e0; }

.safetyDetail,
.safetyConfirm {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(110, 190, 255, 0.25);
  border-radius: 8px;
  background: rgba(4, 10, 22, 0.8);
  color: #dff0ff;
  font: 13px/1.4 system-ui, sans-serif;
  resize: vertical;
}
.safetyConfirm { letter-spacing: 0.2em; text-align: center; }

.safetySection { padding: 14px 0; border-top: 1px solid rgba(110, 190, 255, 0.14); }
.safetySection:first-child { padding-top: 0; border-top: 0; }
.safetySectionHead {
  margin-bottom: 8px;
  color: #7fb2d9;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.safetySection.danger .safetySectionHead { color: #ff9a9a; }

.safetyBlocks { display: grid; gap: 6px; }
.safetyBlockRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}
.safetyUnblock {
  padding: 5px 10px;
  border: 1px solid rgba(110, 190, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  color: #9fc9e8;
  font: 600 11px/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.safetyUnblock:hover { background: rgba(110, 190, 255, 0.15); color: #eaf6ff; }

.safetyLinks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.safetyLinks a { color: #6fc0ff; font-size: 12px; text-decoration: none; }
.safetyLinks a:hover { text-decoration: underline; }

.safetyRules { margin: 0 0 12px; padding-left: 20px; color: #a8bed6; }
.safetyRules li { margin: 3px 0; }

/* ── toasts ─────────────────────────────────────────────────────────────── */

#safetyToasts {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 9100;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.safetyToast {
  max-width: min(440px, 92vw);
  padding: 9px 16px;
  border: 1px solid rgba(110, 190, 255, 0.35);
  border-radius: 20px;
  background: rgba(8, 16, 30, 0.94);
  color: #dff0ff;
  font: 13px/1.4 system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.safetyToast.good { border-color: rgba(110, 255, 170, 0.4); color: #d6ffe9; }
.safetyToast.warn { border-color: rgba(255, 170, 90, 0.5); color: #ffe6c9; }
.safetyToast.out { opacity: 0; transform: translateY(-6px); }

/* A name anywhere in the UI that opens the block/report menu. Underlined on
   hover only — a permanently decorated roster reads as a page of links. */
.reportable { cursor: pointer; }
.reportable:hover { text-decoration: underline dotted; }

/* ── the entry point on the profile page ────────────────────────────────── */

.profSafetyRow { margin-bottom: 8px; }

.profSafetyBtn {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(110, 190, 255, 0.3);
  border-radius: 8px;
  background: rgba(20, 44, 76, 0.4);
  color: #cfe3f7;
  font: 600 12px/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.profSafetyBtn:hover { background: rgba(40, 90, 150, 0.5); color: #eaf6ff; }

.profLegal { display: flex; flex-wrap: wrap; gap: 14px; }
.profLegal a { color: #6fc0ff; font-size: 12px; text-decoration: none; }
.profLegal a:hover { text-decoration: underline; }
