/* Voice Navigation Styles */

.voice-nav-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 8px;
}

.voice-nav-floating-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.4);
}

.voice-nav-floating-btn.listening {
    background: #dc3232;
    animation: pulse 1.5s infinite;
}

.voice-nav-floating-btn.listening:hover {
    background: #a02828;
}

.voice-nav-floating-btn .voice-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.voice-nav-floating-btn .voice-status {
    font-size: 8px;
    line-height: 1;
    text-align: center;
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(220, 50, 50, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(220, 50, 50, 0.6), 0 0 0 10px rgba(220, 50, 50, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(220, 50, 50, 0.3);
    }
}

/* Voice Navigation Notifications */
.voice-nav-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.voice-nav-notification-info {
    background: #007cba;
}

.voice-nav-notification-success {
    background: #46b450;
}

.voice-nav-notification-error {
    background: #dc3232;
}

.voice-nav-notification-warning {
    background: #ffb900;
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Elementor Voice Assistant Widget Styles */
.voice-assistant-widget {
    text-align: center;
    padding: 20px;
}

.voice-assistant-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.voice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.voice-btn-primary {
    background: #007cba;
    color: white;
}

.voice-btn-primary:hover {
    background: #005a87;
    color: white;
}

.voice-btn-secondary {
    background: #f0f0f1;
    color: #333;
    border: 1px solid #ddd;
}

.voice-btn-secondary:hover {
    background: #e0e0e1;
    color: #333;
}

.voice-btn-danger {
    background: #dc3232;
    color: white;
}

.voice-btn-danger:hover {
    background: #a02828;
    color: white;
}

.voice-btn.listening {
    animation: pulse 1.5s infinite;
}

.voice-btn.reading {
    background: #46b450;
}

.voice-btn.reading:hover {
    background: #3a9640;
}

.voice-btn svg {
    width: 16px;
    height: 16px;
}

.voice-assistant-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.voice-assistant-status.active {
    display: block;
}

.voice-assistant-status.listening {
    background: #fff2f2;
    color: #dc3232;
    border: 1px solid #ffc6c6;
}

.voice-assistant-status.reading {
    background: #f0f8f0;
    color: #46b450;
    border: 1px solid #c6f0c6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voice-nav-floating-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .voice-nav-floating-btn .voice-icon {
        width: 18px;
        height: 18px;
    }
    
    .voice-assistant-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .voice-btn {
        width: 100%;
        justify-content: center;
    }
    
    .voice-nav-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Accessibility Improvements */
.voice-btn:focus,
.voice-nav-floating-btn:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .voice-nav-floating-btn {
        border: 2px solid currentColor;
    }
    
    .voice-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .voice-nav-floating-btn,
    .voice-btn {
        transition: none;
    }
    
    .voice-nav-floating-btn.listening {
        animation: none;
    }
    
    .voice-nav-notification {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .voice-btn-secondary {
        background: #333;
        color: #fff;
        border-color: #555;
    }
    
    .voice-btn-secondary:hover {
        background: #444;
    }
    
    .voice-assistant-status.listening {
        background: #2d1f1f;
        color: #ff6b6b;
        border-color: #4a2c2c;
    }
    
    .voice-assistant-status.reading {
        background: #1f2d1f;
        color: #6bff6b;
        border-color: #2c4a2c;
    }
}
