/* Payment Modal Enhancements */

.highlight-section {
    animation: highlightPulse 2s ease-in-out;
    border: 3px solid #ffc107 !important;
    border-radius: 10px !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5) !important;
    transition: all 0.3s ease;
}

@keyframes highlightPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.8);
    }
}

/* Live Video Payment Modal Styles */
#liveVideoPaymentModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#liveVideoPaymentModal .modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

#liveVideoPaymentModal .modal-body {
    padding: 2rem;
}

#liveVideoPaymentModal .modal-footer {
    border-top: none;
    padding: 1.5rem 2rem 2rem;
}

#liveVideoPaymentModal .list-unstyled li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

#liveVideoPaymentModal .alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

/* Video Play Overlay Enhancements */
.video-play-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.video-play-overlay:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95)) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.video-play-overlay i {
    font-size: 28px;
    margin-left: 3px; /* Optical alignment for play icon */
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    #liveVideoPaymentModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #liveVideoPaymentModal .modal-body {
        padding: 1.5rem;
    }
    
    #liveVideoPaymentModal h4 {
        font-size: 1.3rem;
    }
    
    .video-play-overlay {
        width: 70px !important;
        height: 70px !important;
        font-size: 20px !important;
    }
}

/* Pulse animation for urgent notifications */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading states */
.video-loading {
    position: relative;
}

.video-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced button styles */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* Responsive video containers */
.responsive-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.responsive-video-container iframe,
.responsive-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .highlight-section,
    .video-play-overlay,
    .pulse-animation,
    .btn-enhanced {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-play-overlay {
        background: #000 !important;
        border: 2px solid #fff !important;
    }
    
    #liveVideoPaymentModal .modal-content {
        border: 2px solid #000 !important;
    }
}
