/* public/css/ghost.css — WebGL Orb Container (replaces old CSS orb) */

.ghost-container {
    position: fixed;
    bottom: 2rem;
    right: 2.5rem;
    z-index: 1000;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    pointer-events: auto;
    cursor: pointer;
    will-change: transform, left, top;
    transform: translateZ(0);
    /* Spring physics handles position via inline styles */
}

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

.ghost-container.visible {
    opacity: 1;
}

.ghost-container canvas {
    border-radius: 50%;
    /* Glow behind the orb */
    filter: drop-shadow(0 0 12px rgba(100, 140, 255, 0.4))
            drop-shadow(0 0 30px rgba(100, 140, 255, 0.15));
    transition: filter 0.5s;
}

/* Speaking state → stronger glow */
.ghost-container.speaking canvas {
    filter: drop-shadow(0 0 20px rgba(255, 180, 50, 0.6))
            drop-shadow(0 0 50px rgba(255, 130, 50, 0.3));
}

@media (max-width: 768px) {
    .ghost-container {
        width: 64px;
        height: 64px;
    }
}

/* ═══ ElevenLabs Widget — hidden by default, toggled by ghost orb ═══ */
elevenlabs-convai {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

elevenlabs-convai.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hide default ElevenLabs orb button (we use our own) */
elevenlabs-convai::part(widget) {
    display: none !important;
}
