/**
 * Welcome Speech Control Button Styles
 */

#speech-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.speech-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066CC 0%, #1fa84f 100%);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.speech-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
}

.speech-toggle:active {
  transform: translateY(-1px);
}

.speech-toggle.muted {
  background: linear-gradient(135deg, #666 0%, #999 100%);
  box-shadow: 0 4px 15px rgba(102, 102, 102, 0.4);
}

.speech-toggle.muted:hover {
  box-shadow: 0 6px 20px rgba(102, 102, 102, 0.6);
}

.speech-toggle i {
  pointer-events: none;
}

/* Animation when speech is playing */
body.speech-playing .speech-toggle {
  animation: pulse 1s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  #speech-control {
    bottom: 80px;
    right: 20px;
  }

  .speech-toggle {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  #speech-control {
    bottom: 70px;
    right: 15px;
  }

  .speech-toggle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Hide on print */
@media print {
  #speech-control {
    display: none;
  }
}

/* Enable Sound Notification (for Chrome autoplay policy) */
.enable-sound-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 10000;
  background: linear-gradient(135deg, #0066CC 0%, #1fa84f 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.5);
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.enable-sound-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.enable-sound-notification .notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.enable-sound-notification .notification-content i {
  font-size: 18px;
  animation: soundPulse 1.5s ease-in-out infinite;
}

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

.enable-sound-notification:hover {
  box-shadow: 0 6px 25px rgba(0, 102, 204, 0.7);
  transform: translateX(-50%) translateY(-2px);
}

/* Responsive adjustments for notification */
@media (max-width: 768px) {
  .enable-sound-notification {
    top: 15px;
    padding: 12px 20px;
  }

  .enable-sound-notification .notification-content {
    font-size: 13px;
    gap: 10px;
  }

  .enable-sound-notification .notification-content i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .enable-sound-notification {
    top: 10px;
    left: 10px;
    right: 10px;
    transform: translateY(-100px);
    padding: 10px 15px;
  }

  .enable-sound-notification.show {
    transform: translateY(0);
  }

  .enable-sound-notification:hover {
    transform: translateY(-2px);
  }

  .enable-sound-notification .notification-content {
    font-size: 12px;
  }
}
