/* === VOICE NAVIGATION FOR ACCESSIBILITY === */

/* Voice Control Button - Left Side */
#voice-nav-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9997;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #00e5ff;
    font-size: 24px;
}

#voice-nav-toggle:hover {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 2px 15px rgba(0, 229, 255, 0.3);
    transform: scale(1.05);
}

#voice-nav-toggle.active {
    background: rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
    animation: pulse-mic 1.5s infinite;
}

@keyframes pulse-mic {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
    }
}

/* Voice Status Panel */
#voice-status-panel {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 9996;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: none;
    animation: slideUp 0.3s ease;
}

#voice-status-panel.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voice-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.voice-status-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.voice-listening-indicator {
    width: 10px;
    height: 10px;
    background: #00e5ff;
    border-radius: 50%;
    animation: pulse-indicator 1s infinite;
}

@keyframes pulse-indicator {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.voice-command-display {
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 10px;
    min-height: 20px;
    font-style: italic;
}

.voice-command-display.empty {
    color: #666;
}

.voice-help-text {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.4;
}

.voice-help-text strong {
    color: #00e5ff;
}

/* Skip to Content Link - Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #00e5ff;
    color: #000;
    padding: 8px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 5px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* High Contrast Focus Indicators */
*:focus {
    outline: 2px solid #00e5ff;
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Voice Error Message */
.voice-error {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #ff0080;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    #voice-nav-toggle {
        bottom: 80px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    #voice-status-panel {
        bottom: 145px;
        left: 15px;
        min-width: 250px;
        max-width: calc(100vw - 30px);
    }
}

/* Keyboard Navigation Hints */
.keyboard-hint {
    font-size: 0.65rem;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.keyboard-hint kbd {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 3px;
    padding: 2px 5px;
    font-family: monospace;
    font-size: 0.7rem;
    color: #00e5ff;
}