/**
 * Payment Processing & Feedback Styles
 * Enhanced animations and security indicators
 */

/* Processing Overlay */
.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.processing-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.processing-container {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUpFade 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Security Shield Animation */
.security-shield {
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.shield-outline {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.shield-check {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Processing Steps */
.processing-steps {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.processing-step.active {
    opacity: 1;
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    animation: stepActivate 0.3s ease;
}

.processing-step.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

@keyframes stepActivate {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.processing-step.active .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    animation: iconPulse 1s ease infinite;
}

.processing-step.completed .step-icon {
    background: #10b981;
    color: white;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.step-icon i {
    font-size: 18px;
}

.step-text {
    flex: 1;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.step-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-status i {
    font-size: 16px;
    color: #9ca3af;
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: badgeFadeIn 0.5s ease forwards;
    opacity: 0;
}

.security-badge:nth-child(1) {
    animation-delay: 0.1s;
}

.security-badge:nth-child(2) {
    animation-delay: 0.2s;
}

.security-badge:nth-child(3) {
    animation-delay: 0.3s;
}

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

.security-badge i {
    color: #10b981;
    font-size: 14px;
}

/* Processing Message */
.processing-message {
    margin: 1.5rem 0;
}

.message-text {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.message-subtext {
    font-size: 13px;
    color: #6b7280;
}

/* Animated Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    border-radius: 999px;
    animation: progressFlow 2s linear infinite;
    width: 100%;
}

@keyframes progressFlow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Success Overlay Enhancements */
.success-overlay {
    animation: successFadeIn 0.5s ease forwards;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* Haptic Feedback Visual Indicator */
.haptic-pulse {
    animation: hapticPulse 0.3s ease;
}

@keyframes hapticPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .processing-container {
        padding: 2rem 1.5rem;
    }

    .security-shield svg {
        width: 100px;
        height: 100px;
    }

    .processing-step {
        padding: 0.75rem;
    }

    .step-text {
        font-size: 14px;
    }

    .security-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .security-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Additional Security Indicators */
.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: securityBadgePulse 2s ease-in-out infinite;
}

@keyframes securityBadgePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
    }
}

.security-indicator i {
    animation: securityIconRotate 2s linear infinite;
}

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

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    min-width: 100px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.trust-badge-icon {
    font-size: 32px;
    color: #10b981;
}

.trust-badge-text {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
    line-height: 1.3;
}
