/* ===================================================================
   HALICONSOFT TECHNOLOGIES - BESPOKE AI VOICE ASSISTANT
   Bilingual Executive Voice Engine (Hindi & English)
   =================================================================== */

/* Floating Launcher */
.halicon-voice-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 17, 32, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 8px 18px 8px 10px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.halicon-voice-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.45);
}

.voice-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #2563eb 60%, #0f172a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
  flex-shrink: 0;
}

.voice-orb::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  animation: orbPulse 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.voice-orb-icon {
  font-size: 1.3rem;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

@keyframes orbPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1); opacity: 0.8; }
}

.voice-launcher-text {
  display: flex;
  flex-direction: column;
}

.voice-launcher-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.voice-live-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: blinkLive 1.6s infinite ease-in-out;
}

@keyframes blinkLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.voice-launcher-sub {
  font-size: 0.73rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Assistant Modal Window */
.halicon-voice-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 390px;
  max-width: calc(100vw - 36px);
  background: rgba(10, 15, 29, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(24px);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: voiceWindowIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.halicon-voice-window.active {
  display: flex;
}

@keyframes voiceWindowIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.voice-window-header {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice-agent-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
  position: relative;
}

.voice-header-meta h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.voice-header-meta span {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 500;
}

.voice-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Language Toggle Pill */
.voice-lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.voice-lang-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

.voice-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Sound Wave Equalizer Display */
.voice-visualizer-box {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.equalizer-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  margin-bottom: 8px;
}

.eq-bar {
  width: 4px;
  border-radius: 4px;
  background: #38bdf8;
  height: 8px;
  transition: height 0.15s ease;
}

.equalizer-wave.speaking .eq-bar:nth-child(1) { animation: eqBounce 0.8s infinite ease-in-out; }
.equalizer-wave.speaking .eq-bar:nth-child(2) { animation: eqBounce 1.1s infinite ease-in-out 0.1s; }
.equalizer-wave.speaking .eq-bar:nth-child(3) { animation: eqBounce 0.7s infinite ease-in-out 0.2s; }
.equalizer-wave.speaking .eq-bar:nth-child(4) { animation: eqBounce 1.2s infinite ease-in-out 0.15s; }
.equalizer-wave.speaking .eq-bar:nth-child(5) { animation: eqBounce 0.9s infinite ease-in-out 0.25s; }
.equalizer-wave.speaking .eq-bar:nth-child(6) { animation: eqBounce 1.0s infinite ease-in-out 0.05s; }
.equalizer-wave.speaking .eq-bar:nth-child(7) { animation: eqBounce 0.75s infinite ease-in-out 0.3s; }

@keyframes eqBounce {
  0%, 100% { height: 8px; background: #38bdf8; }
  50% { height: 36px; background: #60a5fa; box-shadow: 0 0 10px #38bdf8; }
}

.voice-status-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* Chat & Speech Stream */
.voice-chat-feed {
  padding: 16px 20px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-msg {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  animation: msgPop 0.2s ease-out;
}

@keyframes msgPop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.voice-msg.ai {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.voice-msg.user {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Quick Topic Chips */
.voice-topics-shelf {
  padding: 4px 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.voice-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.voice-chip:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Bottom Controls */
.voice-window-footer {
  padding: 14px 20px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-text-input {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.voice-text-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.voice-text-input::placeholder {
  color: #64748b;
}

.voice-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #2563eb;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-send-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

/* Big Mic Button Row */
.voice-mic-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.voice-mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4);
  transition: all 0.25s ease;
}

.voice-mic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.55);
}

.voice-mic-btn.listening {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
  animation: micListenPulse 1.2s infinite ease-in-out;
}

@keyframes micListenPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 480px) {
  .halicon-voice-launcher {
    bottom: 20px;
    right: 16px;
    padding: 6px 14px 6px 8px;
  }
  .halicon-voice-window {
    bottom: 84px;
    right: 16px;
    width: calc(100vw - 32px);
  }
}
