/**
 * PayPal Integration Styles for Noor El Rahma
 */

/* ===================================
   SÉLECTEUR DE MONTANT
   =================================== */

.paypal-amount-selector {
    background: #F5EFE6;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #C9A961;
}

.amount-selector-wrapper {
    width: 100%;
}

.amount-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C2416;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* Montants suggérés */
.suggested-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    background: white;
    border: 2px solid #C9A961;
    color: #2C2416;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.amount-btn:hover {
    background: #C9A961;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.amount-btn.active {
    background: linear-gradient(135deg, #C9A961, #8B6F47);
    color: white;
    border-color: #8B6F47;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

/* Montant personnalisé */
.custom-amount {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #C9A961;
}

.custom-amount label {
    display: block;
    font-size: 1rem;
    color: #2C2416;
    margin-bottom: 10px;
    font-weight: 500;
}

.custom-amount-input {
    position: relative;
    max-width: 300px;
}

.custom-amount-input input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #C9A961;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.custom-amount-input input:focus {
    outline: none;
    border-color: #8B6F47;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

.custom-amount-input .currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B6F47;
}

/* ===================================
   MESSAGE DE REMERCIEMENT
   =================================== */

.thank-you-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.thank-you-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 36, 22, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.thank-you-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.thank-you-content i.fa-check-circle {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

.thank-you-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2C2416;
    margin-bottom: 15px;
}

.thank-you-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.thank-you-content strong {
    color: #C9A961;
    font-weight: 600;
}

.thank-you-blessing {
    background: #F5EFE6;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #C9A961;
    font-style: italic;
    color: #2C2416 !important;
    margin: 20px 0 !important;
}

.transaction-id {
    font-size: 0.85rem !important;
    color: #999 !important;
    font-family: monospace;
}

.thank-you-content .btn-primary {
    margin-top: 20px;
    padding: 12px 40px;
}

/* ===================================
   CONTENEUR PAYPAL
   =================================== */

.paypal-button-container {
    margin-top: 20px;
    min-height: 150px;
}

/* Style pour les boutons PayPal dans les cartes de projet */
.project-card .paypal-button-container,
.section-card .paypal-button-container {
    margin-top: 20px;
}

/* ===================================
   ANIMATIONS
   =================================== */

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

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .paypal-amount-selector {
        padding: 20px 15px;
    }
    
    .suggested-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amount-btn {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .thank-you-content {
        padding: 30px 20px;
    }
    
    .thank-you-content h2 {
        font-size: 1.5rem;
    }
    
    .thank-you-content i.fa-check-circle {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .suggested-amounts {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .amount-btn {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
    
    .custom-amount-input {
        max-width: 100%;
    }
}

/* ===================================
   NOTE INFORMATIVE
   =================================== */

.payment-info-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #856404;
}

.payment-info-note i {
    margin-right: 8px;
    color: #ffc107;
}

/* ===================================
   CHARGEMENT PAYPAL
   =================================== */

.paypal-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.paypal-loading i {
    font-size: 2rem;
    color: #C9A961;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
