/* Voice Oracle Styles */

.voice-oracle-toggle {
    position: relative;
    overflow: hidden;
}

.voice-oracle-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(20, 184, 166, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.voice-oracle-toggle:hover::before {
    transform: translateX(100%);
}

/* Voice Oracle Indicator */
.voice-oracle-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-mystical);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.voice-oracle-indicator.active {
    transform: translateY(0);
    opacity: 1;
}

.voice-oracle-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.voice-oracle-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.voice-oracle-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--primary-teal);
    border-radius: 50%;
    animation: oraclePulse 2s ease-in-out infinite;
}

.voice-oracle-text {
    flex: 1;
}

.voice-oracle-text span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.voice-oracle-waves {
    display: flex;
    gap: 2px;
    align-items: center;
}

.voice-oracle-waves .wave {
    width: 3px;
    height: 12px;
    background: var(--primary-teal);
    border-radius: 2px;
    animation: voiceWave 1.5s ease-in-out infinite;
}

.voice-oracle-waves .wave:nth-child(2) {
    animation-delay: 0.2s;
}

.voice-oracle-waves .wave:nth-child(3) {
    animation-delay: 0.4s;
}

.voice-oracle-stop {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.voice-oracle-stop:hover {
    background: #ef4444;
    color: white;
}

/* Voice Oracle Settings */
.voice-oracle-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.voice-oracle-settings.active {
    opacity: 1;
    visibility: visible;
}

.voice-oracle-settings .settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.voice-oracle-settings .settings-header h3 {
    font-size: 1.25rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.settings-close:hover {
    color: var(--primary-teal);
    background: rgba(20, 184, 166, 0.1);
}

.settings-content {
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-mystical);
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.setting-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-teal);
}

.setting-text {
    flex: 1;
}

.setting-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.setting-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Voice Oracle Animations */
@keyframes oraclePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes voiceWave {
    0%, 100% {
        height: 12px;
        opacity: 0.7;
    }
    50% {
        height: 20px;
        opacity: 1;
    }
}

/* Voice Oracle Integration Styles */
.reading-result .voice-play-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(20, 184, 166, 0.2);
    border: 1px solid var(--primary-teal);
    color: var(--primary-teal);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
}

.reading-result .voice-play-button:hover {
    background: var(--primary-teal);
    color: white;
    transform: scale(1.1);
}

.reading-result .voice-play-button.playing {
    background: var(--primary-teal);
    color: white;
    animation: oraclePulse 2s ease-in-out infinite;
}

/* Voice Oracle Welcome Animation */
.voice-oracle-welcome {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-mystical);
    z-index: 5000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.5s ease;
}

.voice-oracle-welcome.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.voice-oracle-welcome .welcome-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    position: relative;
}

.voice-oracle-welcome .welcome-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-teal);
    border-radius: 50%;
    animation: oraclePulse 3s ease-in-out infinite;
}

.voice-oracle-welcome h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.voice-oracle-welcome p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.voice-oracle-welcome .welcome-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voice-oracle-indicator {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .voice-oracle-content {
        gap: 0.75rem;
    }
    
    .voice-oracle-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .settings-content {
        width: 95%;
        padding: 1rem;
    }
    
    .voice-oracle-welcome {
        width: 90%;
        padding: 1.5rem;
    }
    
    .voice-oracle-welcome .welcome-actions {
        flex-direction: column;
    }
}

/* Voice Oracle Status Indicator in Navigation */
.nav-auth .voice-oracle-toggle.enabled {
    background: rgba(20, 184, 166, 0.2);
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}

.nav-auth .voice-oracle-toggle.enabled::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--primary-teal);
    border-radius: 50%;
    animation: oraclePulse 2s ease-in-out infinite;
}

