/**
 * voice-mode.css - Full-screen voice mode styling
 */

.voice-mode-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.voice-mode-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Back Button */
.btn-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Voice Orb Container */
.voice-orb-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

/* Voice Orb */
.voice-orb {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.voice-orb:hover {
    transform: scale(1.05);
}

.voice-orb:active {
    transform: scale(0.95);
}

.voice-orb.recording {
    animation: orbPulse 2s infinite;
}

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

.orb-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(74, 222, 128, 0.5),
        inset 0 -10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.orb-icon {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Orb Rings */
.orb-rings {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 50%;
    opacity: 0;
}

.voice-orb.recording .ring {
    animation: ringExpand 2s infinite;
}

.ring-1 {
    animation-delay: 0s !important;
}

.ring-2 {
    animation-delay: 0.6s !important;
}

.ring-3 {
    animation-delay: 1.2s !important;
}

@keyframes ringExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Orb Instruction */
.orb-instruction {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
}

.voice-orb.recording ~ .orb-instruction {
    color: var(--primary-color);
}

/* Voice Profile Bar */
.voice-profile-bar {
    position: absolute;
    bottom: 3rem;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.profile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.profile-btn.active {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.profile-btn span {
    font-size: 1.5rem;
}

.profile-btn small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Transcription Display */
.transcription-display {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all var(--transition-normal);
}

.transcription-display.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Response Display */
.response-display {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 700px;
    width: 90%;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all var(--transition-normal);
}

.response-display.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Voice Status */
.voice-status {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-dot {
    color: var(--primary-color);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.voice-status.thinking .status-dot {
    color: var(--accent-color);
}

.voice-status.speaking .status-dot {
    color: var(--secondary-color);
}

/* Fullscreen Visualizer */
.fullscreen-visualizer {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 100px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.fullscreen-visualizer.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .voice-orb {
        width: 150px;
        height: 150px;
    }
    
    .orb-icon {
        font-size: 3rem;
    }
    
    .voice-profile-bar {
        bottom: 2rem;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .profile-btn {
        padding: 0.5rem 0.75rem;
    }
    
    .profile-btn span {
        font-size: 1.25rem;
    }
    
    .profile-btn small {
        font-size: 0.6rem;
    }
    
    .btn-back {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .voice-status {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .transcription-display,
    .response-display {
        font-size: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .voice-orb {
        width: 120px;
        height: 120px;
    }
    
    .orb-icon {
        font-size: 2.5rem;
    }
    
    .orb-instruction {
        font-size: 0.9rem;
    }
    
    .voice-profile-bar {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90%;
    }
    
    .profile-btn small {
        display: none;
    }
}
