/**
 * REAL-TIME VOICE STYLES (DEEPGRAM)
 */

/* Live Transcript Container */
.live-transcript-container {
    background: linear-gradient(135deg, rgba(121, 176, 97, 0.05) 0%, rgba(121, 176, 97, 0.1) 100%);
    border: 2px solid rgba(121, 176, 97, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    animation: slideUp 0.3s ease-out;
}

.live-transcript-container.hidden {
    display: none;
}

/* Header */
.live-transcript-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.live-label {
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Recording pulse animation */
.recording-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Live Transcript Text */
.live-transcript-text {
    min-height: 50px;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.live-transcript-text:empty::before {
    content: 'Hold Space bar to start talking...';
    color: #999;
    font-style: italic;
    font-size: 0.95rem;
}

/* Interim transcript (gray, not final) */
.live-transcript-text .interim {
    color: #999;
    font-style: italic;
}

/* Final transcript (black, confirmed) */
.live-transcript-text .final {
    color: #000;
    font-weight: 500;
}

/* Realtime Voice Button States */
#voiceRealtimeBtn {
    position: relative;
    transition: all 0.3s ease;
}

#voiceRealtimeBtn.active {
    background: var(--primary-green);
    color: white;
}

#voiceRealtimeBtn.recording {
    animation: recordingButton 1.5s ease-in-out infinite;
}

@keyframes recordingButton {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(121, 176, 97, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(121, 176, 97, 0);
    }
}

/* Slide up animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .live-transcript-container {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .live-transcript {
        font-size: 0.9rem;
        padding: 0.5rem;
        min-height: 30px;
    }
    
    .live-transcript-header {
        font-size: 0.85rem;
    }
}

/* Differentiate from old voice button */
#voiceInputBtn {
    opacity: 0.6;
}

#voiceInputBtn:hover {
    opacity: 1;
}

/* Tooltip to help users understand the difference */
#voiceRealtimeBtn::after {
    content: 'NEW';
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
    pointer-events: none;
}

#voiceRealtimeBtn.active::after,
#voiceRealtimeBtn.recording::after {
    display: none;
}
