/* Pickle BERRY - Production Payment System Styles */

/* Advanced Modal System */
.advanced-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeInBlur 0.3s ease;
}

.advanced-modal-overlay .modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.3s ease;
}

/* Advanced Booking Modal */
.advanced-booking-modal {
    position: relative;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 2px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Booking Summary Advanced */
.booking-summary-advanced {
    padding: 24px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.court-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-badge {
    background: #ECFDF5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #A7F3D0;
}

/* Pricing Breakdown */
.pricing-breakdown {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 1rem;
}

.price-line.group-split {
    color: #10B981;
    font-weight: 600;
    border-top: 1px dashed #D1D5DB;
    padding-top: 12px;
    margin-top: 8px;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    padding: 12px 0;
    border-top: 2px solid #10B981;
}

/* Advanced Payment Methods */
.payment-methods-advanced {
    padding: 24px;
}

.payment-methods-advanced h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 20px;
    text-align: center;
}

.payment-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-option:hover {
    border-color: #10B981;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(16, 185, 129, 0.3);
}

.payment-option:active {
    transform: translateY(0);
}

.payment-icon {
    font-size: 1.5rem;
    margin-right: 16px;
    min-width: 40px;
    text-align: center;
}

.payment-details {
    flex-grow: 1;
}

.payment-details strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2px;
}

.payment-details span {
    font-size: 0.9rem;
    color: #6B7280;
}

.security-badges {
    display: flex;
    gap: 8px;
}

.security-badges span {
    background: #F3F4F6;
    color: #6B7280;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Split Payment Options */
.split-payment-options {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #D1D5DB;
}

.split-payment-options h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
    text-align: center;
}

/* Subscription Modal */
.subscription-modal {
    text-align: center;
}

.subscription-details {
    padding: 24px;
    background: linear-gradient(135deg, #FEF7FF 0%, #FAF5FF 100%);
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 24px;
}

.price-display .price {
    font-size: 3rem;
    font-weight: 900;
    color: #7C3AED;
}

.price-display .period {
    font-size: 1.2rem;
    color: #6B7280;
    margin-left: 8px;
}

.features-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #374151;
}

.subscription-benefits {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #E5E7EB;
}

.subscription-benefits h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #374151;
}

.subscription-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-benefits li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #6B7280;
}

.subscription-benefits li::before {
    content: "✓";
    color: #10B981;
    font-weight: bold;
    margin-right: 8px;
}

/* Subscription Actions */
.subscription-actions {
    padding: 24px;
}

.subscribe-btn {
    width: 100%;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(124, 58, 237, 0.5);
}

/* Email Collection Modal */
.collect-emails-modal {
    padding: 24px;
}

.collect-emails-modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px;
    text-align: center;
}

.collect-emails-modal p {
    color: #6B7280;
    margin-bottom: 24px;
    text-align: center;
}

.email-inputs {
    margin-bottom: 24px;
}

.email-input-group {
    margin-bottom: 16px;
}

.email-input-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.email-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.email-input-group input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: #10B981;
    color: white;
}

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

.btn-secondary {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.btn-secondary:hover {
    background: #E5E7EB;
    color: #374151;
}

/* Security Footer */
.security-footer {
    padding: 20px 24px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    border-radius: 0 0 20px 20px;
}

.security-footer .security-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.security-footer .badge {
    background: #ECFDF5;
    color: #059669;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #A7F3D0;
}

/* Production Notifications */
.production-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: white;
    border-left: 4px solid #10B981;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    min-width: 300px;
}

.production-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.production-notification.error {
    border-left-color: #EF4444;
    color: #DC2626;
}

.production-notification.success {
    border-left-color: #10B981;
    color: #059669;
}

.production-notification i {
    font-size: 1.2rem;
    min-width: 20px;
}

/* Production Loader */
.production-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(2px);
}

.loader-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top: 4px solid #10B981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loader-content p {
    color: #6B7280;
    font-weight: 500;
    margin: 0;
}

/* Payment Option Specific Styles */
.stripe-checkout {
    background: linear-gradient(135deg, #635BFF 0%, #4D44CC 100%);
    color: white;
    border-color: #635BFF;
}

.stripe-checkout:hover {
    background: linear-gradient(135deg, #5A52E8 0%, #4D44CC 100%);
    border-color: #5A52E8;
}

.apple-pay {
    background: #000;
    color: white;
    border-color: #000;
}

.apple-pay:hover {
    background: #333;
    border-color: #333;
    color: white;
}

.split-individual {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-color: #F59E0B;
}

.split-individual:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    border-color: #FBBF24;
    color: white;
}

/* PayPal and Google Pay Containers */
.paypal-advanced,
.paypal-subscription,
.google-pay-container {
    margin: 12px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Court Cards with Production Payment */
.court-card-production {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.court-card-production:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
}

.court-image-production {
    height: 200px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.court-details-production {
    padding: 20px;
}

.court-title-production {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px;
}

.court-features-production {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.court-features-production .feature-badge {
    background: #F3F4F6;
    color: #6B7280;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.price-section-production {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #E5E7EB;
}

.price-production {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.book-court-payment {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-court-payment:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.4);
}

/* Membership Cards */
.membership-card-production {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.membership-card-production.featured {
    transform: scale(1.05);
    border: 3px solid #10B981;
}

.membership-card-production:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.membership-title-production {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.membership-price-production {
    font-size: 3rem;
    font-weight: 900;
    color: #10B981;
    margin-bottom: 24px;
}

.membership-features-production {
    text-align: left;
    margin-bottom: 32px;
}

.subscribe-membership {
    width: 100%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-membership:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(16, 185, 129, 0.5);
}

/* Animations */
@keyframes fadeInBlur {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .advanced-modal-overlay .modal-content {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px 16px 12px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .booking-summary-advanced,
    .payment-methods-advanced,
    .subscription-details {
        padding: 16px;
    }
    
    .payment-option {
        padding: 14px 16px;
    }
    
    .price-display .price {
        font-size: 2.5rem;
    }
    
    .production-notification {
        right: 12px;
        left: 12px;
        max-width: none;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .features-list {
        gap: 4px;
    }
    
    .feature-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .payment-icon {
        font-size: 1.25rem;
        margin-right: 12px;
        min-width: 32px;
    }
    
    .court-card-production {
        margin-bottom: 16px;
    }
    
    .membership-card-production {
        padding: 24px 16px;
    }
}