/* Styles pour l'intégration des wallets sur mobile */

.mobile-wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-wallet-modal.show {
    opacity: 1;
    visibility: visible;
}

.mobile-wallet-content {
    background-color: #1e2235;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #8a6fff;
    font-size: 20px;
    cursor: pointer;
}

.wallet-modal-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wallet-modal-title i {
    color: #8a6fff;
}

.qr-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code {
    width: 100%;
    height: 100%;
}

.wallet-instructions {
    color: #b8c1ec;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.wallet-options-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.wallet-option-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #2c304d;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wallet-option-mobile:hover {
    background-color: #3c4273;
}

.wallet-option-mobile i {
    font-size: 18px;
}

.wallet-option-mobile.phantom {
    background-color: #4e44ce;
}

.wallet-option-mobile.phantom:hover {
    background-color: #5a50da;
}

.wallet-option-mobile.solflare {
    background-color: #ff9d00;
    color: #000;
}

.wallet-option-mobile.solflare:hover {
    background-color: #ffae2e;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #b8c1ec;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #3c4273;
    margin: 0 10px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(138, 111, 255, 0.3);
    border-radius: 50%;
    border-top-color: #8a6fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Styles pour les appareils mobiles */
@media (max-width: 768px) {
    .mobile-wallet-content {
        width: 95%;
        padding: 15px;
    }
    
    .qr-container {
        width: 180px;
        height: 180px;
    }
}

/* Animation pour le QR code */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(138, 111, 255, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(138, 111, 255, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(138, 111, 255, 0);
    }
}
