/**
 * Voice Setup Styles
 * Styles for the voice cloning setup modal with skip option
 */

:root {
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
}

.voice-setup-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;
}

.voice-setup-modal.visible {
    opacity: 1;
}

.voice-setup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.voice-setup-content {
    position: relative;
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.voice-setup-modal.visible .voice-setup-content {
    transform: translateY(0);
}

.voice-setup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.voice-setup-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.voice-setup-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.voice-setup-benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: #10B981;
}

.benefit-item span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.voice-setup-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.setup-now-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.setup-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

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

.skip-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.skip-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.voice-setup-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* Skip Notification */
.voice-skip-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-primary);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.voice-skip-notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content svg {
    width: 20px;
    height: 20px;
    fill: #10B981;
    flex-shrink: 0;
}

/* Reminder Banner */
.voice-reminder-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.voice-reminder-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.reminder-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.reminder-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reminder-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.reminder-text span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.reminder-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-small-primary {
    padding: 0.5rem 1rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-small-ghost {
    padding: 0.5rem 1rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

[data-theme="dark"] .benefit-item {
    background: #2a2a2a;
}

[data-theme="dark"] .skip-btn {
    border-color: #444;
}

[data-theme="dark"] .skip-btn:hover {
    background: #2a2a2a;
}

[data-theme="dark"] .voice-skip-notification {
    background: #1a1a1a;
    border-color: #444;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .voice-setup-content {
        padding: 2rem;
    }
    
    .voice-setup-actions {
        flex-direction: column;
    }
    
    .reminder-content {
        flex-direction: column;
        text-align: center;
    }
    
    .reminder-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Voice Preview Section */
.voice-preview-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.preview-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
    text-align: center;
}

.voice-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.voice-sample {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sample-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.play-sample-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
}

.play-sample-btn:not(:disabled):hover {
    background: #F9FAFB;
    border-color: #3B82F6;
    color: #3B82F6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.play-sample-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F9FAFB;
}

.play-sample-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.play-sample-btn .loading-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced onboarding indicator */
.onboarding-progress-indicator {
    text-align: center;
    margin-top: 0.5rem;
}

.onboarding-progress-indicator span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #3B82F6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark theme for voice preview */
[data-theme="dark"] .voice-preview-section {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .preview-label {
    color: #D1D5DB;
}

[data-theme="dark"] .sample-label {
    color: #9CA3AF;
}

[data-theme="dark"] .play-sample-btn {
    background: #2A2A2A;
    border-color: #404040;
    color: #D1D5DB;
}

[data-theme="dark"] .play-sample-btn:not(:disabled):hover {
    background: #333333;
    border-color: #3B82F6;
    color: #3B82F6;
}

[data-theme="dark"] .play-sample-btn:disabled {
    background: #1A1A1A;
}

/* Mobile adjustments for voice preview */
@media (max-width: 640px) {
    .voice-comparison {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .play-sample-btn {
        min-width: 100px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .voice-preview-section {
        padding: 1rem;
        margin: 1rem 0;
    }
}