/**
 * Realtime Voice Conversation Styles
 * Styles for voice-based conversation interface with AI orb
 */

/* Orb Styles */
.ai-orb-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.ai-orb {
    width: 200px;
    height: 200px;
    background: 
        linear-gradient(var(--gradient-angle, 45deg), 
            #ff7dff 0%, 
            #e17aff 15%,
            #b172ff 30%,
            #8b6cff 45%,
            #6f67ff 60%, 
            #5f99ff 75%,
            #36d6ff 90%,
            #ff7dff 100%
        );
    background-size: 400% 400%;
    animation: shiftGradient 60s ease-in-out infinite,
                shiftGlow 60s ease-in-out infinite;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(255, 125, 255, 0.6),
                0 0 40px rgba(141, 108, 255, 0.4);
    transition: all 0.8s ease-out;
}

.ai-orb.inactive {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #666666 0%, #999999 50%, #666666 100%);
    background-size: 100% 100%;
    animation: none;
    box-shadow: 0 0 15px rgba(150, 150, 150, 0.5);
}

/* Very subtle edge darkening */
.ai-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 70%,
        rgba(0, 0, 0, 0.05) 100%
    );
    border-radius: 50%;
    pointer-events: none;
}

@keyframes shiftGradient {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes shiftGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 125, 255, 0.6),  /* pink */
                    0 0 40px rgba(177, 114, 255, 0.4);  /* purple */
    }
    25% {
        box-shadow: 0 0 20px rgba(177, 114, 255, 0.6),  /* purple */
                    0 0 40px rgba(111, 103, 255, 0.4);  /* dark purple */
    }
    50% {
        box-shadow: 0 0 20px rgba(95, 153, 255, 0.6),   /* blue */
                    0 0 40px rgba(54, 214, 255, 0.4);   /* cyan */
    }
    75% {
        box-shadow: 0 0 20px rgba(54, 214, 255, 0.6),   /* cyan */
                    0 0 40px rgba(255, 125, 255, 0.4);  /* pink */
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 125, 255, 0.6),  /* pink */
                    0 0 40px rgba(177, 114, 255, 0.4);  /* purple */
    }
}

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

/* Responsive sizing */
@media (max-width: 768px) {
    .ai-orb {
        width: 150px;
        height: 150px;
    }
    
    .ai-orb.inactive {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .ai-orb {
        width: 120px;
        height: 120px;
    }
    
    .ai-orb.inactive {
        width: 80px;
        height: 80px;
    }
}

/* Chat Styles */
/* Note: chat-bubbles.css must be loaded before this file */

.chat-container {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
}

.message {
    animation: slideIn 0.3s ease;
}

/* Avatars removed for cleaner transcript display */
.message-avatar {
    display: none;
}

.message-content {
    max-width: 80%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Control Buttons */
.control-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 150px;
}

.control-button:hover {
    transform: scale(1.05);
}

/* Status Messages */
.status-message {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Timer Card */
.timer-card {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.timer-card time {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
}
