/* Voice Bot Simulator Styles */
.voice-sim {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #1f2937, #111827);
  color: white;
}

.vs-header {
  padding: 24px 20px 12px;
  text-align: center;
}

.vs-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(122, 92, 255, 0.2);
}

.vs-avatar svg {
  width: 36px;
  height: 36px;
  fill: white;
}

.vs-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.vs-status {
  font-size: 13px;
  color: #9ca3af;
}

/* Initial State: Play Button */
.vs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s;
}

.vs-play-btn {
  width: 64px;
  height: 64px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: vsPulse 2s infinite;
  border: none;
  color: white;
}

.vs-play-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 4px;
}

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

.vs-overlay-text {
  margin-top: 16px;
  font-weight: 500;
  color: white;
}

/* Call State */
.vs-call-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px 24px;
}

/* Waveform Animation */
.vs-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  margin-bottom: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.vs-waveform.active {
  opacity: 1;
}

.vs-bar {
  width: 4px;
  height: 8px;
  background: #10b981;
  border-radius: 2px;
  transition: background-color 0.3s;
}

.vs-waveform.active .vs-bar {
  animation: vsWave 1s ease-in-out infinite alternate;
}

.vs-waveform.active.bot-speaking .vs-bar {
  background: var(--primary-light, #a5b4fc);
}

.vs-bar:nth-child(1) { animation-delay: 0.1s; }
.vs-bar:nth-child(2) { animation-delay: 0.4s; }
.vs-bar:nth-child(3) { animation-delay: 0.2s; }
.vs-bar:nth-child(4) { animation-delay: 0.6s; }
.vs-bar:nth-child(5) { animation-delay: 0.3s; }
.vs-bar:nth-child(6) { animation-delay: 0.5s; }
.vs-bar:nth-child(7) { animation-delay: 0.1s; }

@keyframes vsWave {
  0% { height: 8px; }
  100% { height: 48px; }
}

/* Transcript Area */
.vs-transcript {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vs-line {
  opacity: 0;
  transform: translateY(10px);
  animation: vsPopIn 0.3s forwards;
}

@keyframes vsPopIn {
  to { opacity: 1; transform: translateY(0); }
}

.vs-line.bot {
  color: #e0e7ff;
}

.vs-line.bot strong {
  color: var(--primary-light, #a5b4fc);
}

.vs-line.human {
  color: #d1fae5;
}

.vs-line.human strong {
  color: #34d399;
}

.vs-line.sfx {
  color: #9ca3af;
  font-style: italic;
  text-align: center;
}

/* Footer controls */
.vs-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.vs-btn-end {
  width: 56px;
  height: 56px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: white;
}

.vs-btn-end svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transform: rotate(135deg);
}

/* Grid Layout for Demos */
.vdemo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.vs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.vs-wrapper .voice-sim {
  width: 100%;
  max-width: 100%;
}
.vs-label {
  color: #9ca3af;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
