/**
 * VMO Voice Selector Styles
 * OpenAI TTS HD voice selection UI
 */

.vmo-voice-selector {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: vmoFadeIn 0.4s ease-in-out;
}

@keyframes vmoFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vmo-voice-selector h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    text-align: center;
}

.vmo-voice-selector > p {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
}

.vmo-voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vmo-voice-card {
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
}

.vmo-voice-card:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.vmo-voice-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.vmo-voice-card.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.vmo-voice-icon {
    font-size: 56px;
    margin-bottom: 16px;
    line-height: 1;
}

.vmo-voice-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.vmo-voice-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
    min-height: 42px;
}

.vmo-preview-voice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.vmo-preview-voice:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.vmo-preview-voice:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vmo-voice-actions {
    text-align: center;
    margin-top: 32px;
}

#vmo-save-voice-preference {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

#vmo-save-voice-preference:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#vmo-save-voice-preference:active {
    transform: translateY(0);
}

#vmo-save-voice-preference:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .vmo-voice-selector {
        padding: 24px;
        margin: 20px;
    }
    
    .vmo-voice-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vmo-voice-selector h3 {
        font-size: 24px;
    }
    
    #vmo-save-voice-preference {
        width: 100%;
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* Integration with Business Wizard */
#vmo-voice-selector-container {
    position: relative;
    z-index: 1000;
}

.vmo-wizard-with-voice-selector {
    opacity: 0.5;
    pointer-events: none;
}

/* Loading state */
.vmo-voice-selector.loading {
    opacity: 0.6;
    pointer-events: none;
}

.vmo-voice-selector.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: vmoSpin 0.8s linear infinite;
}

@keyframes vmoSpin {
    to {
        transform: rotate(360deg);
    }
}
