/**
 * Pre-Call Voice Setup Modal Styles
 * Streamlined voice setup modal that appears before calls
 */

.pre-call-voice-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pre-call-voice-modal.visible {
    opacity: 1;
}

.pre-call-voice-modal.hiding {
    opacity: 0;
}

.pre-call-voice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.pre-call-voice-content {
    position: relative;
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pre-call-voice-modal.visible .pre-call-voice-content {
    transform: translateY(0) scale(1);
}

.pre-call-voice-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pre-call-voice-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 0.5rem 0;
}

.pre-call-voice-header p {
    font-size: 0.95rem;
    color: var(--text-secondary, #666);
    margin: 0;
    line-height: 1.5;
}

/* Voice Preview Comparison */
.voice-call-preview {
    margin: 1.5rem 0;
}

.preview-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-option {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.preview-option.preferred {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    position: relative;
}

.preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    background: #f3f4f6;
}

.preview-icon.generic {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
}

.preview-icon.personal {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.preview-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.preview-option h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 0.25rem 0;
}

.preview-option p {
    font-size: 0.8rem;
    color: var(--text-secondary, #666);
    margin: 0;
}

.recommended-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-vs {
    font-size: 0.8rem;
    font-weight: 700;
    color: #9CA3AF;
    text-align: center;
}

/* Quick Benefits */
.pre-call-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 1.5rem;
}

.benefit-quick {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
}

.benefit-quick svg {
    width: 16px;
    height: 16px;
    fill: #10B981;
    flex-shrink: 0;
}

/* Action Buttons */
.pre-call-voice-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-setup-voice-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-setup-voice-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-setup-voice-now svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-continue-generic {
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: var(--text-secondary, #666);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-continue-generic:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary, #1a1a1a);
}

.pre-call-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary, #888);
    margin: 0;
    font-style: italic;
}

/* Dark theme support */
[data-theme="dark"] .pre-call-voice-content {
    background: #1a1a1a;
}

[data-theme="dark"] .preview-option {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .preview-option.preferred {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .preview-icon {
    background: #333;
}

[data-theme="dark"] .btn-continue-generic {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ccc;
}

[data-theme="dark"] .btn-continue-generic:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .pre-call-voice-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .preview-comparison {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .preview-vs {
        order: 2;
        margin: 0.5rem 0;
    }
    
    .preview-option.preferred {
        order: 1;
    }
    
    .pre-call-benefits {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .btn-setup-voice-now {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-continue-generic {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Animation for modal entrance */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pre-call-voice-modal.visible .pre-call-voice-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse animation for recommended option */
.preview-option.preferred {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }
}