/* ==========================================================================
   WhatsApp Voice Note Component Stylesheet
   ========================================================================== */

/* Main Card Container */
.wa-vn-card {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  border-radius: 14px;
  padding: 12px 14px;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.wa-vn-card * {
  box-sizing: border-box;
}

/* ==========================================================================
   Mobile Responsive Refinements (Viewport <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .wa-vn-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .wa-vn-header {
    gap: 6px;
    margin-bottom: 8px;
  }

  .wa-vn-avatar {
    height: 24px !important;
    width: auto !important;
    max-width: 55px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    padding: 2px 4px !important;
    border-radius: 5px !important;
    border: 1px solid #25d366 !important;
    flex-shrink: 0 !important;
  }

  .wa-vn-title {
    font-size: clamp(0.68rem, 3.2vw, 0.78rem);
    white-space: nowrap !important;
  }

  /* Compact WhatsApp Button Box Height - 25% Height Reduction (Mobile Version ONLY) */
  .wa-btn-shock {
    padding: 2.5px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 12px !important;
    gap: 3px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .wa-btn-shock svg {
    width: 10.5px !important;
    height: 10.5px !important;
  }

  /* Mobile Player: Fit Waveform Horizontally Between Play Button & 1x Speed Button */
  .wa-vn-player {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 6px 10px !important;
  }

  .wa-vn-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .wa-vn-waveform {
    flex: 1 !important;
    height: 18px !important;
    margin-bottom: 0 !important;
    gap: 2.5px !important;
  }

  .wa-vn-meta {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .wa-vn-time {
    font-size: 0.75rem !important;
    line-height: 1 !important;
  }

  .wa-vn-speed {
    padding: 2px 6px !important;
    height: 18px !important;
    min-width: 24px !important;
    font-size: 0.65rem !important;
    line-height: 1 !important;
    border-radius: 4px !important;
    position: relative;
    touch-action: manipulation;
  }

  .wa-vn-speed::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
  }

  .wa-vn-nudge {
    font-size: 0.69rem;
    padding: 4px 6px;
    margin-top: 6px;
  }
}


/* Header & Avatar / Badge */
.wa-vn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.wa-vn-identity {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
  white-space: nowrap !important;
}

.wa-vn-avatar {
  height: 24px;
  width: auto;
  max-width: 55px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px 4px;
  border-radius: 5px;
  border: 1px solid #25d366;
  flex-shrink: 0;
}

.wa-vn-title {
  font-size: clamp(0.68rem, 3.2vw, 0.78rem);
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.wa-vn-title span {
  white-space: nowrap !important;
  display: inline-block;
}

.wa-vn-title svg {
  flex-shrink: 0;
}

/* WhatsApp CTA Shockwave Pulsing Button - Proportional Sizing */
.wa-btn-shock {
  color: #ffffff !important;
  background: #25d366;
  border: 1px solid #ffffff;
  text-decoration: none !important;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  will-change: transform, box-shadow;
  animation: waShockPulse 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wa-btn-shock svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}


@keyframes waShockPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.9), 0 3px 10px rgba(0, 0, 0, 0.25);
  }
  40% {
    transform: scale(1.08) rotate(-1deg);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 6px 18px rgba(37, 211, 102, 0.5);
  }
  50% {
    transform: scale(1.05) rotate(1deg);
  }
  70% {
    transform: scale(1.08) rotate(0deg);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 3px 10px rgba(0, 0, 0, 0.25);
  }
}

.wa-btn-shock:hover {
  transform: scale(1.12) !important;
  background: #20ba5a !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7) !important;
}

/* Audio Player & Waveform Scrubber */
.wa-vn-player {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Perfect Geometric Circle Play Button */
.wa-vn-play-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #25d366;
  border: none;
  color: #ffffff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
  padding: 0 !important;
  margin: 0 !important;
  outline: none;
  position: relative;
  touch-action: manipulation;
}

.wa-vn-play-btn::after {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
}

.wa-vn-play-btn:hover {
  transform: scale(1.08);
  background: #20ba5a;
}

.wa-vn-play-icon {
  margin-left: 1.5px;
}

.wa-vn-controls {
  flex-grow: 1;
  min-width: 0;
}

.wa-vn-waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 20px;
  width: 100%;
  margin-bottom: 4px;
  cursor: pointer;
}

.wa-bar {
  width: 2.5px;
  max-width: 3px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50px;
  transition: background 0.1s ease;
  min-height: 3px;
}

.wa-vn-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

/* Compact Proportional Speed Tag - 50% Height */
.wa-vn-speed {
  background: rgba(255, 255, 255, 0.2);
  border: none !important;
  color: #ffffff;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  height: 16px !important;
  min-width: 22px !important;
  font-size: 0.62rem !important;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transition: background 0.15s ease;
  box-sizing: border-box;
  position: relative;
  touch-action: manipulation;
}

.wa-vn-speed::after {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
}

.wa-vn-speed:hover {
  background: rgba(255, 255, 255, 0.38);
}



/* High-Converting Marketing Nudge Line */
.wa-vn-nudge {
  font-size: 0.74rem;
  color: #dcf8c6;
  margin-top: 6px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 10px;
  border-radius: 8px;
}
