/**
 * SRPR COMÉRCIO E REPRESENTAÇÃO
 * Animações Fluidas, Movimento da Curvatura + Seta e Microinterações
 */

/* ==========================================================================
   Movimento Elástico Horizontal Exclusivamente na Elevação (Paridade Podea)
   ========================================================================== */
@keyframes notchElasticHorizontal {
  0%, 100% {
    transform: scaleX(1) scaleY(1);
  }
  35% {
    transform: scaleX(1.18) scaleY(0.92);
  }
  65% {
    transform: scaleX(0.88) scaleY(1.06);
  }
}

/* ==========================================================================
   Efeito Orgânico da Gota (Droplet Indicator)
   ========================================================================== */
.hero-droplet {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.droplet-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(11, 19, 43, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: dropletFloat 3.2s infinite ease-in-out;
}

.droplet-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(2, 132, 199, 0.35);
  animation: dropletRing 3.2s infinite ease-out;
}

.droplet-circle i {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

.hero-droplet:hover .droplet-circle {
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.35);
  color: var(--color-accent);
}

.hero-droplet:hover .droplet-circle i {
  transform: translateY(3px);
}

@keyframes dropletFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(7px) scale(0.96, 1.05);
  }
  65% {
    transform: translateY(2px) scale(1.02, 0.98);
  }
}

@keyframes dropletRing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* ==========================================================================
   Pulsos de Play Button e Indicador de Status
   ========================================================================== */
.pulse-play {
  animation: playPulse 2.4s infinite ease-in-out;
}

@keyframes playPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.online-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: onlinePulseAnim 2s infinite;
  margin-right: 6px;
}

@keyframes onlinePulseAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   Indicador de Digitação do Bot
   ========================================================================== */
.typing-indicator span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
  margin: 0 2px;
  opacity: 0.4;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   Transição de Modais
   ========================================================================== */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

