/**
 * JWARDMUSCLE - Payment System Styles
 * PayPal Integration UI Components
 * Version: 1.0.0
 * Date: January 11, 2026
 */

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(45, 91, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.pricing-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.pricing-toggle-btn {
    padding: 12px 30px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: rgba(30, 64, 175, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2d5bff 100%);
    color: #fff;
    border-color: #3b82f6;
}

/* ============================================
   PRICING CARDS
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-card {
    background: rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 60px rgba(45, 91, 255, 0.3);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    border: 2px solid #3b82f6;
    box-shadow: 0 10px 40px rgba(45, 91, 255, 0.2);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2d5bff 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(45, 91, 255, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.pricing-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 30px;
    min-height: 50px;
}

.pricing-price {
    margin-bottom: 30px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #3b82f6;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.price-currency {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 10px;
}

.price-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-top: 5px;
}

.price-savings {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.pricing-features li::before {
    content: '✓';
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: rgba(255, 255, 255, 0.4);
}

.pricing-features li.disabled::before {
    content: '✕';
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   PAYMENT BUTTON CONTAINER
   ============================================ */

.payment-button-container {
    margin-top: 30px;
    min-height: 60px;
}

.payment-button-container > div {
    max-width: 100%;
}

/* Fallback button when PayPal not loaded */
.btn-payment {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2d5bff 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 91, 255, 0.4);
}

.btn-payment:active {
    transform: translateY(0);
}

/* ============================================
   PAYMENT MODALS
   ============================================ */

.payment-success-modal,
.payment-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.payment-modal-content {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(45, 91, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 30px;
    padding: 60px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.payment-success-icon,
.payment-error-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    animation: iconBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-success-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 3px solid #22c55e;
}

.payment-error-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 3px solid #ef4444;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.payment-modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.payment-modal-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: 1.6;
}

.payment-order-id {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 10px;
    margin: 20px 0;
}

.payment-modal-content .btn-primary {
    margin-top: 30px;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-modal-content .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   PAYMENT PROCESS INDICATORS
   ============================================ */

.payment-processing {
    display: none;
    text-align: center;
    padding: 20px;
}

.payment-processing.active {
    display: block;
}

.payment-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-processing p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-header h2 {
        font-size: 2rem;
    }

    .pricing-header p {
        font-size: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .payment-modal-content {
        padding: 40px 30px;
    }

    .payment-modal-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .pricing-toggle-btn {
        width: 100%;
        max-width: 250px;
    }

    .payment-success-icon,
    .payment-error-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
}
