/* Pickle BERRY - Live Payment System Styles */

/* Payment Modal Overlay */
.payment-modal-overlay,
.success-modal-overlay {
    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: 10000;
    animation: fadeIn 0.3s ease;
}

/* Payment Modal */
.payment-modal,
.success-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

/* Modal Headers */
.payment-header,
.success-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.success-header {
    flex-direction: column;
    text-align: center;
    border-bottom: none;
}

.payment-header h3,
.success-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #F3F4F6;
    color: #374151;
}

/* Booking Summary */
.booking-summary {
    padding: 24px;
    background: #F9FAFB;
    margin: 0 24px;
    border-radius: 12px;
    margin-top: 16px;
}

.booking-summary h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px;
}

.booking-item,
.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.booking-datetime {
    color: #6B7280;
    font-size: 0.9rem;
    margin: 12px 0;
}

.booking-summary hr {
    border: none;
    height: 1px;
    background: #E5E7EB;
    margin: 16px 0;
}

.total-amount {
    font-size: 1.1rem;
    color: #059669;
    margin: 0;
}

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

.payment-methods h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px;
}

/* Payment Method Buttons */
.payment-method-btn {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.payment-method-btn:hover {
    border-color: #10B981;
    background: #ECFDF5;
    color: #047857;
}

.payment-method-btn:active {
    transform: translateY(1px);
}

.stripe-btn {
    color: #635BFF;
    border-color: #635BFF;
}

.stripe-btn:hover {
    background: #F0F0FF;
    border-color: #5B52FF;
}

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

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

.secure-badge {
    background: #ECFDF5;
    color: #059669;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* PayPal Container */
.paypal-container {
    margin: 12px 0;
    min-height: 48px;
}

/* Payment Security */
.payment-security {
    padding: 16px 24px 24px;
    text-align: center;
}

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

.security-badge {
    background: #F3F4F6;
    color: #6B7280;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Success Modal Content */
.success-content {
    padding: 0 24px;
}

.success-content p {
    text-align: center;
    color: #6B7280;
    margin-bottom: 24px;
}

.booking-details {
    background: #F9FAFB;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.booking-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
}

.booking-details p {
    text-align: left;
    margin: 6px 0;
    color: #374151;
}

.next-steps {
    margin-bottom: 24px;
}

.next-steps h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    color: #6B7280;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

/* Success Actions */
.success-actions {
    padding: 16px 24px 24px;
    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;
    border: none;
    font-size: 0.95rem;
}

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

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

.btn-secondary {
    background: #F3F4F6;
    color: #6B7280;
}

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

/* Payment Notifications */
.payment-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

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

.payment-notification.success {
    border-color: #10B981;
    background: #ECFDF5;
    color: #059669;
}

.payment-notification.error {
    border-color: #EF4444;
    background: #FEF2F2;
    color: #DC2626;
}

.payment-notification.info {
    border-color: #3B82F6;
    background: #EFF6FF;
    color: #1D4ED8;
}

/* Court Booking Buttons */
.book-court-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 140px;
}

.book-court-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(16, 185, 129, 0.5);
}

.book-court-btn:active {
    transform: translateY(0);
}

/* Quick Pay Buttons */
.quick-pay-btn {
    background: #635BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.quick-pay-btn:hover {
    background: #5B52FF;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-modal,
    .success-modal {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
    }
    
    .payment-notification {
        right: 12px;
        left: 12px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .payment-notification.show {
        transform: translateY(0);
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

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

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

/* Loading States */
.payment-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.payment-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Court Cards with Payment Buttons */
.court-card {
    position: relative;
    overflow: hidden;
}

.court-card .book-court-btn {
    width: 100%;
    margin-top: 12px;
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    text-align: center;
    margin: 12px 0;
}

.price-display .currency {
    font-size: 1rem;
    color: #6B7280;
}

.price-display .period {
    font-size: 0.9rem;
    color: #9CA3AF;
    font-weight: 400;
}