/* ============================================================
   Dropbe Bee Sound Control Widget (Bottom Floating Button)
   ============================================================ */

.bee-sound-widget {
  position: fixed !important;
  bottom: 26px !important;
  left: 26px !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

[dir="rtl"] .bee-sound-widget,
body.rtl .bee-sound-widget {
  left: auto !important;
  right: 26px !important;
}

.bee-sound-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  background: rgba(22, 17, 10, 0.90) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(255, 184, 51, 0.55) !important;
  border-radius: 50px !important;
  padding: 8px 18px 8px 10px !important;
  color: #ffffff !important;
  font-family: var(--dropbe-font, "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 184, 51, 0.22) !important;
  cursor: pointer !important;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
  outline: none !important;
}

.bee-sound-btn:hover {
  background: rgba(30, 22, 12, 0.98) !important;
  border-color: #ffb833 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 184, 51, 0.45) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.bee-sound-btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* Icon Container */
.bee-sound-btn__icon-box {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 184, 51, 0.20) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffb833 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
  transition: all 0.3s ease !important;
}

.bee-sound-btn.is-playing .bee-sound-btn__icon-box {
  background: linear-gradient(135deg, rgba(255, 184, 51, 0.35), rgba(226, 109, 71, 0.35)) !important;
  color: #ffb833 !important;
  text-shadow: 0 0 8px rgba(255, 184, 51, 0.6) !important;
}

.bee-sound-btn.is-muted .bee-sound-btn__icon-box {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #888888 !important;
  text-shadow: none !important;
}

/* Waveform Equalizer */
.bee-sound-btn__wave {
  display: flex !important;
  align-items: flex-end !important;
  gap: 3px !important;
  height: 14px !important;
  padding: 0 2px !important;
}

.bee-sound-btn__wave .bar {
  width: 3px !important;
  background: #ffb833 !important;
  border-radius: 3px !important;
  height: 4px !important;
  transition: height 0.25s ease, background-color 0.3s ease !important;
}

.bee-sound-btn.is-playing .bee-sound-btn__wave .bar-1 {
  animation: dropbeSoundWave 0.75s ease-in-out infinite alternate !important;
}

.bee-sound-btn.is-playing .bee-sound-btn__wave .bar-2 {
  animation: dropbeSoundWave 0.5s ease-in-out 0.2s infinite alternate !important;
}

.bee-sound-btn.is-playing .bee-sound-btn__wave .bar-3 {
  animation: dropbeSoundWave 0.85s ease-in-out 0.4s infinite alternate !important;
}

.bee-sound-btn.is-playing .bee-sound-btn__wave .bar-4 {
  animation: dropbeSoundWave 0.6s ease-in-out 0.1s infinite alternate !important;
}

@keyframes dropbeSoundWave {
  0% {
    height: 3px;
  }
  100% {
    height: 14px;
  }
}

.bee-sound-btn.is-muted .bee-sound-btn__wave .bar {
  height: 3px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  animation: none !important;
}

/* Label text */
.bee-sound-btn__content {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1 !important;
}

.bee-sound-btn__status {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  color: #ffb833 !important;
  transition: color 0.3s ease !important;
}

.bee-sound-btn.is-playing .bee-sound-btn__status {
  color: #ffb833 !important;
  text-shadow: 0 0 10px rgba(255, 184, 51, 0.5) !important;
}

.bee-sound-btn.is-muted {
  background: rgba(22, 22, 22, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

.bee-sound-btn.is-muted .bee-sound-btn__status {
  color: #999999 !important;
  text-shadow: none !important;
}

/* Pulse animation for active sound */
.bee-sound-btn.is-playing {
  animation: beeSoundPulse 2.8s ease-in-out infinite alternate !important;
}

@keyframes beeSoundPulse {
  0% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 184, 51, 0.22);
    border-color: rgba(255, 184, 51, 0.55);
  }
  100% {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 184, 51, 0.45);
    border-color: rgba(255, 184, 51, 0.85);
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .bee-sound-widget {
    bottom: 18px !important;
    left: 16px !important;
  }
  [dir="rtl"] .bee-sound-widget,
  body.rtl .bee-sound-widget {
    right: 16px !important;
  }
  .bee-sound-btn {
    padding: 6px 14px 6px 8px !important;
    gap: 8px !important;
  }
  .bee-sound-btn__icon-box {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
  .bee-sound-btn__status {
    font-size: 11px !important;
  }
}
