/* Voice Search Button — Desktop */
.voice-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #a1a1aa;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.voice-search-btn:hover {
    color: var(--brand-primary);
    background: rgba(245, 158, 11, 0.1);
}

.voice-search-btn.listening {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    animation: mic-pulse 1.5s ease-in-out infinite;
}

.voice-search-btn.listening i::before {
    content: "\f131";
}

@keyframes mic-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Voice Search Button — Mobile Overlay */
.voice-search-btn-mobile {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 16px;
}

/* Voice search not supported — hide button */
.voice-search-btn.unsupported {
    display: none;
}