/**
 * PayPal Integration Styles
 * Styling for PayPal buttons and payment notifications
 */

/* PayPal Button Container */
.paypal-button-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Payment Notifications */
.payment-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    min-width: 400px;
    max-width: 500px;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.payment-notification.show {
    top: 30px;
    opacity: 1;
}

.payment-notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.payment-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-content i {
    font-size: 32px;
    flex-shrink: 0;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .payment-notification {
        min-width: 90%;
        max-width: 90%;
        padding: 15px 20px;
    }

    .notification-content i {
        font-size: 24px;
    }

    .notification-content h4 {
        font-size: 16px;
    }

    .notification-content p {
        font-size: 13px;
    }
}

/* PayPal Button Styling Override */
.paypal-button-container .paypal-buttons {
    min-height: 40px;
}

/* Loading State for PayPal Buttons */
.paypal-button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.paypal-button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: paypal-spinner 0.8s linear infinite;
}

@keyframes paypal-spinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Pricing Card PayPal Integration */
.pricing-card .paypal-button-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card.featured .paypal-button-container {
    border-top-color: rgba(251, 191, 36, 0.3);
}

/* Success Page Styles (for payment-success.html) */
.payment-success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.payment-success-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.payment-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.payment-success-icon i {
    font-size: 50px;
    color: white;
}

@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-success-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1f2937;
}

.payment-success-message {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
}

.payment-success-details {
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.payment-success-details h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-detail-label {
    font-weight: 600;
    color: #4b5563;
}

.payment-detail-value {
    color: #1f2937;
    font-weight: 500;
}

.payment-success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-success-primary,
.btn-success-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-success-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-success-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-success-secondary:hover {
    background: #e5e7eb;
}
