/* ============================================================
   COPRA — THE LIST SHOWS WHO IS TALKING (js/copra-speaker.js)
   The open channel's row is lit; whoever is transmitting is
   ON AIR — brighter, the name glowing, the dot ringing. His own
   "You: 10-8" in the header goes on air when he sends.
   ============================================================ */

/* the open channel */
.copra-contacts-list .copra-contact.copra-open {
  background: #3d2f34;
  box-shadow: inset 3px 0 0 #d4a574;
}
.copra-contacts-list .copra-contact.copra-open .copra-contact-name { color: #ffb3d9; }

/* on the air */
.copra-contacts-list .copra-contact.copra-talking {
  background: linear-gradient(90deg, rgba(255, 105, 180, 0.22), rgba(255, 105, 180, 0.06) 70%, rgba(255, 105, 180, 0) 100%), #3d2f34;
  box-shadow: inset 3px 0 0 #ff69b4;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.copra-contacts-list .copra-contact.copra-talking .copra-contact-name {
  color: #ffd1e8;
  text-shadow: 0 0 8px rgba(255, 105, 180, 0.75);
}
.copra-contacts-list .copra-contact.copra-talking .copra-contact-status {
  animation: copraOnAirRing 1.1s ease-out infinite;
}
/* on the right edge of the row, out of the text's way: lighting up never
   reflows the row (inline, it wrapped under a long name and the row jumped) */
.copra-onair {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 4px;
  font-size: 8px;
  line-height: 13px;
  letter-spacing: 1.5px;
  font-weight: bold;
  color: #2a2025;
  background: #ff69b4;
  animation: copraOnAirBlink 1.1s steps(2, jump-none) infinite;
}

/* his own line */
.copra-user-status.copra-talking .copra-status-label,
.copra-user-status.copra-talking .copra-status-text {
  color: #ffd1e8;
  text-shadow: 0 0 8px rgba(255, 105, 180, 0.75);
}
.copra-user-status.copra-talking .copra-status-indicator {
  animation: copraOnAirRing 1.1s ease-out infinite;
}

@keyframes copraOnAirRing {
  0%   { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.75); }
  100% { box-shadow: 0 0 0 7px rgba(255, 105, 180, 0); }
}
@keyframes copraOnAirBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .copra-contacts-list .copra-contact.copra-talking .copra-contact-status,
  .copra-user-status.copra-talking .copra-status-indicator,
  .copra-onair { animation: none; }
}
