/* ============================================================
 * Vilkax · vlx-guardian - bottom-left wolf-themed alert popup.
 *
 * Renders the most recent unseen reactive signal as a compact chip
 * with a glowing wolf eyemark and a CTA. Tapping opens the chat
 * pre-loaded with a question about the signal.
 *
 * Tiny visual footprint, large affordance, doesn't collide with
 * the right-side chat launcher.
 * ============================================================ */

.vlx-guard-chip {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 2147483542;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 10px 14px 10px 12px;
  background: linear-gradient(180deg, rgba(15, 27, 50, 0.96), rgba(11, 20, 38, 0.98));
  border: 1px solid rgba(127, 207, 230, 0.32);
  border-radius: 14px;
  color: #cfe6f1;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(127, 207, 230, 0.08) inset,
    0 0 30px rgba(127, 207, 230, 0.20);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.vlx-guard-chip.is-show { opacity: 1; transform: translateY(0); }
.vlx-guard-chip[data-sev="warning"]  { border-color: rgba(255, 198, 92, 0.50); box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 28px rgba(255,198,92,0.22); }
.vlx-guard-chip[data-sev="critical"] { border-color: rgba(255, 136, 150, 0.55); box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 32px rgba(255,136,150,0.28); }
.vlx-guard-chip[data-sev="info"]     { border-color: rgba(123, 230, 194, 0.45); box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 24px rgba(123,230,194,0.20); }

/* Wolf eye glyph - a stylised eye with an animated iris pulse */
.vlx-guard-eye {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7FCFE6, #0B1426 70%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 14px rgba(127, 207, 230, 0.45);
  overflow: hidden;
}
.vlx-guard-eye::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #0B1426;
  box-shadow: inset 0 0 6px rgba(127, 207, 230, 0.7);
}
.vlx-guard-eye::after {
  /* Vertical iris slit (wolf eye) */
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 50%;
  width: 5px;
  margin-left: -2.5px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(ellipse at center, #cfe6f1 0%, #7FCFE6 35%, #1f3a5a 80%);
  box-shadow: 0 0 6px rgba(127, 207, 230, 0.8);
  animation: vlx-guard-blink 5.4s ease-in-out infinite;
}
.vlx-guard-chip[data-sev="warning"]  .vlx-guard-eye::after { background: radial-gradient(ellipse at center, #ffe6b6 0%, #ffc65c 35%, #6b3f00 80%); box-shadow: 0 0 6px rgba(255,198,92,0.8); }
.vlx-guard-chip[data-sev="critical"] .vlx-guard-eye::after { background: radial-gradient(ellipse at center, #ffd2da 0%, #ff8896 35%, #4e0010 80%); box-shadow: 0 0 6px rgba(255,136,150,0.8); }
@keyframes vlx-guard-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%           { transform: scaleY(0.05); }
}
@media (prefers-reduced-motion: reduce) {
  .vlx-guard-eye::after { animation: none; }
}

.vlx-guard-body { flex: 1; min-width: 0; }
.vlx-guard-head {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.vlx-guard-detail {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #8fa0bb;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.vlx-guard-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.vlx-guard-ask, .vlx-guard-close {
  appearance: none;
  border: 1px solid rgba(127, 207, 230, 0.30);
  background: rgba(127, 207, 230, 0.10);
  color: #cfe6f1;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.vlx-guard-ask {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.vlx-guard-ask:hover { background: rgba(127, 207, 230, 0.22); }
.vlx-guard-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vlx-guard-close:hover { background: rgba(127, 207, 230, 0.22); transform: scale(1.06); }

@media (max-width: 520px) {
  .vlx-guard-chip {
    left: 8px;
    right: 78px;            /* don't overlap the bottom-right chat launcher */
    bottom: 14px;
    max-width: none;
  }
}
