/* Zeal Vector Engine — Civic Feeling OS for MAARA TownMesh */
/* BY KENYA / FOR KENYA — care · trust · urgency · pride */

/* ── Infrasonic Field ─────────────────────────────────────────────────────── */
#zeal-infra-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 3s ease;
  will-change: opacity, transform;
  animation: zeal-breathe var(--zeal-breath-dur, 10s) ease-in-out infinite;
}

@keyframes zeal-breathe {
  0%, 100% { opacity: var(--zeal-min-opacity, 0.35); transform: scale(1); }
  50%       { opacity: var(--zeal-max-opacity, 0.75); transform: scale(1.03); }
}

/* ── Zeal Indicator pill ──────────────────────────────────────────────────── */
#zeal-indicator {
  position: fixed;
  bottom: 68px;
  left: 16px;
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px 5px 7px;
  background: rgba(8, 8, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.80);
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
  user-select: none;
  cursor: default;
}

/* ── Vector dots ──────────────────────────────────────────────────────────── */
.zeal-dot {
  border-radius: 50%;
  flex-shrink: 0;
  transition: width 0.7s ease, height 0.7s ease, opacity 0.7s ease;
}
.zeal-dot.care    { background: #00a86b; }
.zeal-dot.trust   { background: #3b82f6; }
.zeal-dot.urgency { background: #f59e0b; }
.zeal-dot.pride   { background: #a855f7; }

/* ── Label ────────────────────────────────────────────────────────────────── */
.zeal-label {
  text-transform: uppercase;
  transition: color 0.7s ease;
}

/* ── Intensity bar ────────────────────────────────────────────────────────── */
.zeal-bar-track {
  width: 28px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.zeal-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1), background 0.7s ease;
}

/* ── Data-attribute action element pulse ──────────────────────────────────── */
[data-zeal-action] {
  position: relative;
}
[data-zeal-action]::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 transparent;
}
[data-zeal-action].zeal-pulse::after {
  animation: zeal-btn-pulse 0.65s ease-out forwards;
}
@keyframes zeal-btn-pulse {
  0%   { box-shadow: 0 0 0 0 var(--zeal-btn-color, rgba(0, 168, 107, 0.55)); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
