/**
 * SVA Recording Styles
 * Consent modal and recording indicator
 * 
 * @since 3.4.7
 */

/* Consent Modal */
.sva-recording-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sva-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-out;
}

.sva-modal-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

.sva-modal-card h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.sva-consent-text {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
}

.sva-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.sva-btn-primary,
.sva-btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sva-btn-primary {
    background: #8B5CF6;
    color: #111827;
}

.sva-btn-primary:hover {
    background: #7C3AED;
    transform: translateY(-1px);
}

.sva-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.sva-btn-secondary:hover {
    background: #e5e7eb;
}

/* Recording Indicator */
.sva-recording-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    padding: 4px 8px;
    background: #fef3f2;
    border-radius: 6px;
    animation: fadeIn 0.3s ease-out;
}

.sva-recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.sva-recording-text {
    font-weight: 500;
    color: #dc2626;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

/* Accessibility */
.sva-recording-consent-modal[aria-hidden="true"] {
    display: none;
}

.sva-modal-card:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .sva-modal-card {
        padding: 20px;
        max-width: 90%;
    }
    
    .sva-modal-card h3 {
        font-size: 18px;
    }
    
    .sva-modal-actions {
        flex-direction: column;
    }
    
    .sva-btn-primary,
    .sva-btn-secondary {
        width: 100%;
    }
}

