/* ===== Floating AI Button ===== */

.galaxy-ai-floating-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5856d6 0%, #ff2d55 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(88, 86, 214, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  overflow: visible;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.galaxy-ai-floating-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(88, 86, 214, 0.5);
}

.galaxy-ai-floating-button:active {
  transform: scale(0.95);
}

.galaxy-ai-floating-button-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.galaxy-ai-floating-button-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
}

.galaxy-ai-floating-button:hover .galaxy-ai-floating-button-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
  .galaxy-ai-floating-button {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
  }

  .galaxy-ai-floating-button svg {
    width: 22px;
    height: 22px;
  }

  .galaxy-ai-floating-button-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .galaxy-ai-floating-button {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .galaxy-ai-floating-button svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {
  .galaxy-ai-floating-button {
    transition: none;
  }

  .galaxy-ai-floating-button:hover {
    transform: none;
  }

  .galaxy-ai-floating-button-tooltip {
    transition: none;
  }
}

