/**
 * Premium AI Particle Visualizer Styles
 * 
 * Container styling for the audio-reactive particle system
 */

/* Main visualizer container - LARGE to let particles flow freely */
.ai-visualizer-container {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;  /* Much larger! */
  height: 700px; /* Much larger! */
  z-index: 1000;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease, left 0.5s ease, top 0.5s ease;
  
  /* Fully transparent - no visible container */
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  overflow: visible !important;
  box-shadow: none !important;
}

/* Ensure visibility when AI assistant is active */
body.ai-assistant-open .ai-visualizer-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ai-visualizer-container.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Move visualizer when tour cards are showing */
.ai-visualizer-container.with-cards {
  left: 25%;
  top: 30%;
  width: 500px;
  height: 500px;
}

/* Canvas - transparent, no boundaries */
#particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

/* Speaking indicator (optional, for debugging) */
.visualizer-status {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8em;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.visualizer-status.visible {
  opacity: 1;
}

/* Speaking dots animation */
.speaking-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
}

.speaking-dots span {
  width: 5px;
  height: 5px;
  background: rgba(167, 139, 250, 0.9);
  border-radius: 50%;
  animation: speakingDot 1.2s ease-in-out infinite;
}

.speaking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.speaking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes speakingDot {
  0%, 100% { 
    transform: scale(0.8); 
    opacity: 0.5; 
  }
  50% { 
    transform: scale(1.3); 
    opacity: 1; 
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .ai-visualizer-container {
    width: 400px;
    height: 400px;
    top: 30%;
  }
  
  .ai-visualizer-container.with-cards {
    left: 50%;
    top: 20%;
    width: 350px;
    height: 350px;
  }
}

/* Large screens / kiosk mode */
@media (min-width: 1200px) {
  .ai-visualizer-container {
    width: 800px;
    height: 800px;
    top: 38%;
  }
  
  .ai-visualizer-container.with-cards {
    width: 600px;
    height: 600px;
  }
}

